Videoroom authorization

230 views
Skip to first unread message

lddj90

unread,
Jun 6, 2019, 4:53:55 AM6/6/19
to meetecho-janus
Hi!

I want to use the videoroom plugin with authorization. How to config, that just our server can make and modify rooms and the clients can just join the room? 

I tried to use a apisecret for the server but then no clients could connect. If I use stored token based authentication, can also the clients create rooms?

I can restrict the access to the rooms with a pin or the allowed token list, that works well.
What is best practise for achiving a solution where clients can just join and exit specific rooms with a pin and the server manages everything else?

Another thing, when I create a room over the api, and the server restarts, those rooms are not saved, how can we achive this?


Appreciate all help. Thanks!

Lorenzo Miniero

unread,
Jun 6, 2019, 5:04:29 AM6/6/19
to meetecho-janus
The VideoRoom plugin has a secret you can configure too. When set, "create" will only work if the secret is provided.

L. 

lddj90

unread,
Jun 6, 2019, 5:04:44 AM6/6/19
to meetecho-janus
"Another thing, when I create a room over the api, and the server restarts, those rooms are not saved, how can we achive this?"

I found out this can be achived with the permanent flag setting.

lddj90

unread,
Jun 6, 2019, 5:30:47 AM6/6/19
to meetecho-janus
That works. Thanks for your hint.

lddj90

unread,
Jun 6, 2019, 6:52:26 AM6/6/19
to meetecho-janus
Can I show desktop streams and webcam streams in the same handle or do I have to create a seperate handling in the video room pugin?

Lorenzo Miniero

unread,
Jun 6, 2019, 6:54:44 AM6/6/19
to meetecho-janus
The documentation has all the info you need: https://janus.conf.meetecho.com/docs/videoroom

L.

lddj90

unread,
Jun 6, 2019, 6:59:48 AM6/6/19
to meetecho-janus
I have read the documentation and couldn't find an answer. Am I right in the assumption, that I need to have two handles and can't attach webcam and desktop streams to the same handle?

Hope you can help me out here. Thanks for your quick replies so far!

Lorenzo Miniero

unread,
Jun 6, 2019, 8:28:57 AM6/6/19
to meetecho-janus
As explained in the documentation, you can only have one audio+one video per PeerConnection, so yes, you need two handles. This limitation disappears in the Unified Plan branch, so you may want to give that a try as we'll merge it soon: https://github.com/meetecho/janus-gateway/pull/1459

Lorenzo

lddj90

unread,
Jun 6, 2019, 9:15:24 AM6/6/19
to meetecho-janus
Thanks for your promt replay. I wasn't aware of the upcoming merge. I will keep track on it. Thanks!
Reply all
Reply to author
Forward
0 new messages