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

Issue 2235473002: Notify WebMediaPlayer when HTML video enters full screen. (Closed)

Created:
4 years, 4 months ago by xjz
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, kinuko+watch, mlamouri+watch-blink_chromium.org, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notify WebMediaPlayer when HTML video enters full screen. In immersive video playback scenario, the tab mirroring efficiency and quality can be improved by bypassing the decoding, local rendering, and real-time encoding process. WebMediaPlayer will stop the normal renderer in this case, and switch to a remoting renderer which will send the demuxed stream directly to browser, and then transmit to the Cast receiver over network. In order to switch between the normal and remoting renderer, WebMediaPlayer needs to know when to enter/exit immersive video playback scenario. A good indicator for this is that the video enters/exits full screen. Therefore, WebMediaPlayer needs to be notified when video enters/exits full screen, no matter what the full screen element is. Original WIP CL: https://codereview.chromium.org/2204673004/

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -1 line) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FullscreenController.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FullscreenController.cpp View 4 chunks +22 lines, -0 lines 2 comments Download
M third_party/WebKit/public/platform/WebMediaPlayer.h View 1 chunk +5 lines, -0 lines 3 comments Download

Messages

Total messages: 8 (3 generated)
xjz
mlamouri@: PTAL changes on third_party/WebKit/Source/core/html/* aelias@: PTAL changes on third_party/WebKit/Source/web/* and third_party/WebKit/public/platform/WebMediaPlayer.h Verified with YouTube, ...
4 years, 4 months ago (2016-08-09 22:52:52 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/public/platform/WebMediaPlayer.h File third_party/WebKit/public/platform/WebMediaPlayer.h (right): https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/public/platform/WebMediaPlayer.h#newcode207 third_party/WebKit/public/platform/WebMediaPlayer.h:207: virtual void updateMediaInFullscreen(bool isFullscreen) {} Please file a BUG= ...
4 years, 4 months ago (2016-08-10 01:14:59 UTC) #5
fs
https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/Source/web/FullscreenController.cpp File third_party/WebKit/Source/web/FullscreenController.cpp (right): https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/Source/web/FullscreenController.cpp#newcode73 third_party/WebKit/Source/web/FullscreenController.cpp:73: TagCollection* collection = element->getElementsByTagName("video"); Drive-by: You should be able ...
4 years, 4 months ago (2016-08-10 17:30:13 UTC) #6
xjz
https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/Source/web/FullscreenController.cpp File third_party/WebKit/Source/web/FullscreenController.cpp (right): https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/Source/web/FullscreenController.cpp#newcode73 third_party/WebKit/Source/web/FullscreenController.cpp:73: TagCollection* collection = element->getElementsByTagName("video"); On 2016/08/10 17:30:13, fs (OoO ...
4 years, 4 months ago (2016-08-10 21:33:30 UTC) #7
aelias_OOO_until_Jul13
4 years, 4 months ago (2016-08-10 21:55:12 UTC) #8
https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/public/p...
File third_party/WebKit/public/platform/WebMediaPlayer.h (right):

https://codereview.chromium.org/2235473002/diff/1/third_party/WebKit/public/p...
third_party/WebKit/public/platform/WebMediaPlayer.h:207: virtual void
updateMediaInFullscreen(bool isFullscreen) {}
On 2016/08/10 at 21:33:29, xjz wrote:
> There is no private branch. The other part should be in WebMediaPlayer, which
is not finalized yet. The design doc is still under working. Maybe please hold
off the review of this CL first. I'll update when the design doc is available.
Thanks!

Good to hear, thanks!  Please ping me again when the patch that makes use of it
is uploaded.  (I like to review code end-to-end to get a better perspective and
possibly suggest cross-cutting changes.)

Powered by Google App Engine
This is Rietveld 408576698