forked from Mirrors/freeswitch
FS-8554 #resolve [VC Moderator button quit working after moderator screen shares]
This commit is contained in:
parent
98785ebe88
commit
6c3bf9ae65
@ -381,7 +381,7 @@ void conference_event_adv_la(conference_obj_t *conference, conference_member_t *
|
||||
switch_channel_set_flag(member->channel, CF_VIDEO_REFRESH_REQ);
|
||||
switch_core_media_gen_key_frame(member->session);
|
||||
|
||||
if (conference && conference->la && member->session) {
|
||||
if (conference && conference->la && member->session && !switch_channel_test_flag(member->channel, CF_VIDEO_ONLY)) {
|
||||
cJSON *msg, *data;
|
||||
const char *uuid = switch_core_session_get_uuid(member->session);
|
||||
const char *cookie = switch_channel_get_variable(member->channel, "event_channel_cookie");
|
||||
@ -409,14 +409,6 @@ void conference_event_adv_la(conference_obj_t *conference, conference_member_t *
|
||||
cJSON_AddItemToObject(data, "secondScreen", cJSON_CreateTrue());
|
||||
}
|
||||
|
||||
if (switch_channel_test_flag(member->channel, CF_VIDEO_ONLY)) {
|
||||
cJSON_AddItemToObject(data, "videoOnly", cJSON_CreateTrue());
|
||||
}
|
||||
|
||||
if (switch_true(switch_channel_get_variable_dup(member->channel, "video_screen_share", SWITCH_FALSE, -1))) {
|
||||
cJSON_AddItemToObject(data, "screenShare", cJSON_CreateTrue());
|
||||
}
|
||||
|
||||
if (conference_utils_member_test_flag(member, MFLAG_MOD)) {
|
||||
cJSON_AddItemToObject(data, "modChannel", cJSON_CreateString(conference->mod_event_channel));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user