Reputation: 211
I'm tearing my hair out trying to add controls such as pause and volume to my Chromeless Youtube Player in Flash with actionscript 3, tried working with the reference that google provide but it still doesn't work. Here's what I tried, can anyone tell me where I'm going wrong?
function pauseVideo() {
if (player) {
player.pauseVideo();
}
}
pauseBtn.addEventListener(MouseEvent.CLICK,pauseVideo);
Thanks
Upvotes: 1
Views: 329
Reputation: 1195
How I understand you are trying to integrate youtube's player into your application. Take a look at this example it may help you and check with the documentation if you are loading correctly their player and it's fully loaded when you are trying to access it, first example
*I would like to help you more but I don't know how you instantiate the player
Upvotes: 1