Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

How to stop an embeded video (youtube) ?

$
0
0

Hi everyone,


I've got the following problem :

 

I've used this code :

 

var youtubevid = $("<iframe/>");

sym.getSymbol("Page").$("vcontainer").append(youtubevid);

youtubevid.attr('type','text/html');

youtubevid.attr('width','396');

youtubevid.attr('height','308');

youtubevid.attr('src','http://www.youtube.com/embed/VRRql9jZ4vo');  // url/Video_Id

youtubevid.attr('frameborder','0');       // 1 | 0

youtubevid.attr('allowfullscreen','0');   // 1 | 0

 

Inside the "compositionReady" trigger

 

Now which code should I use, and where should I add it to stop the video from playing ?

 

I tried the JQuery "player.stopVideo()" but I guess this is not as simple as that...

 

The command "hide()" is just hiding the video, but not stopping it, which will be a problem as I have 4 other videos on this webs

 

Any thoughts would be welcome


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>