WordPress.org

Ready to get started?Download WordPress

Forums

ProPlayer
Tips to center the video player (4 posts)

  1. vmaillot
    Member
    Posted 3 years ago #

    File : wp-content/plugins/proplayer/pro-player.php
    Line : 68

    Replace :

    $result .= '<div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="'.$flashvars[Constants::$WIDTH_KEY].'px" height="'.$flashvars[Constants::$HEIGHT_KEY].'px"><div id="pro-player-'.$id.'"></div></div></div>'.$this->NEW_LINE;

    With :

    $result .= '<div name="mediaspace" id="mediaspace"><div class="pro-player-container" style="width:'.$flashvars[Constants::$WIDTH_KEY].'px; height:'.$flashvars[Constants::$HEIGHT_KEY].'px; margin:auto;"><div id="pro-player-'.$id.'"></div></div></div>'.$this->NEW_LINE;

  2. ventrilqstman
    Inactive
    Posted 3 years ago #

    Thanks for the info. I may have to try this becuase if I can't center this plugin is out.

    I think the real question is why is there no option to center built in. I don't understand it when people take the time to design a great plugin and then overlook something as simple and essential as centering. Very frustrating.

  3. ventrilqstman
    Inactive
    Posted 3 years ago #

    Thanks again for this tip. Worked great. Hopefully the dev fixes this bug in the next update we so don't have to mod it every time.

  4. scherer326
    Member
    Posted 3 years ago #

    thanks for the tip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags