Hi there, i have a video player that plays videos from remote url, so i have looked at the Kitchen Sink example for remote url and i have done my player like this;
Ti.include("functions.js"); var video_pencere = Ti.UI.currentWindow; video_pencere.backgroundColor = '#000'; video_pencere.orientationModes = [Ti.UI.LANDSCAPE_RIGHT]; video_url = video_pencere.video_url; function getOrientation(o) { switch (o) { case Titanium.UI.PORTRAIT: return 'portrait'; case Titanium.UI.UPSIDE_PORTRAIT: return 'reverse portrait'; case Titanium.UI.LANDSCAPE_LEFT: return 'landscape'; case Titanium.UI.LANDSCAPE_RIGHT: return 'reverse landscape'; case Titanium.UI.FACE_UP: return 'face up'; case Titanium.UI.FACE_DOWN: return 'face down'; case Titanium.UI.UNKNOWN: return 'unknown'; } } Ti.UI.orientation = Ti.UI.LANDSCAPE_RIGHT; Ti.UI.currentWindow.hideTabBar(); var video_url; video_url = video_pencere.izle; var videoPlayer = Titanium.Media.createVideoPlayer({ top:0, left:0, width:Ti.UI.FILL, url: video_url, backgroundColor:'#111', movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode:Titanium.Media.VIDEO_SCALING_NONE }); //video_pencere.id = id; //sayac(id); Ti.API.info(video_url); //videoPlayer.fullscreen = true; videoPlayer.play(); video_pencere.add(videoPlayer);it plays video fine, i am changing the orientation when window opened, because i want users play video from Landscape view. VideoPlayer works fine, when user clicks the fullscreen button video plays fine, but the problem is when the user clicks the "Done" button, my player don't obey the left and top values? what should i do for this?
Here is my screenshots;
http://tinypic.com/r/14v7o2e/6
http://tinypic.com/r/257f2mx/6
1 Answer
Accepted Answer
Looks like its a known issue. You can watch the bug for updates here: [TIMOB-10489]
Your Answer
Think you can help? Login to answer this question!