I am trying to add user id to MediaStreamTrack instead of “janus0, janus1, etc.” default names. Is it possible? I see in Janus Video Room Demo (multistream). All streams have guid value
I’ve tried to add descriptions in “joinandconfigure” request with mid 0,1,2 and description with ID, but it didn’t help.
Because that’s the mid. If you check the SDP, you’ll find an msid that reflects other properties. Not sure if you have to query that information somehow else. Context here.
That said, the mid alone is enough when used with subscribers event, as you can use those to correlate. You now know, for instance, that mid 1 is e7e3f0b5-f3e3-4f10-916e-1857c4b967a8’s video.
No. The first snippet you shared was a VideoRoom event, and the mid you get from the MediaStreamTrack itself. You never need the msid thing if not in some cases (I think some older react-native implementation relied on them to be unique).