Created
March 11, 2019 13:54
-
-
Save exclusiveTanim/164c10796da6f5f5f8868de16f57ea8a to your computer and use it in GitHub Desktop.
iOS 11.x screen rotation issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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