Skip to main content
Participant
Sep 16, 2013 8:02 AM UTC
Question

[iOS7] StageVideo Application Crash

Hello,

My application sometimes crashes when playing repeatedly MP4 with StageVideo in iOS7.

It crashes frequently when the local MP4, but rarely occurs it happens in streaming.

There is no problem in iOS6.

  • iPhone5
  • iOS 7 GM
  • AIR 3.9.1.1080, AIR 3.8.0.1430, AIR 3.7.0.2090
  • Test Video Format: H.264 AAC 640x360 Stereo 607KB

test code here:

private var _file:File;

private var _connection:NetConnection;

private var _stream:NetStream;

public function init()

{

          _file = File.applicationDirectory.resolvePath("***.mp4");

          stage.addEventListener(MouseEvent.CLICK, _clickHandler);

}

private function _clickHandler(e:MouseEvent):void

{

          if (_stream) {

                    _stream.dispose();

                    _connection.close();

          }

          _connection = new NetConnection();

          _connection.connect(null);

          _stream = new NetStream(_connection);

          _stream.client = { onMetaData:function(){} };

          var stageVideos:Vector.<StageVideo> = stage.stageVideos;

          if (stageVideos.length >= 1) {

                    var stageVideo:StageVideo = stageVideos[0];

                    stageVideo.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);

                    stageVideo.attachNetStream(_stream);

          }

          _stream.play(_file.url);

}

I hope that this issue will be corrected.

thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participant
Sep 20, 2013 6:35 PM UTC

any answer?

Translate
Known Participant
Sep 23, 2013 11:08 AM UTC

I'm experiencing the same problem. I have filed a bug report with adobe (#3638033)

https://bugbase.adobe.com/index.cfm?event=bug&id=3638033

Translate
Leafcutter
Inspiring
Sep 24, 2013 12:07 PM UTC

Me too - it doesn't even seem to be when switching to a different video it is just restarting an existing one.  Very frustrating as it means that my video apps are now getting reviews of 'not working on iOS7'

Translate