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

Issue 545933002: Implement HTMLMediaElement::srcObject. (Closed)

Created:
6 years, 3 months ago by perkj_chrome
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, oilpan-reviews, nessy, tommyw+watchlist_chromium.org, vcarbune.chromium, Guido Urdaneta, hbos_chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement HTMLMediaElement::srcObject. This is a suggestion for how to implement the srcObject attribute of HTMLMediaElement. https://html.spec.whatwg.org/#htmlmediaelement This cl only address the case when the srcObject is a MediaStream but the design should be applicable for MediaSource and File as well. http://w3c.github.io/mediacapture-main/getusermedia.html#direct-assignment-to-media-elements BUG=387740

Patch Set 1 #

Patch Set 2 : New approach - with #includes that violate checkdeps rules #

Total comments: 4

Patch Set 3 : Rewrite where each MediaProvider module register a converter method. #

Total comments: 3

Patch Set 4 : Now uses Functional. #

Total comments: 34

Patch Set 5 : Rebase only #

Total comments: 2

Patch Set 6 : Addressed comments. #

Total comments: 21

Patch Set 7 : Addressed sof's comments. #

Total comments: 8

Patch Set 8 : Addressed sofs easy comments. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -52 lines) Patch
A LayoutTests/media/mediastream-srcobject.html View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A LayoutTests/media/mediastream-srcobject-expected.txt View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A Source/bindings/core/v8/custom/V8HTMLMediaElementCustom.cpp View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 2 comments Download
M Source/bindings/core/v8/custom/custom.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 4 chunks +8 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 6 chunks +97 lines, -47 lines 0 comments Download
M Source/core/html/HTMLMediaElement.idl View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
A Source/core/html/MediaProvider.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A Source/core/html/MediaProvider.cpp View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 2 comments Download
M Source/modules/mediastream/MediaStream.h View 1 2 4 chunks +7 lines, -0 lines 0 comments Download
M Source/modules/mediastream/MediaStream.cpp View 1 2 3 4 5 6 7 6 chunks +23 lines, -2 lines 2 comments Download

Messages

