Commit Graph

11 Commits

Author SHA1 Message Date
Jan Koppe 0a857a194c
wip 2024-04-22 14:25:15 +02:00
Jan Koppe d2f980c318
implement pulls 2024-04-01 16:27:31 +02:00
Jan Koppe 813780a18b
replace DRF with django-ninja 2024-03-17 21:05:25 +01:00
Jan Koppe 4299d46b7b
fix: srs sync should ignore streams with only listeners, but no publishers 2024-03-02 14:17:25 +01:00
Jan Koppe e2130621ad
update restream concierge configuration format, hand out actual node url 2024-03-02 14:17:04 +01:00
Jan Koppe 124e366268
implement active srs sync and celery
reworks the entire logic how active streams are being tracked.
instead of keeping a counter by listening only to srs callback
hooks, portier will now actively scrape the http api of known
srs nodes to retrieve information about all currently existing
streams on a srs node. this prevents portier from being wrong
about active stream counts due to drift, and allows us to show
more information about stream data to users in the future,
as the srs api will also expose information about used codecs,
stream resolution and data rates as seen by srs itself.

to implement this, the previous remains of celery have been
made active again, and it is now required to run exactly one
celery beat instance and one or more celery workers beside
portier itself. these will make sure that every 5 seconds all srs
nodes are actively being scraped, on top of the scrape that is
triggered by every srs callback hook.

this keeps the data always superfresh.

the celery beat function allows us to implement cron-based
automation for many other functions (restream, pull, etc) in
the future as well, so it's okay to pull in something more heavy
here rather than just using a system cron and executing a
custom management command all the time.
2024-02-29 18:33:52 +01:00
Jan Koppe 6f817a9e33
templatestuff 2024-02-28 19:38:18 +01:00
Jan Koppe f3e314fbea
wip 2024-02-28 19:02:54 +01:00
Jan Koppe 2de6bd09d4
small display fixes regarding stream url 2024-02-28 19:00:54 +01:00
Jan Koppe 72824d32d4
refactor: move rtmp, restream into config, portal into core 2024-02-27 20:44:35 +01:00
Jan Koppe ba03d9be1a
cleanup 2024-02-25 21:23:21 +01:00