Hi Friends.
I want to run you-tube video in my app using web-view only in landscape mode . Each time it run video in Portrait mode only even I have forcefully change window mode to landscape using bellow code :
Code :
var URL = "http://www.youtube.com/embed/" + video_id + "?autoplay=1";
var w = Ti.UI.createWindow({ orientationModes : [Ti.UI.LANDSCAPE_LEFT], fullscreen:true });
var playerView = Ti.UI.createWebView({ url : URL, scalesPageToFit : true, });
w.add(playerView);
w.open();
Note : Same code work perfectly in iPad [i.e Video run in landscape mode.] But on device always run in Portrait mode only. Please help me out. Thanks in Advance.