[TIMOB-3027] iOS Bug: Titanium.Media.createVideoPlayer Crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-02T03:20:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.0.1 |
Components | iOS |
Labels | module_media, qe-testadded |
Reporter | Alan Leard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:35:04.000+0000 |
Updated | 2012-08-10T10:57:59.000+0000 |
Description
If you put a VideoPlayer in a window on a tab, switch tabs while the video is playing, and then come back to the first tab, the app crashes.
var tabGroup = Titanium.UI.createTabGroup();
var win = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win
});
var videoContent = Titanium.Media.createVideoPlayer({
url: 'movie.mp4',
backgroundColor:'#111',
movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
});
win.add(videoContent);
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 2',
window:win2
});
var label2 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 2',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win2.add(label2);
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
Tested on 2.0.1GA2 with the iOS simulator, unable to reproduce this issue. Ticket closed.
verified fixed with SDK - 2.2.0.v20120716092112 and iPhone 4 (5.1)
Reopening to fix customer tag added inadvertently
Re-opening to edit label