Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Issue 827673002: Add MediaStream.active attribute (Closed)

Created:
5 years, 12 months ago by jiajia.qin
Modified:
5 years, 10 months ago
CC:
blink-reviews, tommyw+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add MediaStream.active attribute This CL added MediaStream.active attribute, onactive and oninactive events according to the spec http://w3c.github.io/mediacapture-main/getusermedia.html#widl-MediaStream-active BUG=445084 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189225

Patch Set 1 #

Total comments: 1

Patch Set 2 : add MediaStream.active attribute #

Total comments: 6

Patch Set 3 : Allow addTrack/removeTrack when mediastream.ended is true #

Total comments: 10

Patch Set 4 : add active state checking in addRemoteTrack/removeRemoteTrack #

Patch Set 5 : Fix error in patch set 4 #

Total comments: 8

Patch Set 6 : modify the tests and restore some old checkings #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -64 lines) Patch
M LayoutTests/fast/mediastream/MediaStream-add-remove-tracks.html View 1 2 3 4 5 3 chunks +30 lines, -9 lines 0 comments Download
M LayoutTests/fast/mediastream/MediaStream-add-remove-tracks-expected.txt View 1 2 3 4 5 1 chunk +6 lines, -3 lines 0 comments Download
A + LayoutTests/fast/mediastream/MediaStream-onactive-oninactive.html View 1 2 3 4 5 2 chunks +17 lines, -24 lines 0 comments Download
A LayoutTests/fast/mediastream/MediaStream-onactive-oninactive-expected.txt View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M LayoutTests/fast/mediastream/MediaStream-stop.html View 1 2 3 4 5 1 chunk +39 lines, -12 lines 0 comments Download
M LayoutTests/fast/mediastream/MediaStream-stop-expected.txt View 1 2 3 4 5 1 chunk +7 lines, -3 lines 0 comments Download
M LayoutTests/fast/mediastream/MediaStreamConstructor.html View 1 2 chunks +6 lines, -1 line 0 comments Download
M LayoutTests/fast/mediastream/MediaStreamConstructor-expected.txt View 1 11 chunks +11 lines, -0 lines 0 comments Download
M LayoutTests/fast/mediastream/RTCPeerConnection-remotestreams.html View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/mediastream/RTCPeerConnection-remotestreams-expected.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/events/EventTypeNames.in View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/mediastream/MediaStream.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M Source/modules/mediastream/MediaStream.cpp View 1 2 3 4 5 6 9 chunks +48 lines, -12 lines 0 comments Download
M Source/modules/mediastream/MediaStream.idl View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/mediastream/MediaStreamDescriptor.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M Source/platform/mediastream/MediaStreamDescriptor.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (9 generated)
jiajia.qin
Please take a look. Thanks.
5 years, 12 months ago (2014-12-25 07:35:07 UTC) #1
tommi (sloooow) - chröme
Per - can you take a look?
5 years, 11 months ago (2015-01-03 16:13:54 UTC) #3
perkj_chrome
Can you please add layout tests that shows this? Also, have you seen that the ...
5 years, 11 months ago (2015-01-07 14:12:18 UTC) #4
jiajia.qin
On 2015/01/07 14:12:18, perkj wrote: > Can you please add layout tests that shows this? ...
5 years, 11 months ago (2015-01-12 10:49:18 UTC) #5
perkj_chrome
Thanks for doing this. I don't know blink that well so we need another blink ...
5 years, 11 months ago (2015-01-12 11:22:19 UTC) #7
jiajia.qin
On 2015/01/12 11:22:19, perkj wrote: > Thanks for doing this. I don't know blink that ...
5 years, 11 months ago (2015-01-13 06:20:51 UTC) #8
perkj_chrome
https://codereview.chromium.org/827673002/diff/20001/Source/platform/mediastream/MediaStreamCenter.cpp File Source/platform/mediastream/MediaStreamCenter.cpp (right): https://codereview.chromium.org/827673002/diff/20001/Source/platform/mediastream/MediaStreamCenter.cpp#newcode144 Source/platform/mediastream/MediaStreamCenter.cpp:144: stream->setActive(false); Shouldn't you keep setEnded here? MediaStream.Stop is also ...
5 years, 11 months ago (2015-01-13 08:24:31 UTC) #9
jiajia.qin
https://codereview.chromium.org/827673002/diff/20001/Source/platform/mediastream/MediaStreamCenter.cpp File Source/platform/mediastream/MediaStreamCenter.cpp (right): https://codereview.chromium.org/827673002/diff/20001/Source/platform/mediastream/MediaStreamCenter.cpp#newcode144 Source/platform/mediastream/MediaStreamCenter.cpp:144: stream->setActive(false); On 2015/01/13 08:24:31, perkj wrote: > Shouldn't you ...
5 years, 11 months ago (2015-01-13 08:52:45 UTC) #10
perkj_chrome
I meant that we could delete the method MediaStreamDescriptor.setEnded and MediaStreamDescription.ended() and let MediaStream.ended() return ...
5 years, 11 months ago (2015-01-13 09:01:31 UTC) #11
jiajia.qin
https://codereview.chromium.org/827673002/diff/40001/LayoutTests/fast/mediastream/MediaStream-add-remove-tracks.html File LayoutTests/fast/mediastream/MediaStream-add-remove-tracks.html (right): https://codereview.chromium.org/827673002/diff/40001/LayoutTests/fast/mediastream/MediaStream-add-remove-tracks.html#newcode146 LayoutTests/fast/mediastream/MediaStream-add-remove-tracks.html:146: getUserMedia({audio:true, video:true}, gotStream3); On 2015/01/13 08:24:31, perkj wrote: > ...
5 years, 11 months ago (2015-01-13 10:42:30 UTC) #12
hta - Chromium
My advice: Touch less. In particular, don't let ending touch the active state, and vice ...
5 years, 11 months ago (2015-01-14 14:12:02 UTC) #13
jiajia.qin
On 2015/01/14 14:12:02, hta - Chromium wrote: > My advice: Touch less. > > In ...
5 years, 11 months ago (2015-01-15 11:31:56 UTC) #14
hta - Chromium
lgtm
5 years, 11 months ago (2015-01-15 12:07:47 UTC) #15
perkj_chrome
lgtm No you only need an owner to review it too.... Thanks for you patient.
5 years, 11 months ago (2015-01-15 13:52:39 UTC) #16
perkj_chrome
tommi - do you want to/dare to or can reassign the review to jochen?
5 years, 11 months ago (2015-01-16 08:12:17 UTC) #17
tommi (sloooow) - chröme
lgtm
5 years, 11 months ago (2015-01-17 09:45:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/827673002/100001
5 years, 11 months ago (2015-01-17 09:46:20 UTC) #20
commit-bot: I haz the power
Failed to apply patch for Source/platform/mediastream/MediaStreamDescriptor.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 11 months ago (2015-01-17 09:46:35 UTC) #22
jiajia.qin
Add jochen to review 'Source/platform/mediastream' part.
5 years, 11 months ago (2015-01-19 01:24:33 UTC) #24
jiajia.qin
5 years, 11 months ago (2015-01-19 01:33:20 UTC) #26
jiajia.qin
Add jochen to review 'Source/platform/mediastream' part.
5 years, 11 months ago (2015-01-19 01:38:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/827673002/120001
5 years, 11 months ago (2015-01-19 02:12:49 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/24478)
5 years, 11 months ago (2015-01-19 02:20:11 UTC) #31
jochen (gone - plz use gerrit)
do you have a link to the intent to ship thread? It's a web exposed ...
5 years, 11 months ago (2015-01-19 12:57:05 UTC) #32
blink-reviews
Meta: Do we need an intent to ship every time we change something to conform ...
5 years, 11 months ago (2015-01-19 13:06:30 UTC) #33
jiajia.qin
On 2015/01/19 12:57:05, jochen (slow) wrote: > do you have a link to the intent ...
5 years, 11 months ago (2015-01-20 04:47:01 UTC) #34
jochen (gone - plz use gerrit)
On 2015/01/20 at 04:47:01, jiajia.qin wrote: > On 2015/01/19 12:57:05, jochen (slow) wrote: > > ...
5 years, 11 months ago (2015-01-20 19:17:31 UTC) #35
jiajia.qin
On 2015/01/20 19:17:31, jochen (slow) wrote: > On 2015/01/20 at 04:47:01, jiajia.qin wrote: > > ...
5 years, 11 months ago (2015-01-26 09:00:36 UTC) #36
jiajia.qin
jochen, the intent to implement has got 3 'lgtm'. Is it ok for you to ...
5 years, 10 months ago (2015-01-29 07:08:53 UTC) #37
jochen (gone - plz use gerrit)
lgtm!
5 years, 10 months ago (2015-01-29 15:16:18 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/827673002/120001
5 years, 10 months ago (2015-01-30 02:13:22 UTC) #40
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 02:17:27 UTC) #41
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189225

Powered by Google App Engine
This is Rietveld 408576698