3 Replies Latest reply on Nov 25, 2008 10:34 PM by Devendran

    swf to play mp4 video file

    BobAchgill Level 1
      Is it true that Flash Media player can support playing MPEG-4 video?

      What do I need to change in my existing code that plays flv to also play an .mp4 file?

      Here is my existing code...

      var my_video:Video; // my_video is a Video object on the Stage
      var my_nc:NetConnection = new NetConnection();
      my_nc.connect(null);
      var my_ns:NetStream = new NetStream(my_nc);
      my_video.attachVideo(my_ns);

      my_ns.play(MyParameter); //MyParameter is the .flv that is passed in as a parameter when the swf is started