Re: Auto Rotation of Video
If you are developing the app using FlashLite 3.1 , you can do it simply using Nokia FlashLite library.
import com.nokia.lib.Device;
var deviceObject:Object = new Device();
deviceObject.DisableAutoRotation(true);
For more info refer [URL="http://wiki.forum.nokia.com/index.php/How_to_avoid_auto_rotation_of_Flash_Lite_content_on_Nokia_5800"]this link.[/URL]
[URL="http://store.ovi.com/content/49303?cid=ovistore-fw-bac-na-acq-na-na-g0--pac102_216x36"][IMG]http://promotions.ovi.com/omt/img/UxD5WIY9feI6ysWTO5Oc7CNWEfwrF4QG[/IMG][/URL]
Re: Auto Rotation of Video
Hi
Before following sangramp advise, just go through this thread :
[URL="http://discussion.forum.nokia.com/forum/showthread.php?171333-Setting-the-default-orientation-for-flash-app&highlight=landscape"]Setting the default orientation in Flash Lite[/URL]
Because even DisableAutoRotation doesnt lock ur content to either portrait or landscape in all cases. So, there is no good solution actually, what u can do is , show a notification to the end-user if the user holds the phone in a orientation which is not supported in your application. Wish u luck,
Best Regards,
SajiSoft
Re: Auto Rotation of Video
Hi Friends,
Thanks for helping me out....
@ Sajisoft I tried your code Code:
fscommand2("DisableKeypadCompatibilityMode");
fscommand2("FullScreen", true);
Stage.scaleMode = "noScale";
Stage.align = "TL";
and this in AS in Second frame :
import com.nokia.lib.Device;
var deviceObject:Object = new Device();
deviceObject.DisableAutoRotation(true);
var i = fscommand2("GetSoftKeyLocation");
if (i == 2)
//2 means that the player is launched in portrait mode
{
_root._rotation = -270;
_root._x = 360;
_root._y = 0;
}
As explained the problem I'm still facing is video getting rotated automatically to portrait when the user starts the app in Portrait Mode. In this case the video is getting locked to Portrait. since we are using deviceObject.DisableAutoRotation(true);
Can you please help me out solving this issue please.
I am using the following code to play the video [url]http://wiki.forum.nokia.com/index.php/Playing_external_Flash_Video_in_FlashLite3.x[/url] I feel there is a bug in this code. If we expand the size of the video symbol on the stage and over lap the video controls on it. The controls are not seen on 5800 but works fine on N97. Does any one has faced the same issue by any chance.
Regards,
Elmi...