Closed antonisgly closed 6 years ago
Do you have an URL where I can see your issue?
Hi, the video you're displaying is not managed by the jquery.mb.YTPlayer plug-in... Check the demo files you have in the downloaded package to see how to use it.
Hi, I declare data-property attribute on my .player div with the config and after that I am running on document ready state the initilization from js. Is that wrong?? Can you send me a link from the demo because I don't know which one suits to my needs.
Thanks for your time
Oh... ok I see, everything is right but if you set the containment as "self" the player will behave as a chromeless player (not as background) and the whole video is displayed. To make it work properly you should set a div where you declare the player property and set as containment the target div where you need the video to play. That way it will be initialized as background video.
In your case it should be:
<div id="hero-vid"></div>
<div id="bgndVideo" data-property="{
videoURL:'https://www.youtube.com/watch?v=PUdyuKaGQd4',
containment:'#hero-vid',
showControls:false,
autoPlay:true,
mute:true,
loop: true,
addRaster: true,
stopMovieOnBlur: false,
gaTrack: false
}" >
</div>
And the javascript:
var myPlayer = jQuery("#bgndVideo").YTPlayer();
Hope this helps you.
Hi,
Ok! Now I understand the logic behind the plugin.. But the display sets to none.. Can I make something to prevent this?
Thanks again for your time
Ok, now my css rules are ok and the video size looks as I expected. But the brand icon is still there for the first two seconds of the video..
Any idea??
you can change the "abundance" parameter to increase the video margin to cover the logo.
Hello!!
I am running my initilization correctly but after the video is loaded, at the bottom right side I see the ytp brand icon.
Is there any way to hide it??