2 Replies Latest reply on Nov 19, 2014 7:55 AM by smenegassi

    video control again

    smenegassi Level 1

      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