FS-7513 FS-7509: crack at screen share

This commit is contained in:
Anthony Minessale authored and Michael Jerris committed 2015-05-28 12:47:03 -05:00
1 parent 84074ab804
commit 2c4c2587ed
8 files changed
+120 -16

No files matched your search

@@ -11363,10 +11363,17 @@ SWITCH_STANDARD_APP(conference_function)
/* Chime in the core video thread */
switch_core_session_set_video_read_callback(session, video_thread_callback, (void *)&member);
/* Run the conference loop */
do {
conference_loop_output(&member);
} while (member.loop_loop);
if (switch_channel_test_flag(channel, CF_VIDEO_ONLY)) {
while(switch_test_flag((&member), MFLAG_RUNNING) && switch_channel_ready(channel)) {
switch_yield(100000);
}
} else {
/* Run the conference loop */
do {
conference_loop_output(&member);
} while (member.loop_loop);
}
switch_core_session_set_video_read_callback(session, NULL, NULL);
+6 -1
View File
@@ -3204,7 +3204,7 @@ static switch_bool_t verto__info_func(const char *method, cJSON *params, jsock_t
static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock_t *jsock, cJSON **response)
{
cJSON *obj = cJSON_CreateObject();
cJSON *obj = cJSON_CreateObject(), *screenShare = NULL;
switch_core_session_t *session = NULL;
switch_channel_t *channel;
switch_event_t *var_event;
@@ -3270,6 +3270,11 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
destination_number = "service";
}
if ((screenShare = cJSON_GetObjectItem(dialog, "screenShare")) && screenShare->type == cJSON_True) {
switch_channel_set_flag(channel, CF_VIDEO_ONLY);
}
switch_snprintf(name, sizeof(name), "verto.rtc/%s", destination_number);
switch_channel_set_name(channel, name);
switch_channel_set_variable(channel, "jsock_uuid_str", jsock->uuid_str);