Differentiate between screen share track and camera track

215 views
Skip to first unread message

KANHAIYA KUMAR

unread,
Aug 7, 2021, 7:59:24 AM8/7/21
to discuss-webrtc
Hi,Is there any way to differentiate between screen share track and camera track in a webrtc video call?

I am able to add both video tracks(camera as well as screen share track) using proper negotiation event.But,I cannot differentiate these 2 tracks (Since they both have property of `kind` video and their id seems to be randomly generated and is different to the id of actually owner of the track )

Please suggest a method which i can use to differentiate these 2 tracks.

Thanks

Tsahi Levent-Levi

unread,
Aug 7, 2021, 8:35:25 AM8/7/21
to discuss...@googlegroups.com
Hi,

Check this WebRTC fiddle of the month from May on how you can get this done in your application: https://webrtccourse.com/course/webrtc-codelab/module/fiddle-of-the-month/lesson/multiple-video-tracks-on-a-single-peer-connection/

--
Regards,
Tsahi Levent-Levi
Analyst & Consultant

Want to get more of your WebRTC sessions effectively connected? Enroll to my free video course: http://bit.ly/32Y3qZK



--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/96f078e7-03b3-44a5-976d-97f0ade29cean%40googlegroups.com.



Reply all
Reply to author
Forward
0 new messages