How to enable/disable the video of participants(no

2019-09-18 06:17发布

I am working on the Kurento and I am using many-to-many tutorial(group call) Now i want to mute(disable) only the video of the participants(not my own) in the room but their audio should remain enabled.Also I should be able to enable/disable the video as many time as i want.?

Kindly help.I am new in webrtc.

2条回答
够拽才男人
2楼-- · 2019-09-18 07:10
localMS.audioTracks.get(i).setEnabled(false);

Here localMs is Local MediaStream

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-09-18 07:22

You can do this from javascript by using

participants[name].rtcPeer.videoEnabled = false;

You can do this by using following java code

user1OutgoingMedia.disconnect(user2IncomingMedia, MediaType.VIDEO);
查看更多
登录 后发表回答