mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
eat inbound vid while playing fsv files
This commit is contained in:
1 parent
362c571647
commit
c358f67fe4
4 files changed
+44
-10
No files matched your search
@@ -370,6 +370,8 @@ SWITCH_STANDARD_APP(play_fsv_function)
|
||||
}
|
||||
switch_core_session_set_read_codec(session, &codec);
|
||||
|
||||
switch_core_service_session_av(session, SWITCH_FALSE, SWITCH_TRUE);
|
||||
|
||||
while (switch_channel_ready(channel)) {
|
||||
|
||||
if (read(fd, &bytes, sizeof(bytes)) != sizeof(bytes)) {
|
||||
@@ -440,6 +442,8 @@ SWITCH_STANDARD_APP(play_fsv_function)
|
||||
|
||||
}
|
||||
|
||||
switch_core_thread_session_end(session);
|
||||
|
||||
switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "OK");
|
||||
|
||||
end:
|
||||
|
||||
Reference in new issue
Block a user