aau-zid / BigBlueButton-liveStreaming

Streams a given BBB Meeting to an RTMP Server.
GNU General Public License v3.0
200 stars 159 forks source link

end bbb meeting on liveStreaming exit #97

Closed erkinalp closed 3 years ago

erkinalp commented 3 years ago

Is your feature request related to a problem? Please describe. PeerTube has instance and user quotas, which limits the duration that a stream can be continued for it to be archived in its entirety.

Describe the solution you'd like Retrieve the quota from PeerTube side and apply an estimated end time on the BigBlueButton side according to remaining quota.

Additional context PeerTube authentication is required to query quota.

mtsonline commented 3 years ago

Hi,

I do not think this should be part of the liveStreaming. You can do this with a script that starts the liveStreaming, what you have to do anyway for each meeting. Just make a script that receives the remaining time and send the docker-compose down after the time is over. If you want to end bbb also at this time you could transfer a end command on liveStreaming shutdown.

This is something that could make sense in the upstream. So anyone feel free to provide a pull request that introduces bbb_end_meeting_on_exit: True|false as variable and send an end api call to bbb if set to true.

cheers