VideoRenderer (class)
Class that represents an audio renderer.
An instance should be created via the RendererManager.createVideoRenderer method
Methods
Properties
Methods
clear
clear(): void
Stops playing audio 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.
Since: 5.3.0
Parameters
Returns: void
getElement
getElement(): HTMLVideoElement
Returns a HTMLVideoElement object and starts playing video.
Returns: HTMLVideoElement
mirror
mirror(): this
Mirrors the current video element.
Returns: this
setElementClasses
setElementClasses(classes: string[]): this
Updates the collection of the class attributes of the video element with the provided ones.
Parameters
Returns: this
setElementId
setElementId(elementId: string): this
Sets the HTML id attribute to the video element.
Parameters
Returns: this
setStyles
setStyles(styles: PlainStyles): this
Parameters
Returns: this
updateStream
updateStream(stream: Stream): void
Replaces a stream for the renderer.
Parameters
Returns: void
Properties
type
type: MediaRendererType.Video
Returns the renderer type (video).