OnTrackCallback()
DESCRIPTION
Callback function when a new track is added by the device
DECLARATION
export type OnTrackCallback = (event: RTCTrackEvent, trackId?: string, error?: string) => void
PARAMETERS
event:
- The native RTCTrackEvent emitted by the browser
trackId:
- The track ID reported by the device for this event
error:
- An error if the device failed to handle this track properly