Just in case, you are still looking for a solution using YTPlayer . Set containment:'self' or containment:'#elementID' in the HTML constructor, where #elementID is the identifier of your div , section or parallax section in which you want the video to play in the background.
Check out the YTPlayer Wiki page here .
<div id="P1" class="player" data-property="{videoURL:'http://youtu.be/l_tHTmd5pgk',containment:'self',startAt:50,mute:false,autoPlay:false,loop:false,opacity:.8}"> </div>
Zakky akhtar
source share