I have used twilio-video:1.19.2
in angular 8.
I have implemented functionality of one-to-one video call.
Below is my code i use to enable/disable video.
toggleVideo() {
this.videoConference.isPaused = !this.videoConference.isPaused;
this.twilioRoom.localParticipant.videoTracks.forEach(track => {
if (this.videoConference.isPaused) {
track.disable();
} else {
track.enable();
}
});
}
Video call seems to work fine. But when i pause video on participant side only some time black screen is displayed. Most of time it freezes video
(last recorded frame stays).
This issue is reported on react-twilio library https://github.com/blackuy/react-native-twilio-video-webrtc/issues/165
Does anyone know how to resolve this?
Is there any way to add black(video track) screen?
I want to show black screen when video is paused from participant side.