[Pkg-voip-commits] [janus] 200/282: Added missing PLI when restoring subscriber's video with configure (fixes #1087)
Jonas Smedegaard
dr at jones.dk
Wed Dec 20 21:53:41 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 e39b58a2686dd0ebc706251f26ca487e96c57509
Author: Lorenzo Miniero <lminiero at gmail.com>
Date: Mon Nov 27 12:56:59 2017 +0100
Added missing PLI when restoring subscriber's video with configure (fixes #1087)
---
plugins/janus_videoroom.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/plugins/janus_videoroom.c b/plugins/janus_videoroom.c
index e1fe958..5828515 100644
--- a/plugins/janus_videoroom.c
+++ b/plugins/janus_videoroom.c
@@ -4048,8 +4048,20 @@ static void *janus_videoroom_handler(void *data) {
if(publisher) {
if(audio && publisher->audio && listener->audio_offered)
listener->audio = json_is_true(audio);
- if(video && publisher->video && listener->video_offered)
+ if(video && publisher->video && listener->video_offered) {
listener->video = json_is_true(video);
+ if(listener->video) {
+ /* Send a FIR */
+ char buf[20];
+ janus_rtcp_fir((char *)&buf, 20, &publisher->fir_seq);
+ JANUS_LOG(LOG_VERB, "Restoring video for listener, sending FIR to %"SCNu64" (%s)\n", publisher->user_id, publisher->display ? publisher->display : "??");
+ gateway->relay_rtcp(publisher->session->handle, 1, buf, 20);
+ /* Send a PLI too, just in case... */
+ janus_rtcp_pli((char *)&buf, 12);
+ JANUS_LOG(LOG_VERB, "Restoring video for listener, sending PLI to %"SCNu64" (%s)\n", publisher->user_id, publisher->display ? publisher->display : "??");
+ gateway->relay_rtcp(publisher->session->handle, 1, buf, 12);
+ }
+ }
if(data && publisher->data && listener->data_offered)
listener->data = json_is_true(data);
/* Check if a simulcasting-related request is involved */
--
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