[TIMOB-2903] iOS: Video resize from fullscreen crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-14T03:40:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.0.1 |
Components | iOS |
Labels | bug, ios, module_media, qe-review, qe-testadded, videoplayer |
Reporter | Alan Leard |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:32:31.000+0000 |
Updated | 2013-12-10T06:07:27.000+0000 |
Description
If you start a video in fullscreen, and then click done and resize the video, the app will often freeze or crash.
Specifically if the size does not match the video resolution.
Ticket Reference: http://developer.appcelerator.com/helpdesk/view/66451">http://developer.appcelerator.com/helpdesk/view/66451
Test Code:
win = Titanium.UI.createWindow({
title:'Test'
});
var label = Ti.UI.createLabel({
top: 30,
width:100,
height:30,
text: 'start video',
backgroundColor:'white'
}); win.add(label);
label.addEventListener('singletap', function(e){
activeMovie = Titanium.Media.createVideoPlayer({
width: 640/4, //if the aspect is not video default, then you'll get an exception
height: 360/4, //if the aspect is not video default, then you'll get an exception
fullscreen: true, //this one must be true, or the video must be resized for the exception
autoplay: false,
url: 'movie.mp4',
backgroundColor:'#000',
movieControlMode:Ti.Media.VIDEO_CONTROL_DEFAULT,
scalingMode:Ti.Media.VIDEO_SCALING_ASPECT_FIT
});
win.add(activeMovie);
activeMovie.addEventListener('complete', function(e){
Ti.API.info('movie finished playing');
if (activeMovie.playing == true) {
Ti.API.info('movie is playing');
activeMovie.stop();
} else {
Ti.API.info('movie is stopped');
}
activeMovie.fullscreen = false;
win.remove(activeMovie);
Ti.API.info('movie onComplete finished');
});
activeMovie.play();
});
win.open();
I need this bug to be fixed, is there any timeline?
Why do I pay for support? Fix it or tell me which file I have to fix by myself.
Jira bug review - I cannot reproduce the issue running latest 2.1 CI SDK build. Closing bug.
Closing as fixed. Tested with: Titanium Studio, build: 2.1.1.201207121732 Titanium SDK: 2.2.0.v20120716092112 Devices: iPod Newton 4.3.5, iPhone 4S 5.1
Re-opening to edit label
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021