Skip to content
Cloudflare Docs

RTKPip

Functions

getInitials()

Code from ui-kit. Same method used in the avatar component

_init(context, self)
init([options])

Initialize PiP and prepare sources

disableSource(source)
addSource(id, element, enabled, [displayText])

Add a video source from the participant grid

updateSource(id, source)

Update a video source

removeSource(id)

Remove the video source for the participant

removePinnedSource(id)

Remove the pinned source

removeAllSources()

Remove all sources

enable()

Enable PiP

Code from ui-kit. Same method used in the avatar component

Kind: global function

Kind: global function

ParamType
contextContext
selfSelf

Initialize PiP and prepare sources

Kind: global function

ParamType
[options]Object
[options.height]number
[options.width]number

Kind: global function

ParamType
sourcestring

Add a video source from the participant grid

Kind: global function

ParamTypeDescription
idstringid for the source (ex. participant id)
elementHTMLVideoElementHTMLVideoElement for the video source
enabledbooleanif source is enabled
[displayText]stringtwo character display text

Update a video source

Kind: global function

ParamType
idstring
sourceany

Remove the video source for the participant

Kind: global function

ParamDescription
idid for the source (ex. participant id)

Remove the pinned source

Kind: global function

ParamDescription
idid for the source (ex. participant id)

Remove all sources

Kind: global function

Enable PiP

Kind: global function