4 Replies Latest reply on Sep 22, 2016 1:56 AM by bartbox69

    Start playing main timeline from external html command?

    bartbox69

      Hi all

       

      I have a project where the main timeline stops while a video is playing. When the video ends I want the timeline to start playing again.

       

      I am using the code below in the HTML page (not in Edge Animate) to detect the end of the video and show an end frame. What i need is the instruction to tell the main timeline to start playing again. I have tried using play(); and other variations but this does not work and i cannot seem to target the stage from this HTML.

       

      Does anyone know what this command would be?

       

      <!-- DETECT END OF VIDEO AND SHOW ENDFRAME -->

        <script>

          //callback for when the composition has loaded

          AdobeEdge.bootstrapCallback(function(compId) {

          document.getElementById('Stage_video_trailer').addEventListener('ended', function(e) {

          $('#Stage_mm-video-endframe').show();

          play();

        });

       

        });

        </script>

        <!-- END DETECT END OF VIDEO AND SHOW ENDFRAME -->

       

      Thanks

       

      Neil