WordPress.org

Ready to get started?Download WordPress

Forums

HTML5 Multimedia Framework for WordPress
[Plugin: HTML5 Multimedia Framework for WordPress] IE not showing poster, issue with encoding (8 posts)

  1. DGWordPressUser
    Member
    Posted 3 years ago #

    Hi,

    My videos are working great in Firefox, its just the posters don't seem to load in IE.

    When I view source in IE8, the code it looks like this:

    <param name="flashvars" value='controls=true& #38 ;poster=http://www.mysite.com/videos/poster1.jpg& #38 ;file=http://www.mysite.com/videos/video1.mp4' />

    Looks like the encoding is getting confused with the encoding of the ampersand and outputting '& #38 ;' IE doesn't seem to like this and refuses to load the poster image.

    I am not sure if this is a wordpress related issue?

    Any clues would be appreciated as my videos are just coming up with black boxes.

    http://wordpress.org/extend/plugins/wphtml5player/

  2. DGWordPressUser
    Member
    Posted 3 years ago #

    written as (& #38 ;) (without the spaces! the forum converts the proper code to just '&'!)

  3. CJ_Jackson
    Member
    Plugin Author

    Posted 3 years ago #

    Hello again,

    Try updating to 3.2.9, I added htmlspecialchars() to flashvars, it should return & amp ; rather than & or & #38 ; . I also updated mediaelement.js that as well.

    Cheers,
    Chris.

  4. DGWordPressUser
    Member
    Posted 3 years ago #

    Hi Chris,

    Thanks for trying that.

    It seems that the encoding is now fine. But this has not solved the problem of the poster image not showing up in IE.

    Any thoughts?

  5. CJ_Jackson
    Member
    Plugin Author

    Posted 3 years ago #

    Hi ya,

    What the url of the poster image you trying to show? Are you using a dynamic link?

    Cheers,
    Chris.

  6. DGWordPressUser
    Member
    Posted 3 years ago #

    Hi Chris,

    I just did some debugging and discovered that I have added a link to jquery in my custom template header:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    If I remove that line, then IE shows the poster image.

    Happy I found the cause. But now I don't know how to fix the conflict, because I need that link to jQuery for my menus to work.

    Thoughts?

  7. CJ_Jackson
    Member
    Plugin Author

    Posted 3 years ago #

    Hi ya,

    WordPress (as you may figured out) already comes with jQuery, which my plugin calls and is in no conflict mode, which means the wildcard ($) won't work at all, just replace all of '$' with 'jQuery' (it's case sensitive) in the templates and hopefully that should fix the menu problem.

    Also I would recommend that you add wp_enqueue_script('jquery'); on top of header.php before 'wp_head()', as the menus are part of your theme, right?

    Cheers,
    Chris.

  8. DGWordPressUser
    Member
    Posted 3 years ago #

    Thank you.

    wp_enqueue_script('jquery'); before my script and removing my line to jquery did the trick.

    Now videos and menus are playing nicely together :)

    I really appreciate your help with it Chris.

    Another donation coming your way!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic