Append an additional startup stream to StartupStreams list

This code snippet will demonstrate how to create and leverage a StartupStream object and add it to a particular vhost and then start all streams for the given vhost.

// Initiate the StartupStream object:
StartupStream stream = new StartupStream();

// set the values accordingly
stream.setApplicationName(“live/_definst_”);
stream.setMediaCasterType(“rtp”);
stream.setStreamName(“your.stream”);

// add to your vhost
vhost.addStartupStream(stream);

// Then you can start all streams as follows:
vhost.startStartupStreams();


Comments are closed.