Renderer (interface)
Base interface for audio and video renderers.
See: AudioRenderer, VideoRenderer
See also
Methods
clear
clear(): void
Stops playing media and releases all resources.
Returns: void
enablePIPControl
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.
Optional.
Since: 5.3.0
Parameters
Returns: void
getElement
getElement(): HTMLAudioElement | HTMLVideoElement
Returns an HTML element.
Returns: HTMLAudioElement | HTMLVideoElement
updateSpeaker
updateSpeaker(speakerId: string): Promise<void>
Changes the audio renderer output to the specified device id.
Optional.
Parameters
Returns: Promise<void>
updateStream
updateStream(stream: Stream): void
Replaces a stream for a renderer.
Parameters
Returns: void
Properties
type
type: MediaRendererType
Render type.