Methods
twilioSetupRemoteDataChannelHandlerForTrack(track)
Setup data channel message monitoring for the given Twilio RemoteDataTrack.
Parameters:
Name | Type | Description |
---|---|---|
track |
RemoteDataTrack | the Twilio RemoteDataTrack object |
twilioVideoExtractDataChannelFromTrack(track) → {RTCDataChannel}
Extract the RTCDataChannel object from the given Twilio LocalDataTrack.
Parameters:
Name | Type | Description |
---|---|---|
track |
LocalDataTrack | the Twilio LocalDataTrack object |
Returns:
the associated RTCDataChannel object
- Type
- RTCDataChannel
twilioVideoExtractMediaStreamFromTrack(track) → {MediaStream}
Extract the RTC MediaStream object from the given Twilio MediaTrack.
Parameters:
Name | Type | Description |
---|---|---|
track |
MediaTrack | the Twilio MediaTrack object |
Returns:
the associated MediaStream object
- Type
- MediaStream
twilioVideoExtractPeerConnectionFromRoom(room) → {RTCPeerConnection}
Extract the RTCPeerConnection object from the given Twilio Room.
Parameters:
Name | Type | Description |
---|---|---|
room |
Room | the Twilio Room object |
Returns:
the associated RTCPeerConnection object
- Type
- RTCPeerConnection