WordPress.org

Ready to get started?Download WordPress

Forums

mb.YTPlayer for background videos
Background template (2 posts)

  1. whoopcg
    Member
    Posted 1 year ago #

    Hi there.
    I've used this line of code on my template, to try to add a background movie to the template.
    Didn't work.
    Can anyone help?

    <?php echo do_shortcode("[mbYTPlayer url="http://www.youtube/example" ratio="16/9" mute="true" loop="true" showcontrols="false" opacity=1]"); ?>

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

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Try adding all the properties to the shortcode, for example:

    [mbYTPlayer url="https://www.youtube.com/watch?v=FVsoruxYPCA" opacity=".8" quality="medium" ratio="auto" isinline="false" autoplay="true" startat="50" showcontrols="true" printurl="true" mute="true" loop="true" addraster="true"]

    Or you could write the corresponding generated HTML directly in the HTML template code:

    <div id="bgndVideo1" class="movie inline_YTPlayer" data-property="{videoURL:'https://www.youtube.com/watch?v=FVsoruxYPCA', opacity:.8, autoPlay:true, containment:'body', startAt:50, mute:true, optimizeDisplay:true, showControls:true, printUrl:true, loop:true, addRaster:true, quality:'medium', ratio:'auto'}"></div>

    Bye,
    M

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic