simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.65k stars 1.19k forks source link

How to identify receiving stream is a screen share? #546

Open mjprins opened 7 years ago

mjprins commented 7 years ago

Hi,

I am looking into a way to identify the type of video stream a client is receiving (actually the role it is assigned). For instance this may be a webcam feed, but also a screen share. I could work around this by creating a mapping table myself (peer.id => role), but am curious if there's a built in way to signal the role of a certain peer stream.

mjprins commented 7 years ago

Ah I now see that the peer object has the attribute "type" with value "screen" for screenshare and "video" for webcam feed

JakeTrock commented 6 years ago

@mjprins please close this issue if you have resolved it (just trying to clean up the repo of old issues)