Whether the Publisher has been granted access to the requested input devices or not
id
attribute of the DOM video element displaying the Publisher/Subscriber's stream. This property is only defined if:
targetElement
parametertargetElement
parameterWhether you have called Publisher.subscribeToRemote with value true
or false
(false by default)
Whether the Stream represented in the DOM is local or remote
false
for Publishertrue
for SubscriberThe Session to which the Publisher belongs
The Stream represented in the DOM by the Publisher/Subscriber
The DOM HTMLElement assigned as target element when creating the video for the Publisher/Subscriber. This property is only defined if:
targetElement
parametertargetElement
parameterAll the videos displaying the Stream of this Publisher/Subscriber
Makes video
element parameter display this stream. This is useful when you are
managing the video elements on your own
Calling this method with a video already added to other Publisher/Subscriber will cause the video element to be disassociated from that previous Publisher/Subscriber and to be associated to this one.
1 if the video wasn't associated to any other Publisher/Subscriber and has been successfully added to this one. 0 if the video was already added to this Publisher/Subscriber. -1 if the video was previously associated to any other Publisher/Subscriber and has been successfully disassociated from that one and properly added to this one.
Creates a new video element displaying this stream. This allows you to have multiple video elements displaying the same media stream.
The Publisher/Subscriber object will dispatch a videoElementCreated
event once the HTML video element has been added to DOM. See VideoElementEvent
HTML DOM element (or its id
attribute) in which the video element of the Publisher/Subscriber will be inserted
How the video element will be inserted accordingly to targetElemet
Publish or unpublish the audio stream (if available). Calling this method twice in a row passing same value will have no effect
true
to publish the audio stream, false
to unpublish it
Publish or unpublish the video stream (if available). Calling this method twice in a row passing same value will have no effect
true
to publish the video stream, false
to unpublish it
Call this method before Session.publish to subscribe to your Publisher's remote stream instead of using the local stream, as any other user would do.
Generated using TypeDoc
Packs local media streams. Participants can publish it to a session. Initialized with OpenVidu.initPublisher method