VideoPlayer FullScreen Done Button

You must Login before you can answer or comment on any questions.

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]

— answered 9 months ago by Anthony Decena
answer permalink
1 Comment
  • Anthony i have installed the SDK 2.1.3 and iOS 6 now there is no problem but this time video window doesn't play in landscape mode, always in portrait mode. Do you know something about that?maybe i can write some functions for ios6 and ios5 devices but how can i get the user device ios version?

    — commented 9 months ago by Graham Jeffrey

Your Answer

Think you can help? Login to answer this question!