[TIMOB-10928] iOS: The video player is not displayed in fullscreen even after setting fullscreen proporties to true in Ti.Ui.createVideoPlayer (iOS 6)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-20T13:51:11.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | Release 2.1.3, Release 3.0.0, Sprint 2012-19 API, 2012 Sprint 19 |
Components | iOS |
Labels | qe-ios090112, qe-ios6, qe-nfc, qe-port |
Reporter | Lokesh Choudhary |
Assignee | Vishal Duggal |
Created | 2012-09-14T17:50:52.000+0000 |
Updated | 2012-09-25T19:55:13.000+0000 |
Description
Description:
1.Replace the app.js with the following code.
Titanium.UI.setBackgroundColor('#000');
var mainWin = Titanium.UI.createWindow({
exitOnClose:true,
fullscreen:true,
backgroundColor:'#ffffff',
});
var VideoPlayer=Ti.Media.createVideoPlayer({
zIndex:3,
top:350,
left:300,
url:"http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov",
backgroundColor:"#000000",
fullscreen:true,
mediaControlMode: Titanium.Media.VIDEO_CONTROL_FULLSCREEN
});
mainWin.add(VideoPlayer);
mainWin.open();
2.Run the app on simulator running ios6 or a device running iOS 6 gm seed.
3.You will see that the video player is not full screen.
Expected result:
1.The video player should run fullscreen.
Actual Result:
1.The video player does not run fullscreen.
Since this came in so late, I think we can defer this one for the release on the 28th.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3009
The video runs in fullscreen on launch. Verified fix on: Titanium studio : 2.1.2.201208301612 SDK version : 2.1.3.v20120920154617 SDK Version : 3.0.0.v20120921051359 iOS simulator xcode 4.5
Also verified the fix on Iphone 4S & ipad 3 running iOS6 GM.
Hi there, please forgive me if I am wrong - but I don't think this is fixed fully. Try something like the code below - the videoplayer does not open in fullscreen. I believe it should. again sorry if this is wrong, but I desperately need this to work as my app is now failing. Titanium.UI.setBackgroundColor('#000'); var mainWin = Titanium.UI.createWindow({ exitOnClose : true, fullscreen : true, backgroundColor : 'white', }); var btn1 = Titanium.UI.createButton({ title : 'Open Video', }); mainWin.add(btn1); var vidWin = Titanium.UI.createWindow({ exitOnClose : true, fullscreen : true, backgroundColor : 'white', }); var videoPlayer = Ti.Media.createVideoPlayer({ zIndex : 3, //top:350, //left : 300, url : "http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov", backgroundColor : "#000000", fullscreen : true, mediaControlMode : Titanium.Media.VIDEO_CONTROL_FULLSCREEN }); vidWin.add(videoPlayer); btn1.addEventListener('click', vidPlayer); function vidPlayer(e) { vidWin.open(); } mainWin.open();
Sorry Please ignore last comment - my bad!