Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10864] iOS: While playing Video if scaled back down the mainWindow is resized

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-09-14T17:18:57.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sRelease 2.1.3, Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19
ComponentsiOS
Labelsapi, module_window, qe-testadded, regression
ReporterYoann WYFFELS
AssigneeVishal Duggal
Created2012-09-09T23:28:31.000+0000
Updated2012-10-26T21:31:17.000+0000

Description

Problem

While playing video (local or url) on fullscreen, mainWindow is rotated back to portrait mode after the video is scaled back down: - Screenshot, before fullscreen/minimize: [http://perso.iloadev.fr/before.png] - Screenshot, after: [http://perso.iloadev.fr/after.png]

Steps to reproduce

1. wait for video to load 2. play it & put it on full screen (with pinch or button control) 3. Then, minimise the video - (see the "mainWin" has been resized)

Test case

Titanium.UI.setBackgroundColor('#000');
 
var mainWin = Titanium.UI.createWindow({
    orientationModes:[Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT],
    exitOnClose:true,
    navBarHidden:true,
    fullscreen:true,
    title:'Slide Box',
    backgroundColor:'#ffffff',
    zIndex:0
});
 
var VideoPlayer=Ti.Media.createVideoPlayer({
    zIndex:3,
    top:350,
    left:300,
    url:"",
    backgroundColor:"#000000",
    mediaControlStyle:Titanium.Media.VIDEO_CONTROL_EMBEDDED,
    scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
    width:308,
    height:208,
    visible:true,
    url:"http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov"
});
mainWin.add(VideoPlayer);
 
mainWin.open();

Logs

No specifics logs to show here

Community forum thread

[http://developer.appcelerator.com/question/142048/nice-videoplayer-ios-bug-with-212]

Comments

  1. Eduardo Gomez 2012-09-12

    Moved to Titanium main project to dig into it. Regression, works as expected in 2.0.1.GA2, the glitch is noticeable in current release 2.1.2.GA
  2. Vishal Duggal 2012-09-14

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2959
  3. Blain Hamon 2012-09-14

    Pull merged
  4. Satyam Sekhri 2012-09-17

    Verified on: Titanium Studio: 2.1.2.201208301612 Titanium SDK: 2.1.3.v20120915120319, 3.0.0.v20120915105712 Device: iPad Simulator, iPad2(v5.1), iPad3(v6.0)

JSON Source