Hello ,
i have 2 problems with videos in corona, i m building for Android using Windows
First problem when video is complete , i want only change a scene but, in my android the video start normally and when it is comple it starts a change scene but he back to a black screen and crash app.
Second problem in some android devices the video isn’t working
Here is my code:
----------------------------------------------- --------\*\*\*Event Listeners Functions\*\*\*-------- ----------------------------------------------- local function onComplete(event) composer.gotoScene( "Historias.Historia1.historia1","fade") end ----------------------------------------------- ----------\*\*\*Create Scene Function\*\*\*---------- ----------------------------------------------- function scene:create( event ) local sceneGroup = self.view -- Initialize the scene here. --set default anchor point in 0 0 display.setDefault( "anchorX", 0 ) display.setDefault( "anchorY", 0 ) media.playVideo( "Historias/Historia1/Videos/historia1Video1.mp4", true, onComplete ) end
Anyone has any ideia ?
Thanks for help