Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3027] iOS Bug: Titanium.Media.createVideoPlayer Crash

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2012-08-02T03:20:16.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.1
ComponentsiOS
Labelsmodule_media, qe-testadded
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:35:04.000+0000
Updated2012-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();

Comments

  1. Junaid Younus 2012-05-14

    Tested on 2.0.1GA2 with the iOS simulator, unable to reproduce this issue. Ticket closed.
  2. Evgenii Tcarev 2012-07-16

    verified fixed with SDK - 2.2.0.v20120716092112 and iPhone 4 (5.1)
  3. Eric Merriman 2012-07-17

    Reopening to fix customer tag added inadvertently
  4. Shyam Bhadauria 2012-08-02

    Re-opening to edit label

JSON Source