This is hard to debug because the simulator does not do videoplayback. So I have to compile the app and sideload the game (connect to PC and drag the APK to the device)
It plays the video fine, but the screen stays black (when I am expecting it to go to the menu screen). So I don’t know if I am generating an error or what.
I am not 100% committed to using the code below, so please feel free to direct me to a method that might be better.
[code]module(…,package.seeall)
function new()
local screen = display.newGroup()
local physics = require(‘physics’)
local storyboard = require “storyboard”
media.playVideo( “myvideo.mp4”, true, onComplete )
local onComplete = function(event)
print( “video session ended” )
changeScene(“main_menu”)
end
return screen
end
[/code]
Not sure what to do. [import]uid: 132937 topic_id: 37114 reply_id: 67114[/import]