• Hi,

    I am using Forever theme with WP4.3.5 and have uploaded an MP4 as media.
    I would like to add it to a post with embedded media player.

    However the post page does not work and the media player tells me “Error loading this resource”.

    I have checked different solutions posted here, but none work in my case:
    – check the .htaccess file
    – regenerate the mp4 with a different converter

    But the embedded video does work in the attachment page.
    So this made me think the problem is with the post page specifically.
    Comparing the HTML source of the Attachment page and the Post page I notice that the src argument of the source tag is wrong in the Post page.

    In the Attachment page it is:
    src=”https://khodabandeh.photos/mamen&arash/wp-content/uploads/VID-20160720-WA0001-2.mp4?_=1

    In the Post page it is:
    src=”https://khodabandeh.photos/mamen&?_=1#038;arash/wp-content/uploads/VID-20160720-WA0001-2.mp4″

    As you notice the generator wants to add a “_=1” to the src url.
    It does it correctly in the Attachment page.
    But it adds it in the middle of the url in the Post page.
    So of course nothing works!

    The problem can come from the fact that my url contains an & and this confuses the engine.

    Does anyone has seen this before?
    Any solution? Or post-generation hack to fix the generated link?

    Many thanks for your helps.

Viewing 1 replies (of 1 total)
  • Thread Starter zarzash

    (@zarzash)

    I can confirm that this is a bug as I found a workaround.

    When editing the Post, open the Text view (instead of the default Visual view), and edit the url in in the [video] tag and replace “&” by its name “& amp ;” (without the spaces). In that way the Post generation step does not destroy your url.

    BUT note that you will need to do this manual replacement each time you edit the Post.

    Would be nice to have a definitive fix.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in embeded video link generation’ is closed to new replies.