Incorrect video orientation on Kindle Fire

I’m using “media.playVideo” to play a video on my Kindle Fire. My build.settings have a landscape orientation, but when I view the video on my Kindle Fire, the video shows up in vertical orientation. Here is a screenshot:

Is there any way to show the video in horizontal orientation on the Kindle Fire? [import]uid: 82194 topic_id: 31299 reply_id: 331299[/import]

The video player on Android supports orientation changes even if your app has a fixed orientation. That means if you hold the device in landscape, it will play the video in landscape. The only time it will not display in landscape is if you have the orientation sensor disabled on your Kindle Fire… which I’m guessing is the case here.

Please do the following:

  1. Tap the top right corner on your Kindle Fire’s status bar.
  2. This will display a toolbar at the top of the screen.
  3. If the left most button displays “Locked”, tap it to unlock orientation changes.
    [import]uid: 32256 topic_id: 31299 reply_id: 125180[/import]

Perfect! That worked, thanks Joshua. One last question? Is there any way to detect if a user has their orientation sensor disabled (like I did) and then alert them to unlock their orientation setting? [import]uid: 82194 topic_id: 31299 reply_id: 125195[/import]

Great! Glad i could help.

>> Is there any way to detect if a user has their orientation sensor disabled?

Unfortunately, no.

Now, we do eventually plan on supporting [lua]native.newVideo()[/lua] on Android, which would display a video at the same orientation as your app. So, once that feature is made available on Android, you might want to switch to using it instead. No ETA yet, but it’s pretty high on our roadmap as seen in the link below. Notifications is going to be done before video view, so you’ll have to wait until after that feature has been implemented.
http://www.coronalabs.com/resources/roadmap/
[import]uid: 32256 topic_id: 31299 reply_id: 125197[/import]

Wow that’s great, can’t wait to get native.newVideo working on Android too! Will be looking forward to it! [import]uid: 82194 topic_id: 31299 reply_id: 125198[/import]

The video player on Android supports orientation changes even if your app has a fixed orientation. That means if you hold the device in landscape, it will play the video in landscape. The only time it will not display in landscape is if you have the orientation sensor disabled on your Kindle Fire… which I’m guessing is the case here.

Please do the following:

  1. Tap the top right corner on your Kindle Fire’s status bar.
  2. This will display a toolbar at the top of the screen.
  3. If the left most button displays “Locked”, tap it to unlock orientation changes.
    [import]uid: 32256 topic_id: 31299 reply_id: 125180[/import]

Perfect! That worked, thanks Joshua. One last question? Is there any way to detect if a user has their orientation sensor disabled (like I did) and then alert them to unlock their orientation setting? [import]uid: 82194 topic_id: 31299 reply_id: 125195[/import]

Great! Glad i could help.

>> Is there any way to detect if a user has their orientation sensor disabled?

Unfortunately, no.

Now, we do eventually plan on supporting [lua]native.newVideo()[/lua] on Android, which would display a video at the same orientation as your app. So, once that feature is made available on Android, you might want to switch to using it instead. No ETA yet, but it’s pretty high on our roadmap as seen in the link below. Notifications is going to be done before video view, so you’ll have to wait until after that feature has been implemented.
http://www.coronalabs.com/resources/roadmap/
[import]uid: 32256 topic_id: 31299 reply_id: 125197[/import]

Wow that’s great, can’t wait to get native.newVideo working on Android too! Will be looking forward to it! [import]uid: 82194 topic_id: 31299 reply_id: 125198[/import]