Video room plugin. Listener pause / unpause video

244 views
Skip to first unread message

Damien Hourriez

unread,
Aug 27, 2017, 1:33:33 PM8/27/17
to meetecho-janus
Hi all. 

I have a multiple publishers in 1 room. 
1 publisher can listen / see all other publisher. 

For each plugin that receive video / audio of seeder, i would create a "pause" / "unpause" button only for video.
I don't want just stop video locally. 
Maybe send a message to janus like "request: configure, video:false" (for listener). 

Thanks you for your help!

Firas Abd Alrahman

unread,
Aug 27, 2017, 4:53:58 PM8/27/17
to Damien Hourriez, meetecho-janus
I think this option is not available, Your possible solution is to contact the listener's client side in your application layer, your code will respond by detaching the listener handle.
Stopping locally is also more secure and easier but I do not know your requirements.



--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Eng. Firas Abd Alrahman
Khartoum, Sudan, Alriad, 60 St.
Mobile : +249126712777
Phone  : +249123334569
              

Damien Hourriez

unread,
Aug 27, 2017, 5:27:48 PM8/27/17
to meetecho-janus
Thx Firas Abd Alrahman for your reply.

For preserve client bandwitch, i want to reduce number of video stream receive.
For moment, i receive between 15 and 20 video stream on 1 client but only 5 video tag are show (limit of application resolution / size of video stream).
I want to detect the hidden video tag on the page and stop reception of stream. If user scroll for show other video tag, i will resume reception of stream.

One possibility is to destroy handle (for hidden video tag) and re-create handle when video tag is scrolled (with certainly few lags).

Ancor Gonzalez Sosa

unread,
Aug 28, 2017, 2:04:28 AM8/28/17
to meetecho-janus

Not sure if is what you are looking for, but in Jangouts we use a similar technique if the "video thumbnails" option is disabled. We basically do "request: configure, video:false" in the listener for all the videos in which we don't detect audio and we re-enable video when audio is detected. It works pretty well.

demo: https://jangouts.tk
source code: https://github.com/jangouts/jangouts

Cheers.

Lorenzo Miniero

unread,
Aug 28, 2017, 4:18:21 AM8/28/17
to meetecho-janus
Yep, from what I understood about the requirement, the approach Ancor suggested is the way to go, as a video:false in a listener configure does indeed pause the video delivery for that subscriber, while still having the publisher send media (video:true resumes it).

L.

Damien Hourriez

unread,
Aug 28, 2017, 7:26:41 AM8/28/17
to meetecho-janus
Thanks you very much, its exactly what i search! It works perfectly. 

Have a good day! 
Reply all
Reply to author
Forward
0 new messages