0 Replies Latest reply on Feb 21, 2007 1:45 AM by susilosaja

    Video Not Showing

    susilosaja
      I have these on my mxml page :

      <mx:Script source="VideoTestFunctions.as" />
      <media:Video id="video" width="300" height="300"/>

      and these on VideoTestFunctions.as :

      import flash.net.*;

      private var videoUrl:String = "video/scooter.flv";
      private var conn:NetConnection;
      private var stream:NetStream;

      private function playVideo():void
      {
      conn = new NetConnection();
      conn.connect(null);

      stream = new NetStream(conn);
      stream.publish();
      video.attachNetStream(stream);

      stream.play(videoUrl);
      }

      It gave me this error :
      Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback onMetaData. error=ReferenceError: Error #1069: Property onMetaData not found on flash.net.NetStream and there is no default value.

      The sound came out , but not the picture.

      If i use wmv or mpeg file, there is no error , but nothing showed up. No sound either.
      Can I play video other than flv ?

      Regards,
      Susilo