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

Issue 1678523003: Implement InitSegmentReceived algorithm in blink (Closed)

Created:
4 years, 10 months ago by servolk
Modified:
4 years, 5 months ago
Reviewers:
foolip, wolenetz
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, philipj_slow, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, chcunningham
Base URL:
https://chromium.googlesource.com/chromium/src.git@blink-sb-audiotrack
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement InitSegmentReceived algorithm in blink This CL begins moving MSE init segment received algorithm implementation to blink level, so that it could be shared across different implementations (e.g. between Chrome and Opera). The old init segment algorithm is in MediaSourceState::OnNewConfigs, and for now it needs to be kept, since it does other important things that must be done on the Chromium media pipeline level atm (e.g. creating track buffers and demuxer streams). BUG=620881 Committed: https://crrev.com/efae0344beeff450bbd5c9d1bff69c3d5d6f7104 Cr-Commit-Position: refs/heads/master@{#403286}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : update #

Patch Set 8 : Set track.sourceBuffer #

Patch Set 9 : Fix for when av tracks feature is disabled #

Patch Set 10 : Added track id checks #

Patch Set 11 : buildfix #

Patch Set 12 : Minor updates #

Patch Set 13 : Implement defaultTrackLanguage alg, use it for track language selection #

Patch Set 14 : Added defaultTrackLabel algorithm, use it for track labels #

Patch Set 15 : Added layout test for init segment algorithm + updated some comments #

Patch Set 16 : rebase #

Patch Set 17 : Rebase + update #

Total comments: 30

Patch Set 18 : CR feedback #

Patch Set 19 : refactoring #

Patch Set 20 : rebase #

Total comments: 11

Patch Set 21 : Updated test #

Patch Set 22 : rebase #

Patch Set 23 : rebase #

Patch Set 24 : rebase #

Patch Set 25 : Extend tests #

Total comments: 6

Patch Set 26 : Added track language tests #

Total comments: 1

Patch Set 27 : typo #

Patch Set 28 : rebase #

Total comments: 13

