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
addStream and sdpTransform issue #367
Comments
We do transform the SDP on renegotiation (which happens after addStream), even if you don't pass an initial stream. Not all SDP attributes can be renegotiated and many of them have questionable behaviour on renegotiation. Knowing what SDP attributes you're trying to change would help. |
I'm setting audio and video bitrate using sdpTransform...
|
I'm fairly certain bitrate can be renegotiated. Can check that the offer/answers emitted in the |
The problem is that before sending the stream I cannot use this function as sdpTransform, because signal events does not contains media bitrate lines. What I need is something like setting sdpTransform in addStream. |
I don't follow. The Is your issue that the initial offer doesn't have any media lines (because you haven't added any stream) so you can't use your transform on it? |
Exactly. And after I add stream later, I cannot add this sdpTransform function, disallowing bitrate control. |
Your
|
WoW. Nice. So this function will get called at each renegotiation. That's my point. Thank you very much! |
Yup, every offer/answer is passed through sdpTransform. No problem 👍 |
Hi t-mullen, pardon me. Now sdp is working, but I'm getting an error:
when I
Do you have some clue? Thank you very much and sorry again. |
Can you confirm that If so, what browser and version? |
yes. MediaStream.
Chrome, 69.0. Safari also does not work. |
Are you using some kind of webrtc shim or something that might have removed the |
Removing webrtc-adapter package clears the error, but I can't still send stream to other peers. Do you have some instruction? I do not want to waste your time, perhaps I will have to dig more. |
You might want to open an issue with webrtc-adapter about why MediaStreams don't have the getTracks method. As for not being able to send the stream, a lot of things could be causing that. Maybe your receiving peer is still using your webrtc-adapter build? Hard to tell. |
@t-mullen Hello, i want to connect the two peers as well without adding the is that possible? what if just one of the two peers want to add a stream somewhere and not both ? i mean one of them already defined the peer with is that possible? |
@athina635 asking new questions in comments of old already closed issues is not productive. |
Hey guys,
I'm using sdp transform to control bitrate. This is very important for us for performance reasons (room can be up to 8 people).
If I pass a running stream on setupPeer, everything goes fine. But, if I do not pass a valid stream, I cannot use sdpTransform.
Is there a way to add latter stream with sdp transform, after peer connection is established?
Thanks!
The text was updated successfully, but these errors were encountered: