[Live-devel] Stream multiple files

Ross Finlayson finlayson at live555.com
Fri Sep 26 09:52:41 PDT 2014


On Sep 26, 2014, at 2:50 AM, Hedi Naily <hedi_naily at yahoo.fr> wrote:

> Hi,
>  As the subject indicates, I want to play a list of files as if  they are one big file and without interruption. Is is possible with live555, I'm new to it and want to know wheher it's possible and how to achieve it.
> I've read about using ByteStreamMultipleFileSource class but I can't find a good example on how to use it

"ByteStreamMultiFileSource::createNew()" takes a NULL-terminated array of file names.  E.g.,

	char* ourFileNames = new char*[3+1];
	ourFileNames[0] = "ourFile0.ts";
	ourFileNames[1] = "ourFile1.ts";
	ourFileNames[2] = "ourFile2.ts";
	ourFileNames[3] = NULL;

	ByteStreamMultiFileSource* source = ByteStreamMultiFileSource::createNew(envir(), ourFileNames);

Alternatively, if your media player client supports playlists, you could give it a playlist consisting of multiple "rtsp://" URLs - one for each stream that you want to play.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140926/cdefd943/attachment.html>


More information about the live-devel mailing list