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]
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
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2959
Pull merged
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)