[TIMOB-26892] iOS: Video player orientation is not changing properly in iOS 11.x
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Done |
Resolution Date | 2020-01-14T21:51:18.000+0000 |
Affected Version/s | Release 7.5.0, Release 7.5.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | engSchedule |
Reporter | Fazlul Haque |
Assignee | Vijay Singh |
Created | 2019-03-11T17:17:42.000+0000 |
Updated | 2020-01-14T21:51:19.000+0000 |
Description
Hello,
The video player orientation is not changing properly in iOS 11.x but it's working fine for iOS 12 and above. Please have a look at the attachment videos.
*Steps to reproduce the issue:*
1.Let app orientation be in portrait and play the video(Using the below app.js file)
2. make video go in full screen
3. switch the device in landscape mode, video orientation will come in landscape mode
4. Do not change the orientation any more and tap on cross button to go back to app exiting full screen video mode
5. you will notice window/screen in portrait mode.
*Test Code:*
app.js
var win = Ti.UI.createWindow({
width:"100%",
height:"100%",
color:"yellow"
});
videoPlayerView = Ti.UI.createView({
left:'3%',
backgroundColor:'#D8D8D8',
borderColor:'#979797',
borderWidth:'1',
top:'10%',
width:'94%' ,
height:'30%',
});
win.add(videoPlayerView);
videoPlayer =Titanium.Media.createVideoPlayer({
top : 0,
autoplay : false,
height : '100%',
width : '100%',
url:"https://www.radiantmediaplayer.com/media/bbb-360p.mp4",
mediaControlStyle : Ti.Media.VIDEO_CONTROL_DEFAULT,
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FILL,
repeatMode:Titanium.Media.VIDEO_REPEAT_MODE_ONE,
});
videoPlayerView.add(videoPlayer);
win.open();
*Test Environment:*
Appcelerator Command-Line Interface, version 7.0.9
Operating System
Name = Mac OS X
Version = 10.14
Architecture = 64bit
CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 8.9.1
npm Version = 5.5.1
Titanium CLI
CLI Version = 5.1.1
Titanium SDK
SDK Version = 7.5.1.GA,7.5.0.GA
iOS simulator version: 12.1, 11.4
Thanks
Attachments
File | Date | Size |
---|---|---|
ios 12nativeapp_videoinvisible .MP4.zip | 2019-04-24T20:57:30.000+0000 | 10304782 |
issue with iOS 11.x.MOV | 2019-03-11T17:16:34.000+0000 | 6940759 |
TestMoviePlayer.zip | 2019-03-11T23:41:18.000+0000 | 8509148 |
Working fine(iOS 12).MP4 | 2019-03-11T17:17:01.000+0000 | 6629519 |
I tried to run on iOS 11 and iOS 12. Both are behaving same. After going in landscape mode and clicking cross button, video orientation is in landscape mode. If I change device orientation in portrait, it changes to portrait mode. I tried on iOS 11.1 and iOS 12.1. I tried with native iOS app (attached [^TestMoviePlayer.zip] ) as well and it is behaving same.
In native app(attached) in iOS 11 also there is some random behavior - In native app after step 5 (as mentioned in app description)- 1. Make video in full screen . 2. Then tap on cross button. Video view get resized too small. I'll file apple bug for this. The bug mentioned in ticket may be fixed if apple fixed this app as we do not have iOS 11/12 specific code for video player size and orientation. Meanwhile I'll check in SDK if I can get something to fix this in iOS 11. Thanks!
Filed a bug to apple. Corresponding radar is - https://openradar.appspot.com/radar?id=4971866041090048
I got following reply from Apple and they closed the issue - " Apple Developer Relations Engineering has provided the following information regarding this issue: Thank you for the report. This issue has been resolved in iOS 12.0 and later. "