Support » Plugins and Hacks » [Resolved] Contain video inside a div

[Resolved] Contain video inside a div

  • 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>



Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pupunzi


    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

    Hey man,

    Thank you so very much. It is all working now. I can’t figure out, what I was doing wrong 🙂

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Contain video inside a div’ is closed to new replies.