Support » Plugin: mb.YTPlayer for background videos » How to make background of custom div

Viewing 1 replies (of 1 total)
  • Plugin Author pupunzi

    (@pupunzi)

    Hi,
    Yes, it’s possible. It is not documented as it presumes you are a little bit more confident with the HTML DOM structure. You can find documentation (related to the jQuery plug-in) here:
    https://github.com/pupunzi/jquery.mb.YTPlayer/wiki

    You should not use the shortcode method but directly write the DOM constructor in the content editor 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:'#containmentID',startAt:50,mute:false,autoPlay:false,loop:false,opacity:.8}"></div>

    Where “containmentID” is the ID of the DOM element where you whant to play the movie.

    Bye,
    Matteo

Viewing 1 replies (of 1 total)
  • The topic ‘How to make background of custom div’ is closed to new replies.