jech / galene

The Galène videoconference server
https://galene.org
MIT License
971 stars 132 forks source link

How Pause/Play video incoming videostream? #96

Closed shalom-aviv closed 3 years ago

shalom-aviv commented 3 years ago

Hi

Can client pause/play video stream for particular user?

For example 30 users in a conference and always talks from 3 to 5. When user silent we pause his video stream and shows avatar, when user become active we play his video stream. Audio stream always active for all users.

Does it possible in your solution? If not could you please give helpful advice, how I can implement this feature?

Thank you!

jech commented 3 years ago

The user can disable the stream by clicking Panic, or they can disable just the video track by selecting Camera: none in the side menu. The group administrator can disable a user's video by doing /unpresent user in the chat.

Other scenarios should be easy to implement, but you'll need to precisely specify what you need.

shalom-aviv commented 3 years ago

Thanks for your fast response!

My question about client side

Sorry if I'm not clear

jech commented 3 years ago

Ah, I see.

In Galène 0.3, this is not possible — you receive either all video streams or none. In the current master branch, it is possible to disable the video stream by using the Stream.request method:

  c.request(['audio']);

This is used in the reconsiderDownRate function in galene.js, where we decide, depending on the size of a video, whether to request the full-quality video or just a low-quality thumbnail.

shalom-aviv commented 3 years ago

See! Thanks