Skip to content

Instantly share code, notes, and snippets.

@exclusiveTanim
Created March 11, 2019 13:54
Show Gist options
  • Save exclusiveTanim/164c10796da6f5f5f8868de16f57ea8a to your computer and use it in GitHub Desktop.
Save exclusiveTanim/164c10796da6f5f5f8868de16f57ea8a to your computer and use it in GitHub Desktop.
iOS 11.x screen rotation issue
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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment