HELLO,
DOES ANYONE KNOW IF native.newVideo is supported on android ??
thanks [import]uid: 185094 topic_id: 32074 reply_id: 332074[/import]
HELLO,
DOES ANYONE KNOW IF native.newVideo is supported on android ??
thanks [import]uid: 185094 topic_id: 32074 reply_id: 332074[/import]
Android does not currently support [lua]native.newVideo()[/lua].
You have to use the [lua]media.playVideo()[/lua] function instead.
http://docs.coronalabs.com/api/library/media/playVideo.html [import]uid: 32256 topic_id: 32074 reply_id: 127833[/import]
Android does not currently support [lua]native.newVideo()[/lua].
You have to use the [lua]media.playVideo()[/lua] function instead.
http://docs.coronalabs.com/api/library/media/playVideo.html [import]uid: 32256 topic_id: 32074 reply_id: 127833[/import]
Joshua-
I am using media.playVideo() on android. My game is landscape orientation, but the video always plays in portrait. Is this a bug? Everything else about the app orientation works perfect, including other nativeui elements. I am wondering if this is something that is going to be addressed or if we must wait until native.newVideo() becomes available for Android. (Kinda sucks. Whaaa.) Can you confirm any of this? Thanks!
[import]uid: 10818 topic_id: 32074 reply_id: 138425[/import]
The video player displayed via [lua]media.playVideo()[/lua] supports all orientations, regardless of how your app is set up. This is to match iOS’ behavior and was highly demanded by most of our customers.
The video player definitely supports landscape for me on my Android devices.
Are you saying that it never displays landscape for you?
If so, then what is the make and model of your Android device?
Also, what Android OS version is it running?
[import]uid: 32256 topic_id: 32074 reply_id: 138495[/import]
Joshua-
Thanks for the reply. I’m using build 2013.999 on Win 7, deployed to my Samsung Galaxy SII. The video never displays in landscape. Android version 4.0.3.
The game/splash logo-- everything else is in landscape. When the video pops up, it rotates to be shown in portrait. (The video is in landscape, but it is shrunk when this happens so that it’s width matches the width of the portrait oriented screen-- and it has huge black bars on top and bottom-- actually, a black bar on the top and a gray bar on the bottom of it’s “envelope.”)
The game is about to be released on iOS, and I’m hoping to get it ready for a simultaneous launch on Android. This seems to be the only hiccup (other than finding a good game network solution-- hope corona cloud services rolls out soon for game-minion features!)
Anyway, thanks for checking into this!
-Dune
[import]uid: 10818 topic_id: 32074 reply_id: 138501[/import]
Oh-- BTW-- here is my config file
[code]
settings = {
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported = { “landscapeRight”}
},
iphone = {
components = {},
plist = {
CoronaUseIOS6LandscapeOnlyWorkaround = true,
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png”
},
UIAppFonts = {
“ropsenscriptbold.ttf”,
“MAFT____.TTF”
}
}
},
}
[/code] [import]uid: 10818 topic_id: 32074 reply_id: 138503[/import]
I think your device is not set up to support screen rotations.
Please do the following:
If it is not checked, then all windows will be displayed portrait on a phone, unless they are landscape only apps. In my experience, this setting is checked on by default. [import]uid: 32256 topic_id: 32074 reply_id: 138542[/import]
THANK YOU x1000000!
I was wracking my (tiny) brain trying to figure out what I was doing wrong! oi! That fixed it! [import]uid: 10818 topic_id: 32074 reply_id: 138547[/import]
Joshua-
I am using media.playVideo() on android. My game is landscape orientation, but the video always plays in portrait. Is this a bug? Everything else about the app orientation works perfect, including other nativeui elements. I am wondering if this is something that is going to be addressed or if we must wait until native.newVideo() becomes available for Android. (Kinda sucks. Whaaa.) Can you confirm any of this? Thanks!
[import]uid: 10818 topic_id: 32074 reply_id: 138425[/import]
The video player displayed via [lua]media.playVideo()[/lua] supports all orientations, regardless of how your app is set up. This is to match iOS’ behavior and was highly demanded by most of our customers.
The video player definitely supports landscape for me on my Android devices.
Are you saying that it never displays landscape for you?
If so, then what is the make and model of your Android device?
Also, what Android OS version is it running?
[import]uid: 32256 topic_id: 32074 reply_id: 138495[/import]
Joshua-
Thanks for the reply. I’m using build 2013.999 on Win 7, deployed to my Samsung Galaxy SII. The video never displays in landscape. Android version 4.0.3.
The game/splash logo-- everything else is in landscape. When the video pops up, it rotates to be shown in portrait. (The video is in landscape, but it is shrunk when this happens so that it’s width matches the width of the portrait oriented screen-- and it has huge black bars on top and bottom-- actually, a black bar on the top and a gray bar on the bottom of it’s “envelope.”)
The game is about to be released on iOS, and I’m hoping to get it ready for a simultaneous launch on Android. This seems to be the only hiccup (other than finding a good game network solution-- hope corona cloud services rolls out soon for game-minion features!)
Anyway, thanks for checking into this!
-Dune
[import]uid: 10818 topic_id: 32074 reply_id: 138501[/import]
Oh-- BTW-- here is my config file
[code]
settings = {
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported = { “landscapeRight”}
},
iphone = {
components = {},
plist = {
CoronaUseIOS6LandscapeOnlyWorkaround = true,
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png”
},
UIAppFonts = {
“ropsenscriptbold.ttf”,
“MAFT____.TTF”
}
}
},
}
[/code] [import]uid: 10818 topic_id: 32074 reply_id: 138503[/import]
I think your device is not set up to support screen rotations.
Please do the following:
If it is not checked, then all windows will be displayed portrait on a phone, unless they are landscape only apps. In my experience, this setting is checked on by default. [import]uid: 32256 topic_id: 32074 reply_id: 138542[/import]
THANK YOU x1000000!
I was wracking my (tiny) brain trying to figure out what I was doing wrong! oi! That fixed it! [import]uid: 10818 topic_id: 32074 reply_id: 138547[/import]