Closed
Bug 1232082
Opened 9 years ago
Closed 9 years ago
Add RTCRtpReceiver and fire ontrack for remote tracks
Categories
(Core :: WebRTC, defect, P1)
Core
WebRTC
Tracking
()
RESOLVED
FIXED
mozilla46
backlog | webrtc/webaudio+ |
People
(Reporter: jib, Assigned: jib)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed)
Attachments
(4 files)
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Bug 1232082 - add RTCRtpReceiver for each remote track (WIP).
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8697737 [details]
MozReview Request: Bug 1232082 - add RTCRtpReceiver for each remote track.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/27709/diff/1-2/
Attachment #8697737 -
Attachment description: MozReview Request: Bug 1232082 - add RTCRtpReceiver for each remote track (WIP). → MozReview Request: Bug 1232082 - add RTCRtpReceiver for each remote track.
Comment 3•9 years ago
|
||
FYI, needed for Simulcast work
backlog: --- → webrtc/webaudio+
Rank: 15
Priority: -- → P1
Updated•9 years ago
|
Rank: 15 → 10
Comment 4•9 years ago
|
||
Just added jib's patch from this bug to the test from bug 1231507 and it works. So at least we get RTPReceivers and Byron's code for switching between incoming RTP streams seems to be happy about it.
Comment 5•9 years ago
|
||
@jesup: FYI I think this does not need an extra test per se, because it is already covered through existing code here: https://dxr.mozilla.org/mozilla-central/source/dom/media/tests/mochitest/pc.js#1432
Comment 6•9 years ago
|
||
The only code which seems to be "nice to have" fixed when this lands is: https://dxr.mozilla.org/mozilla-central/source/dom/media/tests/mochitest/pc.js#1455
Comment 7•9 years ago
|
||
Comment on attachment 8697737 [details]
MozReview Request: Bug 1232082 - add RTCRtpReceiver for each remote track.
https://reviewboard.mozilla.org/r/27709/#review26007
r+, should land with other simulcast code (simulcast mochitests) which will implicitly test it
Attachment #8697737 -
Flags: review+
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8697737 [details]
MozReview Request: Bug 1232082 - add RTCRtpReceiver for each remote track.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/27709/diff/2-3/
Assignee | ||
Comment 9•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29503/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/29503/
Attachment #8703941 -
Flags: review?(rjesup)
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8703941 [details]
MozReview Request: Bug 1232082 - add pc.ontrack and RTCTrackEvent
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29503/diff/1-2/
Attachment #8703941 -
Flags: review?(bugs)
Assignee | ||
Comment 11•9 years ago
|
||
https://reviewboard.mozilla.org/r/29503/#review26317
::: dom/webidl/RTCTrackEvent.webidl:10
(Diff revision 1)
> +dictionary RTCTrackEventInit : EventInit {
> + required RTCRtpReceiver receiver;
> + required MediaStreamTrack track;
> + required sequence<MediaStream> streams;
See https://github.com/w3c/webrtc-pc/pull/446
Updated•9 years ago
|
Attachment #8703941 -
Flags: review?(rjesup) → review+
Comment 12•9 years ago
|
||
Comment on attachment 8703941 [details]
MozReview Request: Bug 1232082 - add pc.ontrack and RTCTrackEvent
https://reviewboard.mozilla.org/r/29503/#review26319
Looks good; my only question is do we need to retain tests for the deprecated interfaces until they're removed? I'd think so....
Assignee | ||
Comment 13•9 years ago
|
||
I did not change all tests, so there are tests remaining of the deprecated interfaces. In fact, I gave up fixing pc.js (since the stream assumptions in setupAddStreamEventHandler and attachMedia started to fan out the more I touched them), so most tests effectively still rely on onaddstream for now.
Comment 14•9 years ago
|
||
Comment on attachment 8703941 [details]
MozReview Request: Bug 1232082 - add pc.ontrack and RTCTrackEvent
https://reviewboard.mozilla.org/r/29503/#review26359
Attachment #8703941 -
Flags: review?(bugs) → review+
Comment 15•9 years ago
|
||
Thanks for comment 11.
Assignee | ||
Comment 17•9 years ago
|
||
Yes, I addressed those in comment 10, but weirdly the link in comment 10 is still in "draft" stage in mozReview somehow, e.g. if I use private browsing and follow the link then it shows as "page missing". Odd.
In any case, I'll publish it now and do another try.
Flags: needinfo?(jib)
Assignee | ||
Comment 18•9 years ago
|
||
Comment on attachment 8703941 [details]
MozReview Request: Bug 1232082 - add pc.ontrack and RTCTrackEvent
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29503/diff/1-2/
Assignee | ||
Comment 19•9 years ago
|
||
See, the link in comment 18 is the same as in comment 10. Straange.
Assignee | ||
Comment 20•9 years ago
|
||
Sorry, still working on the other orange.
Assignee | ||
Comment 21•9 years ago
|
||
Comment on attachment 8697737 [details]
MozReview Request: Bug 1232082 - add RTCRtpReceiver for each remote track.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/27709/diff/3-4/
Assignee | ||
Comment 22•9 years ago
|
||
Comment on attachment 8703941 [details]
MozReview Request: Bug 1232082 - add pc.ontrack and RTCTrackEvent
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29503/diff/2-3/
Assignee | ||
Comment 23•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/30485/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/30485/
Attachment #8706736 -
Flags: review?(docfaraday)
Assignee | ||
Comment 24•9 years ago
|
||
Note: comment 21 and comment 22 have zero changes (I wish mozReview would quit spamming needlessly).
Comment 25•9 years ago
|
||
Comment on attachment 8706736 [details]
MozReview Request: Bug 1232082 - fix removal of remote tracks to update receivers.
https://reviewboard.mozilla.org/r/30485/#review27285
::: dom/media/PeerConnection.js:1490
(Diff revision 1)
> - this._receivers.splice(i, 1);
> + pc._receivers.splice(i, 1);
This was the primary fix on the PeerConnection.js side of things, right?
::: dom/media/PeerConnection.js
(Diff revision 1)
> - this.dispatchEvent(new this._dompc._win.MediaStreamTrackEvent("removetrack",
> - { track: track }));
I guess we're removing this since we've never supported it, and it isn't in the latest editor's draft anyway?
Attachment #8706736 -
Flags: review?(docfaraday) → review+
Assignee | ||
Comment 26•9 years ago
|
||
> This was the primary fix on the PeerConnection.js side of things, right?
Right.
> > - this.dispatchEvent(new this._dompc._win.MediaStreamTrackEvent("removetrack",
> > - { track: track }));
>
> I guess we're removing this since we've never supported it, and it isn't in
> the latest editor's draft anyway?
Right. onremovetrack was never in the WebIDL, so it never worked.
Comment 27•9 years ago
|
||
I had to back these out in https://hg.mozilla.org/integration/mozilla-inbound/rev/d13beb8320e9 for wpt bustage:
https://treeherder.mozilla.org/logviewer.html#?job_id=19661266&repo=mozilla-inbound
Flags: needinfo?(jib)
Assignee | ||
Comment 29•9 years ago
|
||
Comment on attachment 8703941 [details]
MozReview Request: Bug 1232082 - add pc.ontrack and RTCTrackEvent
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/29503/diff/3-4/
Assignee | ||
Comment 30•9 years ago
|
||
Comment on attachment 8706736 [details]
MozReview Request: Bug 1232082 - fix removal of remote tracks to update receivers.
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/30485/diff/1-2/
Assignee | ||
Comment 31•9 years ago
|
||
(In reply to Wes Kocher (:KWierso) from comment #28)
> wpt bustage:
Forgot about those. :/ Thanks. Comment 29 has a fix (comment 30 has zero changes - mozReview artifact). Carrying forward r=jesup,smaug.
Flags: needinfo?(jib)
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Backed out again in https://hg.mozilla.org/integration/mozilla-inbound/rev/a8a91621bad6 for a variety of Android webrtc failures, most prominently causing bug 1239200.
Assignee | ||
Comment 34•9 years ago
|
||
What were the other ones? I only see bug 1239200 in https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=1c8afc8ea1c1&selectedJob=19684724
Flags: needinfo?(philringnalda)
Comment 35•9 years ago
|
||
What you can do to (at least try to) answer that is to take your cset hash from landing and mine from backing out and stick them into &fromchange=/&tochange= to get https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&fromchange=fa3363702d51&tochange=a8a91621bad6, then click the Filters menu, "click new to filter by a specific job field" and add "failure classification, fixed by commit" to get https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&fromchange=fa3363702d51&tochange=a8a91621bad6&filter-failure_classification_id=2
But what that'll tell you is just that it was probably bug 1239200 plus I starred a couple of webrtc intermittents in there as being caused by this when they were really just coincidences.
Flags: needinfo?(philringnalda)
Assignee | ||
Comment 36•9 years ago
|
||
Having mozReview trouble (bug 1240257) so I'm stuck with splinter atm.
Try - https://treeherder.mozilla.org/#/jobs?repo=try&revision=0a560abedc6f
Attachment #8708653 -
Flags: review?(rjesup)
Updated•9 years ago
|
Attachment #8708653 -
Flags: review?(rjesup) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 37•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb7671c54fff
https://hg.mozilla.org/integration/mozilla-inbound/rev/81a339251da3
https://hg.mozilla.org/integration/mozilla-inbound/rev/cd8552a15e04
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b9c06478275
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 38•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eb7671c54fff
https://hg.mozilla.org/mozilla-central/rev/81a339251da3
https://hg.mozilla.org/mozilla-central/rev/cd8552a15e04
https://hg.mozilla.org/mozilla-central/rev/0b9c06478275
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•