Hi Janusians,
I have a few questions concerning the nature of Janus and its Plugin infrastructure.
I’ve looked at the (source code of the) VideoRoom demo and I can’t figure out if Janus has any built-in capabilities to restrict who can watch a stream. Can anybody who knows a video room ID subscribe to the stream?
If Janus has no built-in mechanisms, how would I go about implementing them – on a high level?
Assuming I have a server running with user management, how would I make sure only certain users are allowed to view a stream?
I would assume I can hook into the WebRTC handshake procedure somewhere … but where?
Specifically, I’m trying to deploy Janus with the FTL-plugin from the Glimesh folks (GitHub - Glimesh/janus-ftl-plugin: A plugin for the Janus WebRTC gateway to enable relaying of audio/video streams utilizing Mixer's FTL (Faster-Than-Light) protocol.), which has about zero documentation.
To use it, I have a running instance of their whole Glimesh streaming platform, where I can generate a STREAM KEY (which doesn’t limit who can watch, just limits who can stream in a channel).
After that, it’s just “fire and forget”, i.e. I send an (OBS) stream to the configured server address and then anybody can subscribe to that feed if they know the channel id (room id)
Again, with regards to restricting viewers, would I implement this in Janus or in the FTL-plugin?