6 Replies Latest reply on Apr 15, 2015 11:56 AM by melodieh8819377

    video audio continues to play in the background

    TonyEllisMedia

      I have created a close button that should stop the video from playing, thus closing out of the video and returning to the main menu. But the video audio continues to play in the background.

      Does anyone know how I can get the video to pause/stop playing at the same time as it returns to the main menu and after clicking on the close button?

       

      This is what I have to play the video:

       

      var videoStage = sym.$("videoPlayStage");

      videoStage.html('<video id="myvideo" width= "640" height= "360" src = "composition2/myvideo.mp4" poster="images/poster" type= "video/mp4" controls = "controls"></video>');

      sym.$("videoPlayStage").show();

       

      close button

      I have a trigger:


      "off"

      sym.$("#D39").pause();

       

      It is not working.