0 Replies Latest reply on Mar 22, 2016 8:15 AM by Setting

    Multiples videos with one button to play

    Setting Level 1

      Hi! I'm trying to use just one button on my project to play multiples videos on my stage. I'm just doing something like this:

       

      sym.$("video01").hide();

      // Show an element

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

      // Play a video track

      sym.$("video02")[0].play();

       

      sym.$("video02").bind( "ended", function(e){ sym.$("video02").hide(); sym.$("video03").show(); 

      }) ;

       

      Works fine, but begins to make a mess with more videos, and i have to use more videos on this.

       

      Anyone could help me on this issue?

       

      Thanks