0 Replies Latest reply on Apr 20, 2015 11:55 PM by mayurm38949967

    Local video file (.mp4) file not play in MAC OS using netstream (NetStream.Play.StreamNotFound)

    mayurm38949967

      I have developed adobe air application using adobe flash builder 4.6 for Windows and Mac OS. Application allow user to download movie (.mp4) file in his system at specific location for play  without live streaming. File downloading correctly in both OS and also file playing from download location in Window application correctly. but when start playing file Mac OS application not start playing.

       

      When start playing in mac OS, NetStatusEvent.Net_Status event return "NetStream.Play.StreamNotFound" event info code. I have found one solution for mac OS is use colon notation instead of slash notation. I have tried it but it also not working.

       

      Code:

      _nc = new NetConnection();

      _nc.addEventListener(NetStatusEvent.Net_Status, connectionHandler);

      _nc.connect(null);

       

      private function connectionHandler(event:NetStatusEvent):void

      {

           trace("Connection to server: " + event.info.code);

           /// Get "NetStream.Play.StreamNotFound" code in mac OS.    

      }

       

       

      slash notation path: /Users/mayur/Downloads/myvideo.mp4

      Colon notation path: I have tried following colon notation path

      1) :Users:mayur:Downloads:myvideo.mp4

      2) Users:mayur:Downloads:myvideo.mp4

      3) Macintosh HD:Users:mayur:Downloads:myvideo.mp4 (Macintosh HD - Drive name)

       

      Please help me to solve this issue.