opaque id

462 views
Skip to first unread message

august black

unread,
Mar 3, 2021, 9:57:47 PM3/3/21
to meetecho-janus
Hi,

I'm trying to understand the opaqueId attribute that you can send when doing handle.attach()

I've checked the forum and github issues, and also read this:

And what I want to do seems to be described in there: "How can we figure out which handles/PeerConnections belong to the same person?" and " If the user/application makes sure to set the same value for all the handles associated to a specific user, in that case correlation can be done on that."

Essentially, that is what I want to do, but in a way so that each end user can "see" the id of other participants across various Janus plugins.  For example, user A and B have each done handle.attach to  audiobridge room 1234 and room 3456.   When joined events are sent to each client (A and B), I would expect the opaque id to be sent for each participant in each room.  But,  I see this is not how it works.

Fwiw, I also set opaqueid_in_api in the janus.jcfg

Is what I am after even possible?  Or, is the opaqueId only for the admin protocol?

Is there perhaps another way for end users to correlate other clients within multiple plugins?

thanks! -august.

Lorenzo Miniero

unread,
Mar 4, 2021, 3:57:41 AM3/4/21
to meetecho-janus
opaque_id is only used by the server and for event handlers. The kind of client-side correlation you want is up to you to do out of band.

L.

august black

unread,
Mar 4, 2021, 10:03:02 AM3/4/21
to Lorenzo Miniero, meetecho-janus
Thanks Lorenzo.

Are there any suggestions on how to do that?

Would I just try to relay the session_id for each user? 
Is that unique per browser connection (assuming the client side code does .attach() on multiple plugins with a single Janus.init)?

And then set up some sort of proxy/relay for the messaging to Janus (leaving the WebRTC ports open)?

Does anyone have an example of doing that?


thanks for any tips! -august.






--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/052974ed-ab6a-431a-aa55-aebcb5a9df7an%40googlegroups.com.

Mirko Brankovic

unread,
Mar 4, 2021, 11:05:34 AM3/4/21
to meetecho-janus
Depends what you want to achieve with it.
For example, we have our own signaling server that holds room and state, so I pass room_id to all the users attach commands and later I can query event logs and get all the messages that holds that opaque_id, so I get all messages belonging to one room



--
Regards,
Mirko
Reply all
Reply to author
Forward
0 new messages