7 Replies Latest reply on Nov 30, 2012 1:09 PM by zontaluma

    How do I call more than one video

    zontaluma Level 1

      Edgers!  I have a project where I need to use more than one video in my Edge comp.  I'm currently using composition Ready on the main stage with a symbol called vcontainer.  Here's the code

       

      var vid = $("<video width='964' height='530' controls='controls' poster='media/bruce.png'>" +

       

        "<source src='http://www.movie.mp4' type='video/mp4' />" +

       

      "<source src='http://www.movie.ogg' type='video/ogg' />" +

       

      "</video>");

       

      sym.getSymbol("SYM_SCREEN").$("vcontainer").append(vid);

       

      //vid.attr('autoplay','autoplay');

       

      vid.attr('preload','auto');

       

      This works great but I can only load one video file.  What I'd like to do is have 15 buttons on my stage calling 15 different videos in the same comp.  Right now i have 15 different Edge comps with the code above calling the video source. 

       

      Thoughts?