Total messages: 55 (7 generated)
perkj_chrome
Hej Here comes my first attempt on a blink cl ever. So please bare with ...
6 years, 3 months ago (2014-09-05 14:26:40 UTC) #2
philipj_slow
srcObject is now part of the HTML spec, so I think it should go in ...
6 years, 3 months ago (2014-09-05 22:41:54 UTC) #3
perkj_chrome
On 2014/09/05 22:41:54, philipj wrote: > srcObject is now part of the HTML spec, so ...
6 years, 3 months ago (2014-09-08 08:11:21 UTC) #4
philipj_slow
On 2014/09/08 08:11:21, perkj wrote: > On 2014/09/05 22:41:54, philipj wrote: > > srcObject is ...
6 years, 3 months ago (2014-09-08 14:41:03 UTC) #5
perkj_chrome
Thanks. I thought I should upload what I have worked on today and maybe you ...
6 years, 3 months ago (2014-09-08 18:45:43 UTC) #6
philipj_slow
+haraken, who knows a lot more about what is and is not allowed in custom ...
6 years, 3 months ago (2014-09-09 07:57:43 UTC) #8
haraken
bashi-san: Do you have a comment about the custom bindings? It's about a union type ...
6 years, 3 months ago (2014-09-09 08:06:02 UTC) #10
philipj_slow
https://codereview.chromium.org/545933002/diff/20001/Source/bindings/core/v8/custom/V8HTMLMediaElementCustom.cpp File Source/bindings/core/v8/custom/V8HTMLMediaElementCustom.cpp (right): https://codereview.chromium.org/545933002/diff/20001/Source/bindings/core/v8/custom/V8HTMLMediaElementCustom.cpp#newcode2 Source/bindings/core/v8/custom/V8HTMLMediaElementCustom.cpp:2: * Copyright (C) 2014 Google Inc. All rights reserved. ...
6 years, 3 months ago (2014-09-09 08:15:15 UTC) #11
bashi
On 2014/09/09 08:06:02, haraken wrote: > bashi-san: Do you have a comment about the custom ...
6 years, 3 months ago (2014-09-09 08:33:00 UTC) #12
tasak
On 2014/09/08 18:45:43, perkj wrote: > Implement MediaProvider in modules and add srcObject as partial ...
6 years, 3 months ago (2014-09-10 03:12:26 UTC) #13
tasak
On 2014/09/10 03:12:26, tasak wrote: > On 2014/09/08 18:45:43, perkj wrote: > > > Implement ...
6 years, 3 months ago (2014-09-10 03:14:46 UTC) #14
perkj_chrome
On 2014/09/10 03:14:46, tasak wrote: > On 2014/09/10 03:12:26, tasak wrote: > > On 2014/09/08 ...
6 years, 3 months ago (2014-09-10 09:41:54 UTC) #16
philipj_slow
Which module? This is a boundary-crossing concern that doesn't make sense in modules/mediastream/ or modules/mediasource/... ...
6 years, 3 months ago (2014-09-10 11:24:35 UTC) #17
jochen (gone - plz use gerrit)
maybe we should have a thread on blink-dev@ to come to a solution how to ...
6 years, 3 months ago (2014-09-10 11:31:27 UTC) #18
perkj_chrome
On 2014/09/10 11:31:27, jochen wrote: > maybe we should have a thread on blink-dev@ to ...
6 years, 3 months ago (2014-09-10 14:33:33 UTC) #19
philipj_slow
On 2014/09/10 14:33:33, perkj wrote: > On 2014/09/10 11:31:27, jochen wrote: > > maybe we ...
6 years, 3 months ago (2014-09-10 15:26:40 UTC) #20
perkj_chrome
On 2014/09/10 15:26:40, philipj wrote: > On 2014/09/10 14:33:33, perkj wrote: > > On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 16:38:16 UTC) #21
jochen (gone - plz use gerrit)
On 2014/09/10 at 16:38:16, perkj wrote: > On 2014/09/10 15:26:40, philipj wrote: > > On ...
6 years, 3 months ago (2014-09-11 12:29:36 UTC) #22
perkj_chrome
Hej How about this approach? Thanks all for your input so far. This patch uses ...
6 years, 3 months ago (2014-09-11 17:31:45 UTC) #23
philipj_slow
https://codereview.chromium.org/545933002/diff/40001/Source/core/html/MediaProvider.h File Source/core/html/MediaProvider.h (right): https://codereview.chromium.org/545933002/diff/40001/Source/core/html/MediaProvider.h#newcode46 Source/core/html/MediaProvider.h:46: virtual MediaProvider* getMediaProvider(const ScriptValue&) = 0; On 2014/09/11 17:31:45, ...
6 years, 3 months ago (2014-09-11 19:07:53 UTC) #24
perkj_chrome
ok- Something like this then. https://codereview.chromium.org/545933002/diff/60001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/545933002/diff/60001/Source/core/core.gypi#newcode220 Source/core/core.gypi:220: 'html/ImageData.idl', todo fix... https://codereview.chromium.org/545933002/diff/60001/Source/modules/mediastream/HTMLMediaElementMediaStream.idl ...
6 years, 3 months ago (2014-09-12 08:22:20 UTC) #26
philipj_slow
Sorry I haven't had time to review this today, I've had to prioritize https://codereview.chromium.org/552303006/ For ...
6 years, 3 months ago (2014-09-12 13:57:19 UTC) #27
perkj_chrome
A not so loud ping?
6 years, 3 months ago (2014-09-16 08:24:06 UTC) #28
philipj_slow
In the description, please point to https://html.spec.whatwg.org/#htmlmediaelement instead. If you could also update the description ...
6 years, 3 months ago (2014-09-16 12:51:56 UTC) #29
philipj_slow
Could you also rebase again? I'd like to apply it locally to look around, but ...
6 years, 3 months ago (2014-09-16 12:54:13 UTC) #30
philipj_slow
Feedback on HTMLMediaElement.*. I haven't looked at anything else in detail yet, but this is ...
6 years, 3 months ago (2014-09-16 13:39:51 UTC) #31
philipj_slow
https://codereview.chromium.org/545933002/diff/80001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/545933002/diff/80001/Source/core/html/HTMLMediaElement.cpp#newcode868 Source/core/html/HTMLMediaElement.cpp:868: enum Mode {Object, Attribute, Children}; Please keep the whitespace ...
6 years, 3 months ago (2014-09-17 09:25:39 UTC) #32
perkj_chrome
Thanks for your review. I addressed your comments and hope I did it correct. https://codereview.chromium.org/545933002/diff/60001/Source/core/core.gypi ...
6 years, 3 months ago (2014-09-17 19:26:14 UTC) #33
sof
Some Oilpan-focused feedback. https://codereview.chromium.org/545933002/diff/100001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/545933002/diff/100001/Source/core/html/HTMLMediaElement.cpp#newcode329 Source/core/html/HTMLMediaElement.cpp:329: , m_srcObject(std::nullptr_t()) m_srcObject(nullptr) https://codereview.chromium.org/545933002/diff/100001/Source/core/html/HTMLMediaElement.cpp#newcode978 Source/core/html/HTMLMediaElement.cpp:978: ContentType ...
6 years, 3 months ago (2014-09-18 07:33:17 UTC) #34
perkj_chrome
Thank you for your feedback. Do you think this is an ok solution? jochen, is ...
6 years, 3 months ago (2014-09-18 14:47:09 UTC) #35
sof
https://codereview.chromium.org/545933002/diff/100001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/545933002/diff/100001/Source/core/html/HTMLMediaElement.cpp#newcode978 Source/core/html/HTMLMediaElement.cpp:978: ContentType contentType((String())); On 2014/09/18 14:47:08, perkj wrote: > On ...
6 years, 3 months ago (2014-09-19 06:26:23 UTC) #37
perkj_chrome
As I said, I am a blink newbie so I am not confident when it ...
6 years, 3 months ago (2014-09-19 10:48:06 UTC) #38
sof
https://codereview.chromium.org/545933002/diff/120001/Source/core/html/HTMLMediaElement.h File Source/core/html/HTMLMediaElement.h (right): https://codereview.chromium.org/545933002/diff/120001/Source/core/html/HTMLMediaElement.h#newcode517 Source/core/html/HTMLMediaElement.h:517: RawPtrWillBeMember<MediaProvider> m_srcObject; On 2014/09/19 10:48:06, perkj wrote: > On ...
6 years, 3 months ago (2014-09-19 13:06:11 UTC) #39
haraken
I'm a bit behind the discussion on this. Sorry if the following comment doesn't make ...
6 years, 3 months ago (2014-09-20 08:52:20 UTC) #40
perkj_chrome
haraken, the problem with patchset 2 is the fact that MediaStream and MediSource are modules ...
6 years, 3 months ago (2014-09-24 11:39:39 UTC) #41
haraken
On 2014/09/24 11:39:39, perkj wrote: > haraken, the problem with patchset 2 is the fact ...
6 years, 3 months ago (2014-09-24 13:48:04 UTC) #42
tasak
So I would like to confirm: do you have any reason why MediaProvider.{h,cpp} is placed ...
6 years, 2 months ago (2014-09-25 09:38:47 UTC) #43
perkj_chrome
On 2014/09/25 09:38:47, tasak wrote: > So I would like to confirm: do you have ...
6 years, 2 months ago (2014-09-25 10:16:17 UTC) #44
philipj_slow
Is the idea a new mediaprovider module, or where would a HTMLMediaElementMediaStream.idl live? (Should that ...
6 years, 2 months ago (2014-09-25 14:25:21 UTC) #45
tasak
On 2014/09/25 14:25:21, philipj wrote: > Is the idea a new mediaprovider module, or where ...
6 years, 2 months ago (2014-09-29 07:46:53 UTC) #46
haraken
On 2014/09/29 07:46:53, tasak wrote: > On 2014/09/25 14:25:21, philipj wrote: > > Is the ...
6 years, 2 months ago (2014-09-29 07:50:02 UTC) #47
jochen (gone - plz use gerrit)
I think we should just move the media stuff to core/
6 years, 2 months ago (2014-09-30 08:16:39 UTC) #48
hta - Chromium
On 2014/09/30 08:16:39, jochen (slow) wrote: > I think we should just move the media ...
5 years, 9 months ago (2015-03-20 09:34:07 UTC) #49
jochen (gone - plz use gerrit)
Kentaro just sent around a proposal for how to go forward with modules, maybe this ...
5 years, 9 months ago (2015-03-20 14:46:43 UTC) #50
philipj_slow
This is the thread in question: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/5np2p7gTBS4
5 years, 9 months ago (2015-03-23 02:23:39 UTC) #51
philipj_slow
Peeking at the proposed architecture, it seems that the relevant bit does not change: modules ...
5 years, 9 months ago (2015-03-23 02:38:21 UTC) #52
Henrik Grunell
Per, can this be closed?
5 years, 2 months ago (2015-10-14 08:59:01 UTC) #53
hta - Chromium
5 years ago (2015-11-30 07:50:41 UTC) #55
adding hbos and guidou for context - we'll have to come back to this one Real
Soon.

Powered by Google App Engine
This is Rietveld 408576698