Any news on this working on Android? This was promised some time ago and I have iOS apps ready for conversion. [import]uid: 95579 topic_id: 32540 reply_id: 332540[/import]
I would like to renew this question, or be redirected to a place where I can find an answer or work-around. We’re encountering an issue where we have an app that is supposed to be locked to a single orientation, but while using media.playVideo on Android, it allows the user to rotate the screen which proves problematic with the rest of our app.
Thanks! [import]uid: 105071 topic_id: 32540 reply_id: 129371[/import]
I would like to renew this question, or be redirected to a place where I can find an answer or work-around. We’re encountering an issue where we have an app that is supposed to be locked to a single orientation, but while using media.playVideo on Android, it allows the user to rotate the screen which proves problematic with the rest of our app.
Thanks! [import]uid: 105071 topic_id: 32540 reply_id: 129371[/import]
Hi!
We also would like to have some news about this feature in Android. Like kevin.partner we also have some apps ready for conversion to Android. Can anybody give us an estimate date?
Thank you!
[import]uid: 160132 topic_id: 32540 reply_id: 135441[/import]
Hi!
We also would like to have some news about this feature in Android. Like kevin.partner we also have some apps ready for conversion to Android. Can anybody give us an estimate date?
Thank you!
[import]uid: 160132 topic_id: 32540 reply_id: 135441[/import]
Finally we have this feature! In case you find the same problem I found. On Android, if you your video is in the system.ResourceDirectory it works, but if your video is in the system.DocumentsDirectory or in the system.TemporaryDirectory it will not work if you write the load function as in iOS. Here is the solution. I found it in the forums, but I think it’s good to write it here too.
local videoPath = "folder/video.m4v" local video = native.newVideo(display.contentCenterX, display.contentCenterY, 720, 576 ) if (system.getInfo("platformName") == "Android") then video:load(system.pathForFile(videoPath, system.DocumentsDirectory)) else video:load(videoPath, system.DocumentsDirectory) end
Finally we have this feature! In case you find the same problem I found. On Android, if you your video is in the system.ResourceDirectory it works, but if your video is in the system.DocumentsDirectory or in the system.TemporaryDirectory it will not work if you write the load function as in iOS. Here is the solution. I found it in the forums, but I think it’s good to write it here too.
local videoPath = "folder/video.m4v" local video = native.newVideo(display.contentCenterX, display.contentCenterY, 720, 576 ) if (system.getInfo("platformName") == "Android") then video:load(system.pathForFile(videoPath, system.DocumentsDirectory)) else video:load(videoPath, system.DocumentsDirectory) end