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

video control again

$
0
0

Hello,

 

I put my video on Stage using the following code :

 

var vid = sym.$("video_holder");

vid.html('<video id="videosalle0" style="display:block;position: absolute;top: 0px; left: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; overflow: hidden;" webkit-playsinline=""  autoplay="autoplay" controls="controls" poster="images/salleOlga/poster_olga.jg" ><source src="videos/OlgaBancic.mp4" type="video/mp4"><source src="videos/OlgaBancic.webm" type="video/webm"><source src="videos/OlgaBancic.ogv" type="video/ogg"></video>');

 

I have a button that will play a sound and i want that when I click this button it pauses the video.

 

I tried :

 

sym.$("video_holder")[0].pause();

or


sym.$("vid")[0].pause();


doesn't work. Can anybody out there help me?

thanks




Viewing all articles
Browse latest Browse all 9897

Trending Articles



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