Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ public void toggleVideo(boolean enabled) {
WritableMap event = new WritableNativeMap();
event.putBoolean("videoEnabled", enabled);
pushEvent(CustomTwilioVideoView.this, ON_VIDEO_CHANGED, event);
if (!enabled) {
localVideoTrack.release();
localVideoTrack = null;
cameraCapturer = null;
}
}
}

Expand Down Expand Up @@ -1146,11 +1151,15 @@ public void onVideoTrackSubscriptionFailed(RemoteParticipant participant, Remote

@Override
public void onVideoTrackPublished(RemoteParticipant participant, RemoteVideoTrackPublication publication) {
WritableMap event = buildParticipantVideoEvent(participant, publication);
pushEvent(CustomTwilioVideoView.this, ON_PARTICIPANT_ENABLED_VIDEO_TRACK, event);

}

@Override
public void onVideoTrackUnpublished(RemoteParticipant participant, RemoteVideoTrackPublication publication) {
WritableMap event = buildParticipantVideoEvent(participant, publication);
pushEvent(CustomTwilioVideoView.this, ON_PARTICIPANT_DISABLED_VIDEO_TRACK, event);

}

Expand Down