How to enable/disable the video of participants(not our own) in kurento many-to-many call(group call) .?

百般思念 提交于 2019-12-12 03:37:35

问题


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.


回答1:


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);



回答2:


localMS.audioTracks.get(i).setEnabled(false);

Here localMs is Local MediaStream



来源:https://stackoverflow.com/questions/39529270/how-to-enable-disable-the-video-of-participantsnot-our-own-in-kurento-many-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!