×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    44

    Auto Rotation of Video

    Hi,
    Please don't mistake me if my dout is silly I wanted to know like how we lock the orientation of the screen can we lock the video view to landscape so that we dont need to check for orientation and change the co-ordinates of the play pause forward and rewind buttons.

    Regards,
    Elmi...

  2. #2
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    100

    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 this link.



  3. #3
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Auto Rotation of Video

    Hi
    Before following sangramp advise, just go through this thread :
    Setting the default orientation in Flash Lite
    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

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    44

    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 http://wiki.forum.nokia.com/index.ph...n_FlashLite3.x 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...
    Last edited by elminator; 2010-09-07 at 07:39.

Similar Threads

  1. screen auto rotation
    By laya.777 in forum Nokia N9
    Replies: 4
    Last Post: 2010-07-07, 09:36
  2. How can i block rotation of joystick during Auto-Rotation?
    By djscorpion83 in forum Symbian C++
    Replies: 4
    Last Post: 2010-05-07, 11:14
  3. disable auto-rotation of display
    By wildabeast in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2009-09-29, 22:53
  4. Auto screen rotation of N82
    By hangyc in forum Mobile Java General
    Replies: 3
    Last Post: 2009-04-07, 09:21
  5. How to disable auto screen rotation?
    By olliwang in forum Python
    Replies: 1
    Last Post: 2008-11-08, 13:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •