Hi.
Can I identify unique value(like ID) of remoteTrack?
What I want to identify is which track is screen captured video or webcam video.
At first, I tried to use label in MediaStreamTrack object.
(In localStreamTrack, the label is ‘screen or window or HD web cam…’)
But, the value of label has been changed with ‘janus0’, ‘janus1’ in subscribe peer.
Idk well, but seems like janus media server change the value of label when relaying data packet in ‘janus_videoroom_relay_data_pakcet()’ in janus_videoroom.c
Do I have to change code of Janus MediaServer??
Currently, I’m using index of appended streams array, and 'mid' to identifying which stream is cam or screen. But in my opinion, it wouldn’t work 100% correctly in all situations
The question is can I add some filed in MediaStreamTrack Object??
Or is there anything useful value already developed and I’ve been missing
--
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/9d14de49-8ba8-4126-8131-d37ec8780181n%40googlegroups.com.
Thanks for kind reply
Yes. I need that kind of some unique value.
Using mid and setting the order of attachment tracks to localPeer, it works almost fine.
But I don't think it’s a perfect solution.
2021년 3월 23일 화요일 오후 5시 17분 50초 UTC+9에 mirkobr...@gmail.com님이 작성:
Since, when subscribing, you are making a peer connection with janus and not the publisher, you are getting a completely new stream and tracks (just the same rtp payload), so it makes sense to have different stream/track ID.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/883edb40-465b-4703-a3f4-380bdd8a3fb5n%40googlegroups.com.
Yes. I need that kind of some unique value.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/c5745811-6b93-4704-8e4c-68e8e4528c87n%40googlegroups.com.
Thanks guys.
Janus already provide what I want.
In subStreams, there was everything I wanted.
The only problem was, my poor skills.
And yes. Making unique id per track was poor idea.
a=msid-semantic: WMS janus
a=msid:janus janusa0
a=msid:janus janusv0
a=msid:janus janusv1
a=msid-semantic: WMS 4aubqCvRBLMwXjBgSB22bZ0EmdiUxtML6m1J
a=msid:4aubqCvRBLMwXjBgSB22bZ0EmdiUxtML6m1J 6773980a-624f-4382-b7da-3f95cade7d21
a=msid:4aubqCvRBLMwXjBgSB22bZ0EmdiUxtML6m1J dfc67285-e59f-408f-a537-6f9a27062463
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/CAAqCWxqLQfUqd1jqn1o3v3RNRGPHJrxbyUBhL94J15QN_0UOTQ%40mail.gmail.com.
indeed you can do it that way, but seems a bit overhead to identify track by struct/object of 2 elements.full msid would be much more useful in this sense, even just by being added to responses.so the group janusa=msid-semantic: WMS janusthen havea=msid:janus janusa0
a=msid:janus janusv0
a=msid:janus janusv1but then adding msid: janus(a/v)X to the each track property might help, since that is the track_id on the "frontend" side if i'm not mistaking :DOr even better, generating "unique" id for it just like browser:a=msid-semantic: WMS 4aubqCvRBLMwXjBgSB22bZ0EmdiUxtML6m1J
a=msid:4aubqCvRBLMwXjBgSB22bZ0EmdiUxtML6m1J 6773980a-624f-4382-b7da-3f95cade7d21
a=msid:4aubqCvRBLMwXjBgSB22bZ0EmdiUxtML6m1J dfc67285-e59f-408f-a537-6f9a27062463
--
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/93d6a8b1-dbdd-4c73-9fe0-42b7902ca612n%40googlegroups.com.