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

Issue 2501623003: Implement MediaStreamTrack contentHint skeleton. (Closed)

Created:
4 years, 1 month ago by pbos
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews, haraken, mcasas+watch+mediastream_chromium.org, tommyw+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement MediaStreamTrack contentHint skeleton. No sinks yet handle MediaStreamTrack content hints, but they are exposed (as a runtime-enabled feature) and passed to audio/video sinks inside Chromium. BUG=chromium:653531 R=esprehn@chromium.org, guidou@chromium.org, jam@chromium.org Committed: https://crrev.com/a592cf9a183f3caa8f9df64c962277d57c9d5662 Cr-Commit-Position: refs/heads/master@{#438279}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : progress #

Patch Set 4 : skeleton done with enums instead of strings #

Patch Set 5 : add contentHint to global interface listing #

Patch Set 6 : add getter + fix windows #

Patch Set 7 : rebase #

Total comments: 2

Patch Set 8 : const chars #

Total comments: 14

Patch Set 9 : review feedback #

Patch Set 10 : audio -> video in comment #

Patch Set 11 : rebase #

Total comments: 2

Patch Set 12 : ContentHint -> ContentHintType #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -9 lines) Patch
M content/public/renderer/media_stream_sink.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_track.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_track.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_center.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_center.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_track.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-contentHint.html View 1 2 3 4 5 6 7 8 1 chunk +109 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +63 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.idl View 1 2 chunks +2 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamComponent.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +40 lines, -8 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaStreamCenter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaStreamTrack.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (41 generated)
pbos
rebase
4 years, 1 month ago (2016-11-15 18:22:58 UTC) #1
pbos
skeleton done with enums instead of strings
4 years ago (2016-12-07 19:58:19 UTC) #6
pbos
add contentHint to global interface listing
4 years ago (2016-12-07 20:04:34 UTC) #7
pbos
PTAL, I think this is ready for review. I'd like to do the part that ...
4 years ago (2016-12-07 20:12:32 UTC) #16
pbos
add getter + fix windows
4 years ago (2016-12-07 23:01:43 UTC) #19
pbos
rebase
4 years ago (2016-12-08 01:58:04 UTC) #24
esprehn
What's the plan for onion souping content/renderer/media so we don't need all of this plumbing?
4 years ago (2016-12-08 04:41:14 UTC) #27
Guido Urdaneta
On 2016/12/08 04:41:14, esprehn wrote: > What's the plan for onion souping content/renderer/media so we ...
4 years ago (2016-12-08 10:22:56 UTC) #31
Guido Urdaneta
https://codereview.chromium.org/2501623003/diff/120001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp File third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp (right): https://codereview.chromium.org/2501623003/diff/120001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp#newcode112 third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp:112: DEFINE_STATIC_LOCAL(String, speech, ("speech")); Do you really need these? You ...
4 years ago (2016-12-08 10:35:36 UTC) #32
pbos
const chars
4 years ago (2016-12-08 16:58:27 UTC) #33
pbos
PTAL https://codereview.chromium.org/2501623003/diff/120001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp File third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp (right): https://codereview.chromium.org/2501623003/diff/120001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp#newcode112 third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp:112: DEFINE_STATIC_LOCAL(String, speech, ("speech")); On 2016/12/08 10:35:36, Guido Urdaneta ...
4 years ago (2016-12-08 16:58:32 UTC) #34
Guido Urdaneta
lgtm
4 years ago (2016-12-08 17:04:48 UTC) #35
pbos
+R jam@ for content/public/renderer/media_stream_sink.h
4 years ago (2016-12-08 18:20:55 UTC) #40
jam
lgtm
4 years ago (2016-12-08 23:44:15 UTC) #43
esprehn
https://codereview.chromium.org/2501623003/diff/140001/content/renderer/media/media_stream_audio_track.cc File content/renderer/media/media_stream_audio_track.cc (right): https://codereview.chromium.org/2501623003/diff/140001/content/renderer/media/media_stream_audio_track.cc#newcode84 content/renderer/media/media_stream_audio_track.cc:84: DVLOG(1) << "MediaStreamAudioTrack@" << this << "::SetContentHint()"; Do you ...
4 years ago (2016-12-09 02:30:09 UTC) #44
pbos
review feedback
4 years ago (2016-12-09 17:34:41 UTC) #45
pbos
PTAL https://codereview.chromium.org/2501623003/diff/140001/content/renderer/media/media_stream_audio_track.cc File content/renderer/media/media_stream_audio_track.cc (right): https://codereview.chromium.org/2501623003/diff/140001/content/renderer/media/media_stream_audio_track.cc#newcode84 content/renderer/media/media_stream_audio_track.cc:84: DVLOG(1) << "MediaStreamAudioTrack@" << this << "::SetContentHint()"; On ...
4 years ago (2016-12-09 17:34:46 UTC) #46
pbos
audio -> video in comment
4 years ago (2016-12-09 22:33:49 UTC) #49
pbos
rebase
4 years ago (2016-12-13 16:19:22 UTC) #50
esprehn
lgtm https://codereview.chromium.org/2501623003/diff/200001/third_party/WebKit/public/platform/WebMediaStreamTrack.h File third_party/WebKit/public/platform/WebMediaStreamTrack.h (right): https://codereview.chromium.org/2501623003/diff/200001/third_party/WebKit/public/platform/WebMediaStreamTrack.h#newcode93 third_party/WebKit/public/platform/WebMediaStreamTrack.h:93: BLINK_PLATFORM_EXPORT ContentHint contentHint() const; Due to the big ...
4 years ago (2016-12-13 18:24:25 UTC) #55
pbos
ContentHint -> ContentHintType
4 years ago (2016-12-13 19:10:34 UTC) #56
pbos
https://codereview.chromium.org/2501623003/diff/200001/third_party/WebKit/public/platform/WebMediaStreamTrack.h File third_party/WebKit/public/platform/WebMediaStreamTrack.h (right): https://codereview.chromium.org/2501623003/diff/200001/third_party/WebKit/public/platform/WebMediaStreamTrack.h#newcode93 third_party/WebKit/public/platform/WebMediaStreamTrack.h:93: BLINK_PLATFORM_EXPORT ContentHint contentHint() const; On 2016/12/13 18:24:25, esprehn wrote: ...
4 years ago (2016-12-13 19:11:06 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2501623003/220001
4 years ago (2016-12-13 19:11:43 UTC) #60
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years ago (2016-12-13 21:30:45 UTC) #63
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/a592cf9a183f3caa8f9df64c962277d57c9d5662 Cr-Commit-Position: refs/heads/master@{#438279}
4 years ago (2016-12-13 21:32:23 UTC) #65
mcasas
4 years ago (2016-12-13 21:58:08 UTC) #67
Message was sent while issue was closed.
https://codereview.chromium.org/2501623003/diff/220001/third_party/WebKit/Sou...
File third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.idl (right):

https://codereview.chromium.org/2501623003/diff/220001/third_party/WebKit/Sou...
third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.idl:45:
[RuntimeEnabled=MediaStreamTrackContentHint] attribute DOMString contentHint;
This should be in a file on its own since [1]
defines a partial interface. Please add a link 
to the wicg spec in that file. It's fine to do it
in a follow-up patch.


[1] https://wicg.github.io/mst-content-hint/#extension-to-mediastreamtrack

Powered by Google App Engine
This is Rietveld 408576698