0 Replies Latest reply on Mar 5, 2014 5:33 AM by Danm87

    playing a local .mp4 in ios


      Hi all,


      I'm trying to play an embedded .mp4 on an ios device using OSMF.


      when trying to play a .flv file, everything works fine, while trying to play a .mp4, simply doesnt work (though loading a .mp4 from an http works fine).


      var filepath:String =  "file://"+File.applicationDirectory.nativePath + "/Adventure_Town_assets_CloudsMovie.mp4";



      var container:MediaContainer = new MediaContainer();

      addChild( container );


      var resource:URLResource = new URLResource(filepath);


      var videoElement:VideoElement = new VideoElement( resource );

      container.addMediaElement( videoElement );


      var mediaPlayer:MediaPlayer = new MediaPlayer();

      mediaPlayer.media = videoElement;


      help would be much appriciated

      Best regards,