Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2903] iOS: Video resize from fullscreen crash

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2012-08-14T03:40:59.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.1
ComponentsiOS
Labelsbug, ios, module_media, qe-review, qe-testadded, videoplayer
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:32:31.000+0000
Updated2013-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();

Comments

  1. Konstantin 2011-04-15

    I need this bug to be fixed, is there any timeline?

  2. Konstantin 2011-04-15

    Why do I pay for support? Fix it or tell me which file I have to fix by myself.

  3. Federico Casali 2012-05-16

    Jira bug review - I cannot reproduce the issue running latest 2.1 CI SDK build. Closing bug.
  4. Kanat Asanbekov 2012-07-16

    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
  5. Shyam Bhadauria 2012-08-14

    Re-opening to edit label
  6. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021

JSON Source