-
-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create renegotiation method #68
Comments
How do you propose this would work? Can you provide a complete code example and explain a bit more? |
@feross sorry for my late response, had to switch priorities. I've written a renegotiation capable software two years ago, but I cannot recall how it worked, have to dig in.
|
On the second approach, I think it could be a good Idea to have separated PeerConnections for different streams, it would make renegotiation easier. |
@cusspvz Thanks for explaining your thoughts. My concern is that this all sounds really complicated. If there's no way to do this simply using the same RTCPeerConnection, then I don't think this belongs in |
Yeah, I admit the second one seems a little tricky to implement, besides, its complexity doesn't go well along with this repo's purpose... I think I can write out some tests and start playing along with the first approach until the end of this week. |
@cusspvz Sounds good. Happy to check out what you come up with! |
Already PR'ed some changes! :) Unfortunately I'm running out of time to work on it today, I can only finish this up on Monday. |
FireFox does not support more than one stream in their P2P connection (inbound or outbound). The problem with this is that it is simple to limit the number of streams on an instance in ff ( |
So what's the recommended way to mute / add video after the fact? Should I be creating a new Peer object on both clients? |
@ben-pr-p I'm closing and recreating the connections. It works but having problem with one use case where the initiator isn't broadcasting a stream, but only aims to receive it. Since the stream isn't set to anything it seems that even if the other party sends over the stream, the "on" stream event never gets called. I also enable/disable the local tracks using something like
|
I've been using |
@ben-pr-p What I'm doing as a workaround is closing the connections and re-creating them. So I don't have to ask for all of them upfront. Only problem with this solution is that it seems the initiator has to have a stream, if not then the "on" stream event doesn't fire so you don't end up receiving any of the streams from the other peers |
@gnazarkin See #95 for a workaround to that issue. |
Being solved at #250 |
Implemented in #250. |
This should allow us to:
.addStream
expose addStream on prototype #50@feross has any work been initiated regarding renegotiation?
The text was updated successfully, but these errors were encountered: