Renderer
Base interface for audio and video renderers.
See: AudioRenderer, VideoRenderer
Methods
clear
clear(): void
Stops playing media and releases all resources.
Returns
type:
void
enablePIPControl
Since ver. 5.3.0
Optional
enablePIPControl(enabled: boolean
): void
Enables or disables Picture-in-Picture browser native control for the video element.
Picture-in-Picture control is disabled by default.
Parameters
enabled:
boolean
Whether Picture-in-Picture control is allowed
Returns
type:
void
getElement
getElement(): Returns an HTML element.
Returns
type:
updateSpeaker
Optional
updateSpeaker(speakerId: string
): Promise<void>
Changes the audio renderer output to the specified device id.
Parameters
speakerId:
string
Output device id
Returns
type:
Promise<void>