WordPress.org

Ready to get started?Download WordPress

Forums

mb.YTPlayer for background videos
[resolved] Contain video inside a div (3 posts)

  1. svetoslavd79
    Member
    Posted 1 year ago #

    Hi there,

    I've tried your suggestion on containing the video inside one of my div's, however for some reason the video is not loading. I can't see any script issues in the console so I am not sure what it could be. It seems that the iframe of the video is not loaded at all. I've tried with my video and also directly pasting your sample:

    <div id="P1" class="movie" style="display:block; margin: auto; background: rgba(0,0,0,0.5)" data-property="{videoURL:'http://www.youtube.com/watch?v=l_tHTmd5pgk',containment:'#containmentID',startAt:50,mute:false,autoPlay:false,loop:false,opacity:.8}"></div>

    Thanks
    Sven

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

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Sven,
    What I can see from the code you post is that the "containment" parameter is wrong... It should be the ID of the div you want the player to be initialized in as follow:

    <div id="P1" class="movie" style="display:block; margin: auto; background: rgba(0,0,0,0.5)" data-property="{videoURL:'http://www.youtube.com/watch?v=l_tHTmd5pgk',containment:'#P1',startAt:50,mute:false,autoPlay:false,loop:false,opacity:.8}"></div>

    Try this and let me know
    Matteo

  3. svetoslavd79
    Member
    Posted 1 year ago #

    Hey man,

    Thank you so very much. It is all working now. I can't figure out, what I was doing wrong :-)

    Thanks again.
    Sven

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.