Assistant Types
AudioSource: <Object>
onData: (data:
RTCAudioData
) => void
Raw PCM-encoded audio samples to inject in to the room.
AudioSink: <Object>
subscribe: (callback: (data:
RTCAudioData
) => void) => () => void
Subscribe to live raw PCM-encoded audio samples received from the room delivered at 10 millisecond intervals.
VideoSource: <Object>
onFrame: (data:
RTCVideoData
) => void
Raw I420-encoded video samples to inject in to the room.
VideoSink: <Object>
subscribe: (callback: (data:
RTCVideoData
) => void) => () => void
Subscribe to live raw I420-encoded video frames received from the room delivered at the input video's frame rate (e.g. 24 frames per second = every ~42 milliseconds).
RTCAudioData: <Object>
sampleRate: number
Sample rate of data (in Hertz)
samples: Int16Array
Raw PCM audio sample data
channelCount: number
Number of PCM channels in data. Default: 1
bitsPerSample: number
Number of bits per sample. Default: 16
numberOfFrames: number
Number of frames represented in samples
RTCVideoData: <Object>
width: number
Video width (in pixels)
height: number
Video height (in pixels)
data: Uint8ClampedArray
Raw I420 video sample data
rotation: number
Orientation of the video. Default: 0
Last updated
Was this helpful?