onCameraDidStart: Function
Called when the camera has started
onCameraDidStopRunning: Function
Called when the camera has stopped running with an error
@param {{error}} The error message description
onCameraWasInterrupted: Function
Called when the camera has been interrupted
onParticipantAddedAudioTrack: Function
Called when a new audio track has been added
@param {{participant, track}}
onParticipantAddedVideoTrack: Function
Called when a new video track has been added
@param {{participant, track, enabled}}
onParticipantDisabledVideoTrack: Function
Called when a video track has been disabled.
@param {{participant, track}}
onParticipantDisabledAudioTrack: Function
Called when an audio track has been disabled.
@param {{participant, track}}
onParticipantEnabledVideoTrack: Function
Called when a video track has been enabled.
@param {{participant, track}}
onParticipantEnabledVideoTrack: Function
Called when an audio track has been enabled.
@param {{participant, track}}
onParticipantRemovedAudioTrack: Function
Called when a audio track has been removed
@param {{participant, track}}
onParticipantRemovedVideoTrack: Function
Called when a video track has been removed
@param {{participant, track}}
onRoomDidConnect: Function
Called when the room has connected
@param {{roomName, participants}}
onRoomDidDisconnect: Function
Called when the room has disconnected
@param {{roomName, error}}
onRoomDidFailToConnect: Function
Called when connection with room failed
@param {{roomName, error}}
onRoomParticipantDidConnect: Function
Called when a new participant has connected
@param {{roomName, participant}}
onRoomParticipantDidDisconnect: Function
Called when a participant has disconnected
@param {{roomName, participant}}
setLocalVideoEnabled: Function
Called when a local video is disable / enabled, how to use it below
_onDisableCameraButtonPress = () => {
this.refs.twilioVideo
.setLocalVideoEnabled(!this.state.cameraDisabled)
.then(cameraDisabled => {
this.setState({ cameraDisabled });
});
};
setLocalAudioEnabled: Function
Called when a local audio is disable / enabled, how to use it below
_onMuteButtonPress = () => {
this.refs.twilioVideo
.setLocalAudioEnabled(!this.state.isAudioEnabled)
.then(isAudioEnabled => {
this.setState({ isAudioEnabled });
});
};
From ../src/TwilioVideoLocalView.js
// Required
enabled: Boolean
Indicate if video feed is enabled.
From ../src/TwilioVideoParticipantView.js
trackIdentifier: {
participantSid: String
videoTrackSid: String
}