[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.
