Похожие чаты

Hey guys !! how do we can detect incoming track is

webcam or screen share in webrtc ?

8 ответов

7 просмотров

Sounds not possible

Masoud- Автор вопроса
Masoud- Автор вопроса
Thomas
How?

First I'm writing a SFU and I need to know which type of stream is coming (webcam or screen share) and only property that will share between local and remote peer without any changes is stream id and the rest including track id will changes so I don't need them. In broadcaster client side I have a streamType variable and when user clicks on EnableWebcam button I will change value of that var to "webcam" and then add the track to peer connection when negotiation needed event triggers I will modify the sdp because there is a attribute in sdp with the key "extmap" and value of some url that won't be used by browser so I will replace that url with my streamType :)) and complete the renegotiation then in server in ontrack event function I will find the track by stream id and get that streamType from sdp and again set that streamType as stream id for the new track that I want to add to viewers peer connection and finally in viewer client side ontrack event function : streams[0].id === "webcam" ? console.log('webcam') : console.log('screenShare') (sorry for detailed explaining)

Masoud
First I'm writing a SFU and I need to know which t...

Jeez that's a lot, but basically you know because the user selected. So it's not possible to detect

Masoud- Автор вопроса
Thomas
Jeez that's a lot, but basically you know because ...

I was looking for a way to understand that incoming track is webcam or screen share in server and viewers browser and now I have it 🤷🏻‍♂

Thomas
Yea because the user tells you

So that I can select real cam option and just stream my obs virtual cam 🌚

Похожие вопросы

Обсуждают сегодня

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
We heading to 1.1$ 🤔?
CryptoBo$$
35
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
45
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
кто-то пользуется компонентами rx ? как их лучше ставить, через OPM? (lazarus)
Iluha Companets
15
Здравствуйте товарищи! решил всё таки поставить линукс. Порядок создание разделов /boot/efi 200МиБ; /boot 1000; подсистему / 80000; swap 8Гб Будет норм?
K2
19
How Will #Monero Be Attacked? First of all I want to tell you that this is not teaching the network attackers, the central regulators. They already know how to attack the net...
Li₿ΞʁLiøη
3
Koi bata sakata hai yaha ? Is baar shot open karna theek rahega kya ?
Hakuna Matata
13
Can you help a noob? I know LTC was one of the early alt coins. But what is the benefit of it today? What are its attributes? Why should I be bullish on it this bull run?
CryptoNoobian ($PEPI)
14
подскажите пожалуйста, как мне освободить результат записанный в переменную result? в чем проблема подскажите если МОЖЕТЕ?
Михаил Helper
28
Карта сайта