1 Reply Latest reply on Feb 21, 2014 2:18 AM by hemanthR

    Play button from video on ipad for html5 video

    paulsakebomb Level 1

      I'm new at this so please forgive my ignorance.  I have an html5 video that plays with the controls but I want to hide the controls and trigger the play with a button in animate.  Is this possible?

       

      My video code is in a timeline action:

       

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

      vid.html('<video id="mainvideo" width ="1280" height="720" src = "video/braking1.mp4" type = "video/mp4"</video>');

       

       

      How would I trigger the video to play from the onclick of another button?

        • 1. Re: Play button from video on ipad for html5 video
          hemanthR Adobe Employee

          You can hide the default video tag controls by setting the controls attribute to false.

          i.e.

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

          vid.html('<video id="mainvideo" width ="1280" height="720" controls=false src = "video/braking1.mp4" type = "video/mp4"</video>');

           

          Now to play onclick event,call the play function of the video tag

          i.e $("#mainvideo").play();

          1 person found this helpful