I am able to embed a YouTube video by doing:
var tubeCont = sym.$("tubeCont");
var youtube = '<iframe width="'+tubeCont.width()+'" height="'+tubeCont.height()+'" src="http://www.youtube.com/embed/OCbrZvmLY0o?enablejsapi=1" frameborder="0" allowfullscreen ></iframe>';
I have some buttons that go to another position on the timeline where a different object is shown. if the video is playing, it will continue playing even if the user cannot see it. Hence, I want to pause or stop the video.
On the button clcik event I have tried:
And other stuff, but I cannot make it doing waht I want.
have you tryed tubeCont instead of youtube?
Yes, I tried tubeConf, and it doesn't work either.