1 Reply Latest reply on Aug 23, 2010 11:47 PM by Sudheendra Sathavalli

    FLVPlayback Caption

    athiroy

      In FLVPlayback created cuepoints. i want to attach xml caption file with flv using Flash as2.0.

      I used the following script. how to add xml file in this script?

       

      var nc:NetConnection = new NetConnection();
      nc.connect(null);
      var ns:NetStream = new NetStream(nc);
      //ns.play("speech.flv");
      ns.onMetaData = function(oMeta:Object) {
          trace("onMetaData >");
          trace("\tNumber of cue points: "+oMeta.cuePoints.length);
          for (var i:Number = 0; i<oMeta.cuePoints.length; i++) {
              var oCue:Object = oMeta.cuePoints[i];
              trace("\t\t"+i+": "+oCue.name+", "+oCue.type);
          }
      };

       

      Regards,

      Athi