1 Reply Latest reply on Sep 14, 2009 11:30 AM by kglad

    Multiple players 1 flv file

    zaverx

      Hello,

       

      I am currently working on a project that i need to have multiple flv players all displaying the same video simultaneously. I noticed that this causes a delay on the webpage when loading and the video doesnt start simultaneously for each player, so i guess the same video is loaded over and over again. Is there a workaround to that so i can load the video once and play it on the 3 players simultaneously??

       

       

      var nc:NetConnection = new NetConnection();
      nc.connect(null);

       

      var ns:NetStream = new NetStream(nc);
      var ns2:NetStream = new NetStream(nc);
      var ns3:NetStream = new NetStream(nc);

       

      theVideo.attachVideo(ns);
      theVideo2.attachVideo(ns2);
      theVideo3.attachVideo(ns3);

       

      ns.play("flv_videos/Comp_1.flv");
      ns2.play("flv_videos/Comp_1.flv");
      ns3.play("flv_videos/Comp_2.flv");

       

       

      Any help is greatly appreciated

       

      Thanks

      Zaver