barcin
February 7, 2011, 11:39am
1
Hi
I’m making game. I want to play video between game levels. Game is played in landscape mode.
Question: how to prevent orientation changing during playing the video. When I set available orientation modes in configuration file it works only for graphics. When I play video and change device orientation to portrait, video also goes to portrait mode.
Thanks for any help
Marcin [import]uid: 12119 topic_id: 6183 reply_id: 306183[/import]
barcin
February 9, 2011, 2:34pm
2
Hi
Has anybody similar problem? How to prevent app from changing video orientation during playback?
Marcin [import]uid: 12119 topic_id: 6183 reply_id: 21827[/import]
barcin
February 10, 2011, 1:49pm
3
Hi.
It’s me again. I know I’m annoying but anyone has problem with video orientation?
I was looking for setting in build.properties for info.plist. I used:
iphone =
{
plist=
{
UIStatusBarHidden=true,
UISupportedInterfaceOrientations = {
“UIInterfaceOrientationLandscapeLeft”,
“UIInterfaceOrientationLandscapeRight”
}
},
},
Nothing helped. When I turn device into portrait mode video player also chenge its orientation to portrait. Please help me.
Marcin [import]uid: 12119 topic_id: 6183 reply_id: 22036[/import]
Hi Marcin,
I’m having the same problem. I added the same to my build.settings and added a config.lua file with the following but neither prevented the video from playing in portrait mode.
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
audioPlayFrequency = 22050
},
}
Somebody help us!!!
eb. [import]uid: 14261 topic_id: 6183 reply_id: 25816[/import]
I have this for my game and it works perfect:
settings =
{
orientation =
{
default =“landscapeRight”,
},
iphone =
{
plist =
{
UIStatusBarHidden = true,
UIApplicationExitsOnSuspend = true,
UIAppFonts =
{
“Harrowprint.ttf”
},
},
},
} [import]uid: 11809 topic_id: 6183 reply_id: 25827[/import]
barcin
March 1, 2011, 7:00pm
6
well, lucky you.
I copied you code to my build.settings file and when I switch from landscape to portrait video also rotates. It doesn’t work.
@elisabeth : I added to features request orientation lock for video. Maybe they’ll find it intresting and they’ll add it to next version.
m. [import]uid: 12119 topic_id: 6183 reply_id: 25839[/import]
Hi Marcin,
Thanks for adding ‘orientation lock’ for video as a features request.
It will definitely up the quality of Corona games.
@ElizabethBoylan [import]uid: 14261 topic_id: 6183 reply_id: 25857[/import]