The first video plays, then if I try to start playing a second video in the onComplete handler, the second video won’t play.
Moreover, aftwer a few tries the application freezes.
This is the code I’m using:
media.playVideo( "app-test.mp4", true,
function (event)
media.playVideo( "app-test.mp4", true, nil)
end)
If I just wait for 1 sec before launching the second video then it works (two videos played in sequence):
media.playVideo( "app-loading.mp4", true,
function (event)
timer.performWithDelay(1000,
function (event)
media.playVideo( "app-loading.mp4", true, nil)
end)
end)
Of course in the second case the media player closes and then reopens, so it’s not a desirable behaviour.
Please help.
Thanks [import]uid: 3778 topic_id: 14617 reply_id: 314617[/import]