Patch Set 29 : Don't check track ids in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -57 lines) Patch
M media/blink/websourcebuffer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-avtracks.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +112 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/media/resources/media-source/webm/test.webm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Binary file 0 comments Download
M third_party/WebKit/Source/modules/mediasource/SourceBuffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +214 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/TrackDefault.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/TrackDefault.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebSourceBufferClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (17 generated)
servolk
4 years, 10 months ago (2016-02-23 01:38:03 UTC) #3
philipj_slow
The bots look very unhappy. There's a strange change in webexposed/global-interface-listing-expected.txt that I don't quite ...
4 years, 10 months ago (2016-02-23 03:48:22 UTC) #4
wolenetz
On 2016/02/23 03:48:22, philipj_sick_March30 wrote: > The bots look very unhappy. There's a strange change ...
4 years, 8 months ago (2016-03-30 20:28:18 UTC) #5
servolk
On 2016/03/30 20:28:18, wolenetz wrote: > On 2016/02/23 03:48:22, philipj_sick_March30 wrote: > > The bots ...
4 years, 8 months ago (2016-04-22 18:28:52 UTC) #6
philipj_slow
This is my last week at Opera, so I probably won't have time to see ...
4 years, 8 months ago (2016-04-25 13:03:42 UTC) #7
servolk
https://codereview.chromium.org/1678523003/diff/320001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp File third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp (right): https://codereview.chromium.org/1678523003/diff/320001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp#newcode505 third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp:505: const TrackDefault* SourceBuffer::getTrackDefaultHelper(const AtomicString& trackType, const AtomicString& byteStreamTrackID) const ...
4 years, 8 months ago (2016-04-25 20:29:09 UTC) #8
philipj_slow
I'll leave the rest of this review to wolenetz@
4 years, 8 months ago (2016-04-26 14:34:32 UTC) #10
wolenetz
On 2016/04/26 14:34:32, philipj_slow wrote: > I'll leave the rest of this review to wolenetz@ ...
4 years, 7 months ago (2016-05-04 22:33:01 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1678523003/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1678523003/380001
4 years, 7 months ago (2016-05-04 22:33:35 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/208662)
4 years, 7 months ago (2016-05-04 22:56:27 UTC) #15
servolk
On 2016/05/04 22:56:27, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 7 months ago (2016-05-11 18:48:47 UTC) #16
wolenetz
On 2016/05/11 18:48:47, servolk wrote: > On 2016/05/04 22:56:27, commit-bot: I haz the power wrote: ...
4 years, 7 months ago (2016-05-12 20:28:29 UTC) #17
wolenetz
Here is a first round of comments. I'll follow up tomorrow with more in-depth review ...
4 years, 7 months ago (2016-05-12 20:42:04 UTC) #18
wolenetz
Per recommendation from servolk@, further CR is pending his (in-progress) rework and landing of https://codereview.chromium.org/1922333002/ ...
4 years, 6 months ago (2016-06-07 20:37:52 UTC) #19
wolenetz
On 2016/06/07 20:37:52, wolenetz_slow_reviews wrote: > Per recommendation from servolk@, further CR is pending his ...
4 years, 6 months ago (2016-06-08 20:42:15 UTC) #20
wolenetz
On 2016/06/08 20:42:15, wolenetz wrote: > On 2016/06/07 20:37:52, wolenetz_slow_reviews wrote: > > Per recommendation ...
4 years, 6 months ago (2016-06-16 19:57:45 UTC) #21
servolk
On 2016/06/16 19:57:45, wolenetz wrote: > On 2016/06/08 20:42:15, wolenetz wrote: > > On 2016/06/07 ...
4 years, 6 months ago (2016-06-16 22:01:52 UTC) #23
wolenetz
https://codereview.chromium.org/1678523003/diff/480001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp File third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp (right): https://codereview.chromium.org/1678523003/diff/480001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp#newcode598 third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp:598: if (!trackDefaultWithEmptyBytestreamId && trackDefault->byteStreamTrackID() == "") { nit: {} ...
4 years, 6 months ago (2016-06-16 22:15:34 UTC) #24
wolenetz
On 2016/06/16 22:15:34, wolenetz wrote: > https://codereview.chromium.org/1678523003/diff/480001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp > File third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp (right): > > https://codereview.chromium.org/1678523003/diff/480001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp#newcode598 > ...
4 years, 6 months ago (2016-06-16 23:00:04 UTC) #25
wolenetz
On 2016/06/16 23:00:04, wolenetz wrote: > On 2016/06/16 22:15:34, wolenetz wrote: > > > https://codereview.chromium.org/1678523003/diff/480001/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp ...
4 years, 6 months ago (2016-06-18 00:33:48 UTC) #26
servolk
https://codereview.chromium.org/1678523003/diff/380001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html (right): https://codereview.chromium.org/1678523003/diff/380001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html#newcode7 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html:7: <link rel="stylesheet" href="/w3c/resources/testharness.css"> On 2016/05/12 20:42:04, wolenetz wrote: > ...
4 years, 6 months ago (2016-06-21 17:44:52 UTC) #27
servolk
https://codereview.chromium.org/1678523003/diff/500001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-avtracks.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-avtracks.html (right): https://codereview.chromium.org/1678523003/diff/500001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-avtracks.html#newcode25 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-avtracks.html:25: assert_equals(sourceBuffer.videoTracks[0].language, "", "videoTrack.language"); Note: I've updated the default test.webm ...
4 years, 6 months ago (2016-06-21 17:46:39 UTC) #28
servolk
4 years, 6 months ago (2016-06-21 21:59:22 UTC) #30
wolenetz
I haven't forgotten this :) https://codereview.chromium.org/2076673005/ is nearing landing (hopefully it'll get there tomorrow). Perhaps ...
4 years, 6 months ago (2016-06-21 23:47:44 UTC) #31
servolk
On 2016/06/21 23:47:44, wolenetz wrote: > I haven't forgotten this :) > > https://codereview.chromium.org/2076673005/ is ...
4 years, 6 months ago (2016-06-22 23:32:06 UTC) #32
servolk
On 2016/06/22 23:32:06, servolk wrote: > On 2016/06/21 23:47:44, wolenetz wrote: > > I haven't ...
4 years, 6 months ago (2016-06-22 23:32:40 UTC) #34
foolip
third_party/WebKit/public/platform/WebSourceBufferClient.h rs lgtm, I haven't revisted any of the old discussion.
4 years, 6 months ago (2016-06-23 12:08:16 UTC) #35
chcunningham
wolenetz and I have agreed to divide and conquer. He'll take this one; moving me ...
4 years, 6 months ago (2016-06-24 23:44:48 UTC) #36
wolenetz
lgtm % making the unique ID generation verification less specific to Chrome in the layout ...
4 years, 5 months ago (2016-06-27 19:31:07 UTC) #38
wolenetz
On 2016/06/27 19:31:07, wolenetz wrote: > lgtm % making the unique ID generation verification less ...
4 years, 5 months ago (2016-06-27 19:34:59 UTC) #39
wolenetz
On 2016/06/27 19:34:59, wolenetz wrote: > On 2016/06/27 19:31:07, wolenetz wrote: > > lgtm % ...
4 years, 5 months ago (2016-06-29 21:23:21 UTC) #40
servolk
On 2016/06/29 21:23:21, wolenetz wrote: > On 2016/06/27 19:34:59, wolenetz wrote: > > On 2016/06/27 ...
4 years, 5 months ago (2016-06-29 21:47:05 UTC) #41
servolk
https://codereview.chromium.org/1678523003/diff/540001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html (right): https://codereview.chromium.org/1678523003/diff/540001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html#newcode4 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-initsegmentreceived-alg.html:4: <script src="/w3c/resources/testharness.js"></script> On 2016/06/27 19:31:06, wolenetz wrote: > nits: ...
4 years, 5 months ago (2016-06-29 22:23:25 UTC) #42
servolk
On 2016/06/27 19:34:59, wolenetz wrote: > On 2016/06/27 19:31:07, wolenetz wrote: > > lgtm % ...
4 years, 5 months ago (2016-06-29 22:24:55 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1678523003/560001
4 years, 5 months ago (2016-06-30 17:59:38 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/237636)
4 years, 5 months ago (2016-06-30 18:45:23 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1678523003/560001
4 years, 5 months ago (2016-06-30 18:46:44 UTC) #49
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 19:18:58 UTC) #51
wolenetz
LGTM. test.mp4: please file a follow-up crbug to check that your tests work with mp4 ...
4 years, 5 months ago (2016-06-30 21:03:06 UTC) #52
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/1678523003/560001
4 years, 5 months ago (2016-06-30 21:07:02 UTC) #55
commit-bot: I haz the power
Committed patchset #29 (id:560001)
4 years, 5 months ago (2016-06-30 21:13:03 UTC) #57
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 21:13:05 UTC) #58
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 21:14:45 UTC) #60
Message was sent while issue was closed.
Patchset 29 (id:??) landed as
https://crrev.com/efae0344beeff450bbd5c9d1bff69c3d5d6f7104
Cr-Commit-Position: refs/heads/master@{#403286}

Powered by Google App Engine
This is Rietveld 408576698