Forum Discussion

rsromeo's avatar
rsromeo
Channel Surfer
16 years ago

SIMULATING A PLAYLIST

Trying to figure out how to play multiple mp4 files in succession. I know without using HLS, there will be rebuffering in between each clip but I can live with that. Just trying to make it work. Does anyone know if the following will work?

this.player.SetContentList([{
Stream: { url:"http://test.com/video1.mp4" }
StreamFormat: "mp4"
},
Stream: { url:"http://test.com/video2.mp4" }
StreamFormat: "mp4"
}])

11 Replies

  • "pin2gtoes" wrote:
    Check msg.isFullResult() inside while loop before continuing to the next video. isFullResult() returns True if the entire video was played. When user interrupts playback, isFullResult() will return False.

    IsFullResult() is an event, not a status. You should check for the IsPartialResult() event to determine if the entire video was played or not. You should also check for errors via the IsRequestFailed() event.