Coder Social home page Coder Social logo

Screensharing Issue about webrtc-experiment HOT 2 OPEN

muaz-khan avatar muaz-khan commented on May 16, 2024
Screensharing Issue

from webrtc-experiment.

Comments (2)

zdfs avatar zdfs commented on May 16, 2024

I think I need to have a webrtc connection for every stream type. Data, audio, video, and screen each get their own connection. Does that approach have merit, in your opinion?

from webrtc-experiment.

muaz-khan avatar muaz-khan commented on May 16, 2024
I think I need to have a webrtc connection for every stream type. Data, audio, video, and screen each get their own connection. Does that approach have merit, in your opinion?

It is useful only if you want to share screen along with audio and video. One peer can be negotiated for audio/video and one for screen.

It is true that multiple streams attachment is supported since long time; however video along with screen in a single peer connection still fails (out of duplicate video m-lines or overriding old m-line). Though, it is expected to be fixed in near future; where one m-line will have multiple streams.

Possible Scenarios

  1. If you're sharing audio-only stream; you can renegotiate any other stream except a duplicate audio stream.
  2. If you're sharing audio/video streams; you can renegotiate any other stream except a duplicate audio or video stream; screen capturing is also listed in video m-line; that's why renegotiation process fails.
  3. If you're sharing data-only stream; you can renegotiate any other stream.

In last case; old data m-line can be overridden.

Sometimes overriding process works without any failure; however old streams will be stopped flowing.

...right now, I'm just trying to test this with two windows in Google Chrome, and I'm not sure if that's contributing to the issue...

Chrome doesn't allow multiple screen capturing requests per system; even if you're using two unique tabs or windows. That's why you should try oneway:true.

from webrtc-experiment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.