Rendering Streams
Last updated
Last updated
One of the events you should add a listener for, after you , is onPublishedStreamChange
. This event will be fired for a variety of reasons related to a published stream:
You just joined a channel
You will receive an event for each that is currently publishing a stream.
A new stream is published in a channel
A stream has been unpublished
A stream has been modified
Audio track added/removed
Video track added/removed
Property
Type
Description
channel
The channel the stream is published in
inputDeviceIds
Hash
For remote streams this will be null. For local streams this will a hash showing the ids of the audio and video devices that were selected when the stream was published. This is helpful in determining which devices are in use if you did not specify input devices before publishing.
isLocal
Boolean
This will be true
if the event is for a local stream
isPublished
Boolean
This will be true
if the event represents a stream that is published. When a stream is unpublished you will receive and event with this value set to false
participant
The participant who is publishing the stream. From this object you can get the that is being published.