Video.js - HTML5 Video Player for WordPress
[resolved] [Plugin: VideoJS - HTML5 Video Player for WordPress] Flow Player Posterframe (Flash Player) not dyna (4 posts)

  1. hypothesard
    Posted 4 years ago #

    [Plugin: VideoJS - HTML5 Video Player for WordPress] Flow Player Posterframe (Flash Player) not dynamicly set

    [darn character limit of the Post Title}

    Testing the new version of Video Player for wordpress, I tested Safari, Webkit on iPhone and iPad, and finally most of the problems were solved (on iPad the Posterframe no longer forbid the iPad to load the mp4 video, Yay)

    But then I tested FireFox to see how the Flash player did look (I don't bother reencoding 19 videos [~10hours] in ogg just for FireFox) and to my surprise the poster frame was set to the demo version.

    After some tinkering (~2hours) I finally solved the thing (I'm not a coder so It's kind of an exploit for me, Lol)

    Edit the folowing file :

    and search this line :
    $flow_player_poster = '"http://video-js.zencoder.com/oceans-clip.png", ';

    replace It with this line :
    $flow_player_poster = '"'.$poster.'", ';

    the default poster frame should finally be set to the one specified in the shortcode :

    [video mp4="http://www.YourSite.com/wordpress/wp-content/YourVideoFolder/VideoFile.mp4" poster="http://www.YourSite.com/wordpress/wp-content/YourVideoFolder/PosterFrameOfYourVideoFile.jpg" width="480" height="344" autostart="false" preload="false"]

    Now remains to be solved the preload argument not set for the Flash Player (the MP4 player does respect the preload setting [finally])


  2. daviding
    Posted 4 years ago #

    @hypothesard Thanks for this fix on version 2.0.2.

    Innocently pressing the automatic upgrade button had me seeing the swimming shark again, so your advice resolved, my issue in less than five minutes.

  3. hypothesard
    Posted 4 years ago #

    @daviding Happy to hear It helped another soul :P

    Happy Holidays

  4. ErickBenjamin
    Posted 4 years ago #

    Thank You! hypothesard

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic