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

Issue 2532233003: [Video] Add dummy video/audio tracks inactive to select them later. (Closed)

Created:
4 years ago by whywhat
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, haraken, mlamouri+watch-blink_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Video] Add dummy video/audio tracks inactive to select them later. Also relax some DCHECKs w.r.t the MediaTracks API being enabled. BUG=669159 TEST=manual + existing tests. Committed: https://crrev.com/9ff62f749846d5550a3f90abff959e0745afba5a Cr-Commit-Position: refs/heads/master@{#435437}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Extracted checks into HTMLMediaElement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -18 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 4 chunks +15 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/MediaSource.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp View 1 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
whywhat
PTaL
4 years ago (2016-11-28 20:42:17 UTC) #4
whywhat
+Chris for MediaStream/SourceBuffer
4 years ago (2016-11-29 21:19:22 UTC) #8
chcunningham
lgtm
4 years ago (2016-11-29 22:35:57 UTC) #9
chcunningham
nit https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode287 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:287: bool hasAudioVideoTracks() { You can make this a ...
4 years ago (2016-11-29 22:39:18 UTC) #10
chcunningham
On 2016/11/29 22:39:18, chcunningham wrote: > nit > > https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp > File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): > ...
4 years ago (2016-11-29 22:40:28 UTC) #11
mlamouri (slow - plz ping)
lgtm - should servok@ have a look at this? https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode287 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:287: ...
4 years ago (2016-11-30 09:34:00 UTC) #12
whywhat
Extracted checks into HTMLMediaElement
4 years ago (2016-11-30 20:43:26 UTC) #13
whywhat
https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2532233003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode287 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:287: bool hasAudioVideoTracks() { On 2016/11/30 at 09:34:00, mlamouri wrote: ...
4 years ago (2016-11-30 20:45:39 UTC) #14
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/2532233003/20001
4 years ago (2016-11-30 20:46:13 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-30 22:06:36 UTC) #19
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9ff62f749846d5550a3f90abff959e0745afba5a Cr-Commit-Position: refs/heads/master@{#435437}
4 years ago (2016-11-30 22:09:34 UTC) #21
servolk
4 years ago (2016-12-05 19:55:43 UTC) #22
Message was sent while issue was closed.
On 2016/11/30 22:09:34, commit-bot: I haz the power wrote:
> Patchset 2 (id:??) landed as
> https://crrev.com/9ff62f749846d5550a3f90abff959e0745afba5a
> Cr-Commit-Position: refs/heads/master@{#435437}

Sorry for the delay, I was OOO and didn't get a chance to look at this earlier.
TBH I'm not sure this CL actually fixes the issue. Because the DCHECK in
crbug.com/669159 has nothing to do with track selected/deselected status. It's
actually about not being able to map selected video track id to a DemuxerStream
object, since the video track id wasn't found in the
ChunkDemuxer::track_id_to_demux_stream_map_. The track id must be in that map
regardless of whether or not the video track is selected.
I'd love to help with investigating this issue, but so far I haven't been able
to reproduce it on Chromium master ToT, even after reverting commit
9ff62f749846d5550a3f90abff959e0745afba5a and running with
--enable-features=BackgroundVideoTrackOptimization flag, which causes the
background video track to be disabled/deselected (which is actually happening,
I've confirmed via chrome://media-internals and looking at the logs).
If adding new audio/video tracks in the initial selected state does indeed
somehow cause that DCHECK, then let's try to create a unit test that would
demonstrate the bad behavior.

Powered by Google App Engine
This is Rietveld 408576698