the discuss-webrtc <https://groups.google.com/g/discuss-webrtc> list is probably a better place to ask in the future.
Adding video to an audio-only call will, by design, require renegotiation. There is a sample for that at https://webrtc.github.io/samples/src/content/peerconnection/upgrade/ - it adds the camera but you can just replace the getUserMedia call with getDisplayMedia. Am Mi., 6. Juli 2022 um 18:01 Uhr schrieb Shubham Bhateja < [email protected]>: > Hello Blink, > > > I am working on a project in which we are using an audio call feature of > WebRTC. Audio call works fine. On button click we need to enable share > screen and replaceTracks with share screen track only, but replaceTrack web > api replaces tracks of same kind, for example audio track can only be > replaced with audio track or video track can only be replaced with video > track. In my case, I am trying to achieve two things: > > #1: I want to enable share screen while the audio track is on. > > #2: If I can replace the audio track with share screen track appended in > it without renegotiations. > > Any help will be highly appreciated! > > > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows > > > > -- > You received this message because you are subscribed to the Google Groups > "blink-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/chromium.org/d/msgid/blink-dev/SJ0PR15MB5245EB1D56925CFCBF8421A3DDBE9%40SJ0PR15MB5245.namprd15.prod.outlook.com > <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/SJ0PR15MB5245EB1D56925CFCBF8421A3DDBE9%40SJ0PR15MB5245.namprd15.prod.outlook.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADxkKiKJ4ezS-vQ4buJizY684tos%2BVzSS-euzYCzn43RgUW%3Dyg%40mail.gmail.com.
