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

Issue 2411553003: Notify WebMediaPlayer when its ancestor enters/exists fullscreen. (Closed)

Created:
4 years, 2 months ago by xjz
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, kinuko+watch, mlamouri+watch-blink_chromium.org, Srirama, RyanS
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notify WebMediaPlayer when its ancestor enters/exists fullscreen. Inform the WebMediaPlayer when its ancestor enters fullscreen and the video covers most of the window. BUG=643964

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebased. Add FullscreenObserver. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -4 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.h View 1 4 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Fullscreen.cpp View 1 3 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 4 chunks +23 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 1 chunk +22 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayer.h View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (19 generated)
xjz
This CL just includes the full screen related changes from original one: https://codereview.chromium.org/2389473002/ PTAL. foolip@: ...
4 years, 2 months ago (2016-10-11 01:24:48 UTC) #4
foolip
https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode800 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:800: mediaPlayer->enteredFullscreen(); Does the case where the media element itself ...
4 years, 2 months ago (2016-10-11 09:37:13 UTC) #5
foolip
Since we are talking about a heuristic here, is it already possible for web pages ...
4 years, 2 months ago (2016-10-11 09:42:39 UTC) #9
foolip
+ojan@, since I think this some of the features of an intervention, and ojan@ has ...
4 years, 2 months ago (2016-10-11 09:43:23 UTC) #11
xjz
Thanks foolip@. PTAL https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode800 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:800: mediaPlayer->enteredFullscreen(); On 2016/10/11 09:37:13, foolip wrote: ...
4 years, 2 months ago (2016-10-11 19:27:26 UTC) #12
xjz
On 2016/10/11 09:42:39, foolip wrote: > Since we are talking about a heuristic here, is ...
4 years, 2 months ago (2016-10-11 19:32:54 UTC) #13
xjz
On 2016/10/11 09:43:23, foolip wrote: > +ojan@, since I think this some of the features ...
4 years, 2 months ago (2016-10-11 19:39:43 UTC) #14
esprehn
I really don't want to add this whole document traversing code. I feel like part ...
4 years, 2 months ago (2016-10-11 21:40:04 UTC) #15
foolip
https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode800 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:800: mediaPlayer->enteredFullscreen(); On 2016/10/11 19:27:25, xjz wrote: > On 2016/10/11 ...
4 years, 2 months ago (2016-10-12 11:51:42 UTC) #16
foolip
On 2016/10/11 21:40:04, esprehn wrote: > I really don't want to add this whole document ...
4 years, 2 months ago (2016-10-12 11:59:17 UTC) #17
foolip
mlamouri@ avayvod@ ^^^
4 years, 2 months ago (2016-10-12 11:59:46 UTC) #19
whywhat
On 2016/10/12 at 11:59:46, foolip wrote: > mlamouri@ avayvod@ ^^^ AFAIK, media remoting is currently ...
4 years, 2 months ago (2016-10-12 14:30:59 UTC) #20
xjz
https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/2411553003/diff/1/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode800 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:800: mediaPlayer->enteredFullscreen(); On 2016/10/12 11:51:42, foolip wrote: > On 2016/10/11 ...
4 years, 2 months ago (2016-10-12 17:40:57 UTC) #21
xjz
On 2016/10/12 11:59:17, foolip wrote: > On 2016/10/11 21:40:04, esprehn wrote: > > I really ...
4 years, 2 months ago (2016-10-12 17:42:05 UTC) #22
xjz
On 2016/10/12 14:30:59, whywhat wrote: > On 2016/10/12 at 11:59:46, foolip wrote: > > mlamouri@ ...
4 years, 2 months ago (2016-10-12 17:43:50 UTC) #23
whywhat
On 2016/10/12 at 17:43:50, xjz wrote: > On 2016/10/12 14:30:59, whywhat wrote: > > On ...
4 years, 2 months ago (2016-10-13 02:12:12 UTC) #25
esprehn
Let's just keep a set of video elements and traverse up the tree. Video elements ...
4 years, 2 months ago (2016-10-13 03:49:43 UTC) #26
esprehn
Let's just keep a set of video elements and traverse up the tree. Video elements ...
4 years, 2 months ago (2016-10-13 03:49:43 UTC) #27
ojan
Regarding the feature, I think we should have a discussion outside of this codereview about ...
4 years, 2 months ago (2016-10-13 04:26:53 UTC) #28
whywhat
On 2016/10/13 at 04:26:53, ojan wrote: > Regarding the feature, I think we should have ...
4 years, 2 months ago (2016-10-13 15:22:12 UTC) #29
xjz
Thanks all for comments/suggestions! PS#2 adds a FullscreenObserver as avayvod@ suggested. Each HTMLMediaElement is registered ...
4 years, 2 months ago (2016-10-17 23:39:19 UTC) #38
foolip
On 2016/10/12 17:42:05, xjz wrote: > On 2016/10/12 11:59:17, foolip wrote: > > On 2016/10/11 ...
4 years, 2 months ago (2016-10-18 13:01:24 UTC) #41
foolip
On 2016/10/13 15:22:12, whywhat wrote: > On 2016/10/13 at 04:26:53, ojan wrote: > > Regarding ...
4 years, 2 months ago (2016-10-18 13:10:31 UTC) #42
ojan
On 2016/10/18 at 13:10:31, foolip wrote: > On 2016/10/13 15:22:12, whywhat wrote: > > On ...
4 years, 2 months ago (2016-10-18 23:46:49 UTC) #43
miu
On 2016/10/18 23:46:49, ojan wrote: > That said, I think codereview is not the best ...
4 years, 2 months ago (2016-10-19 05:36:27 UTC) #44
xjz
4 years, 1 month ago (2016-11-02 18:41:53 UTC) #45
On 2016/10/19 05:36:27, miu wrote:
> On 2016/10/18 23:46:49, ojan wrote:
> > That said, I think codereview is not the best place to discuss high-level
> > product things like this, which is why I was asking for a meeting. We could
> > start over email if you prefer that.
> 
> I just sent an e-mail to everyone to clear up some issues/misconceptions in
the
> code review discussion here. Hopefully, you'll all agree the scoping here is
> mainly browser-oriented (rather than web-platform-oriented); and that we can
> proceed with this code review. ;-)

As per discussion, we are not going to use the "Entered/ExitedFullscreen" event
as a signal 
for turning Media Remoting on/off. Instead, we may use the "90% viewport
intersection" heuristic.
So close this CL for now.

Powered by Google App Engine
This is Rietveld 408576698