WordPress.org

Ready to get started?Download WordPress

Forums

Video.js - HTML5 Video Player for WordPress
[Plugin: VideoJS - HTML5 Video Player for WordPress] flowplayer video scaling (4 posts)

  1. polyfade
    Member
    Posted 3 years ago #

    When in fullscreen mode, is there a way to scale the video proportionally? Videos taken with portrait size dimensions scale to fit the screen as oppose to scaling with aspect ration. I realize this is probably a flowplayer issue, but if you could include the parameter, scale="fit" instead of just the odd default, it would be very helpful.

    flowplayer's parameters for reference:
    http://flowplayer.org/documentation/configuration/clips.html

  2. hypothesard
    Member
    Posted 3 years ago #

    this problem of the non-implementation of the «scale» argument in the packaged flowplayeris still not solved, and It's a shame, especially for 4/3 vids on 16/10 or 16/9 screen :/

    I'll try to put the official flowplayer (*.swf) instead of the packaged one to see if It takes the argument

    Cheers

  3. Nono
    Member
    Posted 3 years ago #

    Hello folks.

    I also encountered this bug and would like to share my little hack to it. Please edit videojs-html5-video-player-for-wordpress/video-js-wp.php and locate the part

    } else {
        $autoplay_attribute = "";
        $flow_player_autoplay = ',"autoPlay":false';
      }
    
      $videojs .= <<<_end_

    Edit it to include the extra line I inserted:

    } else {
        $autoplay_attribute = "";
        $flow_player_autoplay = ',"autoPlay":false';
      }
    
      $flow_player_scale = ',"scaling":"fit"';
    
      $videojs .= <<<_end_

    Now edit the part:

    <param name="flashvars" value='config={"playlist":[$flow_player_poster{"url": "$mp4" $flow_player_autoplay $flow_player_preload}]}' />

    to appear like:

    <param name="flashvars" value='config={"playlist":[$flow_player_poster{"url": "$mp4" $flow_player_autoplay $flow_player_preload $flow_player_scale}]}' />

    This allows the video to scale when in full screen. However the poster is not affected and I haven't found out (yet) how to change the background color (which is white).

    Hope this helps a lot of people!

    Regards,
    Nono

  4. Nono
    Member
    Posted 3 years ago #

    Oh regarding the background color note. I just added

    <param name="bgcolor" value="#000000" />

    in the <OBJECT> tag of FlowPlayer and it worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic