Create an instance of the Room class.
Information about the stream to connect to.
Readonly
MAX_Maximum number of sources that can be published from a single client.
Gets the list of PublishedSource objects that are currently published to the stream from the local device.
Gets the Millicast View object once the SDK has been initialized.
Connects to the stream. This function will publish a stream and listen to the sources.
Options to connect to the stream.
A Promise whose fulfillment handler receives a PublishedSource object when the source has successfully been published to the platform.
Adds the listener
function to the end of the listeners array for the
event named eventName
. No checks are made to see if the listener
has
already been added. Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple
times.
Returns a reference to the EventEmitter
, so that calls can be chained.
The name of the event.
The callback function.
Publishes a video / audio feed to a stream.
Information about the stream to publish to.
A Promise whose fulfillment handler receives a PublishedSource object when the source has successfully been published to the platform.
Stops publishing the source to the stream.
Source that's currently being published.
Start watching the stream.
Optional
options: WatchOptionsAdditional options to watch to the stream.
Representation of a stream. This class is the starting point for the SDK. Create a instance of this class, connect to the Dolby Millicast platform and start receiving & publishing streams.
Example