Skip to main content
Participant
September 16, 2013
Question

[iOS7] StageVideo Application Crash

  • September 16, 2013
  • 1 reply
  • 1309 views

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 has been closed for replies.

1 reply

Participant
September 20, 2013

any answer?

Known Participant
September 23, 2013

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

Leafcutter
Inspiring
September 24, 2013

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'