-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add RTCRtpTransceiver and PeerConnection.addMedia. #293
Conversation
@@ -2559,6 +2557,17 @@ | |||
</ol> | |||
</dd> | |||
|
|||
<dt>RTCRtpSender addMedia (DOMString kind, RTCRtpTransceiverInit init)</dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RTCRtpTransceiver as return value?
First argument: (MediaStreamTrack or DOMString) media?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and yes.
I couldn't get my microphone working during this session on the f2f meeting. As I understand this PR, there's API for the A-side to add media and inspect existing transceivers. Have you thought anything about how the B-side API looks? |
@@ -2446,6 +2424,26 @@ | |||
defined and the order does not have to be stable between calls.</p> | |||
</dd> | |||
|
|||
<dt>sequence<RTCRtpTranseceivers> getMedia()</dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be Transceiver (here and in the rest of the text)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, fixed it.
Consensus from the meeting was that the name was bad. I don't think that there was wide agreement on a name, but I recall |
|
Yes, addMedia is a bad name. But how is RTCRtpTransceiver? If it's On Wed, Sep 16, 2015 at 10:28 AM, Martin Thomson notifications@github.com
|
What was mentioned on one my slides was the full "bear hug": On Wed, Sep 16, 2015 at 10:28 AM, Martin Thomson notifications@github.com
|
Met with approval in Seattle (modulo name bikeshed). Should be reviewed and merged. |
Waiting for naming discussions to conclude. Also, Travis errors. |
FYI, I have change the name in the PR to createRtpTransceiver until we come On Wed, Sep 16, 2015 at 10:50 AM, Peter Thatcher pthatcher@google.com
|
@@ -2559,6 +2560,25 @@ | |||
</ol> | |||
</dd> | |||
|
|||
<dt>RTCRtpTransceiver createRtpTransceiver(MediaStreamTrack or | |||
DOMString track_or_kind, RTCRtpTransceiverInit init)</dt> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The union type MediaStreamTrack or DOMString
needs to be wrapped in parenthesis, i.e. (MediaStreamTrack or DOMString) track_or_kind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Sorry about all the typos. I guess I was a little too rushed when writing this. Hopefully you found all of them. |
What happens if you create two transceivers (of same type), and two tracks, and then receive one or two tracks (sort of like SSRCs) in RTP? How would that be wired up? |
I don't remember what the plan for completely unknown media is. I'd have As for normative text, I'll add some in the addTransceiver method saying If you create two transceivers of the same type, they'll have different On Mon, Oct 19, 2015 at 11:06 PM, stefan hakansson <notifications@github.com
|
Den 20. okt. 2015 20:57, skrev pthatcherg:
For media that made it past SRTP verification but can't be associated to
I think that's right. That means MID must be known at addTransceiver
|
Yes, I think this would work. Association is made by the MID field in the RTP header. |
As we discussed, I think that this is fine. We can generate messages for the console if we find that diagnosing session errors is difficult. |
Given that, I propose we merge this PR. |
Would be great to have a rebase... |
|
||
<p>If a kind is passed in, the value of the <code>.sender.track</code> will be | ||
null and and media type generated by <code>createOffer</code> will be that of | ||
the kind. The MSID generated by <code>createOffer</code> will be selected by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the MSID spec, this will cause a track to be created at the remote side after an offer/answer exchange. I assume this is required as part of the "warmup" usage.
Don't we want to prevent this by passing "send:false"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MSID is only generated if needed, such as when "send: true". I will make that more explicit.
I reviewed the PR a little more closely than before, and as always, found a few nits. If you can address them while rebasing, that would be great. |
@pthatcherg can you have another look at this, feels like we are close. |
I'll rebase and address the issues. On Thu, Oct 22, 2015 at 7:23 AM, Erik Lagerway notifications@github.com
|
I've rebased and addressed the issues. On Thu, Oct 22, 2015 at 4:41 PM, Peter Thatcher pthatcher@google.com
|
I also added an example of receiving media before signalling on the offerer On Fri, Oct 23, 2015 at 4:41 PM, Peter Thatcher pthatcher@google.com
|
Add RTCRtpTransceiver and PeerConnection.addMedia.
This is intended to replace createRtpSender (#271) and createRtpReceiver (#279) with something more powerful and complete. It also fixes #187.
Needs list discussion, and I'd like to present on it at the f2f.