If I choose to play two separate videos in sequence using the onComplete event of the first player, there is a very long pause between the two videos.
For example this code:
[code]function playVid()
local playSecond = function(event) – onComplete function listener
print( "Second Video Triggered: " )
media.playVideo( “video2.mp4”, true ) – Play the second video
end
print( "First Video Started: " )
media.playVideo( “video1.mp4”, false, playSecond) – Play the first video
end[/code]
- Plays the first video
- Shows debug output of “First Video Started”
- Shows debug output of “Second Video Triggered” immediately after first video ends
- Long pause (20 seconds) before the video player actually starts playing the second video
It almost seems as if the device is waiting for something to happen before playing the second video. Waiting for first player to close?
Is this a bug or is there a special way of getting two videos to play in sequence? [import]uid: 11393 topic_id: 10976 reply_id: 310976[/import]