Wowza Community

Multiple chunks as one recording (playlist)

Hi,

We have a set S1 of chunks c1…cn.

Let it be S1 and chunks: c1,c2…cn

Duration of each chunk is 3-5 minutes.

Task:

Ho to stream a set of chunks as a single video with SEEK, PAUSE, PLAY.

(we cannot use FFMPEG concat)

Any ideas appreciated.

Hi,

What sort of playback is this for?

If it is all RTMP then you can do it server side using a module that overrides the play command and loads each of the chunks or you can do the same with a custom player by calling the NetStream.play command repeatedly.

If for HTTP playback, there currently isn’t a way to do this on the server so needs to be done using Javascript on the player side.

Roger.

With HLS clients are involved there is not a way to do this with just Wowza. As Roger mentioned, you can do it for RTMP clients, as shown in this guide. This can be accomplished directly in RTMP client with a series of netstream.play() commands.

nsPlay.play("file1.mp4",null,true);
nsPlay.play("file2.mp4",null,false);
nsPlay.play("file2.mp4",null,false);

Note the 3rd arg (reset) is set to true in the first play command and false in the following.

This will play file1, file2 and file3 as one vod stream. The client-side and server-side methods are essentially the same and only work with RTMP clients.

Richard

Hi,

We use HLS streaming + VOD.