[Pkg-voip-commits] [janus] 235/282: Restored 'stopping' event to handlers in Streaming plugin
Jonas Smedegaard
dr at jones.dk
Wed Dec 20 21:53:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.
commit 7c381cfdb3fa890fe5d20e45bf91796dd39b908c
Author: Lorenzo Miniero <lminiero at gmail.com>
Date: Thu Nov 30 17:04:08 2017 +0100
Restored 'stopping' event to handlers in Streaming plugin
---
plugins/janus_streaming.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/plugins/janus_streaming.c b/plugins/janus_streaming.c
index 7d78f4d..cc2b040 100644
--- a/plugins/janus_streaming.c
+++ b/plugins/janus_streaming.c
@@ -2886,6 +2886,15 @@ static void *janus_streaming_handler(void *data) {
JANUS_LOG(LOG_VERB, "Stopping the streaming\n");
result = json_object();
json_object_set_new(result, "status", json_string("stopping"));
+ /* Also notify event handlers */
+ if(notify_events && gateway->events_is_enabled()) {
+ json_t *info = json_object();
+ json_object_set_new(info, "status", json_string("stopping"));
+ janus_streaming_mountpoint *mp = session->mountpoint;
+ if(mp)
+ json_object_set_new(info, "id", json_integer(mp->id));
+ gateway->notify_event(&janus_streaming_plugin, session->handle, info);
+ }
/* Tell the core to tear down the PeerConnection, hangup_media will do the rest */
gateway->close_pc(session->handle);
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list