Mute video


#1

moderator can mute other audio(I also implement unmute method ). I also want to mute video. I find a method (handleMuteRequest in JitsiMeetConferenceImpl) in jocofo. can you help me to implement video unmute mute method in jicofo


#2

JitsiMeetConferenceImpl calls muteParticipant from ColibriConferenceImpl, which mutes only the audio. You need first to make sure that the UI has the button and you can signal muting the video or audio (as currently only audio muting is implemented https://github.com/jitsi/lib-jitsi-meet/blob/e7bbf4f371b42b60fde0f09ba67513293d188b02/modules/xmpp/ChatRoom.js#L1387). And then jicofo can signal to bridge in ColibriConferenceImpl.muteParticipant whether to mute audio or video channel.


#3

thank you. @damencho


#4

@damencho if i change http://jitsi.org/jitmeet/audio as http://jitsi.org/jitmeet/video it should mute the video instead audio am i right?


#5

No, it will not work. Changing that no iq will be parsed on jicofo side. You need to create another IQ with the new namespace, make sure it is parsed in the corresponding iq provider, then make sure you handle it.
Look at the current MuteIq https://github.com/jitsi/jicofo/blob/a8674e80b371fe7221d80f207636ec0fa99a8723/src/main/java/org/jitsi/impl/protocol/xmpp/extensions/MuteIq.java#L35 where http://jitsi.org/jitmeet/audio is the namespace.


#6

@damencho help me
This is a jibri log

i have got this iq to the jibri side

true

for the testing, I change the following things

MuteIq NameSpace as http://jitsi.org/jitmeet/video

ColibriConferenceImpl.muteParticipant as ColibriConferenceIQ.Content audioContent=channelsInfo.getContent(“video”);

could you say something


#7

This will not work as described in my previous comment, this iq is unknown to jicofo.