]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7513: set video pause resume when video is paused in conference
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 30 Apr 2015 17:33:21 +0000 (12:33 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:27 +0000 (12:47 -0500)
src/mod/applications/mod_conference/mod_conference.c

index 512696e91cbc46724c684e61e1bcda584f242250..c86d034020f71d8168587f095a8053585759750e 100644 (file)
@@ -8265,6 +8265,10 @@ static switch_status_t conf_api_sub_vmute(conference_member_t *member, switch_st
 
        switch_clear_flag_locked(member, MFLAG_CAN_BE_SEEN);
 
+       if (member->channel) {
+               switch_channel_set_flag(member->channel, CF_VIDEO_PAUSE);
+       }
+
        if (!(data) || !strstr((char *) data, "quiet")) {
                switch_set_flag(member, MFLAG_INDICATE_MUTE);
        }
@@ -8317,6 +8321,10 @@ static switch_status_t conf_api_sub_unvmute(conference_member_t *member, switch_
 
        switch_set_flag_locked(member, MFLAG_CAN_BE_SEEN);
 
+       if (member->channel) {
+               switch_channel_clear_flag(member->channel, CF_VIDEO_PAUSE);
+       }
+
        if (!(data) || !strstr((char *) data, "quiet")) {
                switch_set_flag(member, MFLAG_INDICATE_UNMUTE);
        }