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

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)

Created:
4 years ago by xjz
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, mlamouri+watch-blink_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Detect change on video/viewport intersection when rendered remotely. Peoriodically (every 1s) check whether video/viewport intersection is changed when video is rendered remotely. BUG=643964 Committed: https://crrev.com/af29d4183dd123c234c142edbb818180ce0529ab Cr-Commit-Position: refs/heads/master@{#438980}

Patch Set 1 #

Patch Set 2 : Rebase only. #

Patch Set 3 : Track intersection change only when remote sink is available. #

Patch Set 4 : Add API to WebMediaPlayerClient. #

Total comments: 10

Patch Set 5 : Use single timer to check viewport intersection change. Update tests. #

Total comments: 4

Patch Set 6 : Addressed ojan's comment. #

Total comments: 7

Patch Set 7 : Renaming. #

Patch Set 8 : Rebased. #

Total comments: 2

Patch Set 9 : Add comments. #

Total comments: 4

Patch Set 10 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -7 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M media/remoting/remoting_renderer_controller.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M media/remoting/remoting_renderer_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 5 chunks +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/MediaElementFillingViewportTest.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayer.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebMediaPlayerClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (20 generated)
xjz
This is a follow-up CL to detect video/viewport intersection change when video is paused. Adds ...
4 years ago (2016-12-08 00:07:53 UTC) #2
szager1
lgtm grumble grumble... tests... grumble grumble
4 years ago (2016-12-08 00:18:59 UTC) #3
Z_DONOTUSE
Is the goal here to stop casting when the video goes offscreen, start casting when ...
4 years ago (2016-12-08 00:43:27 UTC) #5
xjz
On 2016/12/08 00:43:27, Z_DONOTUSE wrote: > Is the goal here to stop casting when the ...
4 years ago (2016-12-08 01:21:00 UTC) #6
Z_DONOTUSE
On 2016/12/08 at 01:21:00, xjz wrote: > On 2016/12/08 00:43:27, Z_DONOTUSE wrote: > > Is ...
4 years ago (2016-12-08 03:12:59 UTC) #7
xjz
On 2016/12/08 03:12:59, Z_DONOTUSE wrote: > On 2016/12/08 at 01:21:00, xjz wrote: > > On ...
4 years ago (2016-12-08 17:58:05 UTC) #8
miu
CIL...(3 possible solutions mentioned) On 2016/12/08 17:58:05, xjz wrote: > On 2016/12/08 03:12:59, Z_DONOTUSE wrote: ...
4 years ago (2016-12-08 20:57:55 UTC) #9
xjz
PTAL. PS#3 only tracks the intersection with viewport when we are in mirroring/remoting. Tests are ...
4 years ago (2016-12-09 22:42:02 UTC) #13
xjz
PTAL PS#4. Thanks! Added an API to WebMediaPlayerClient to notify HTMLMediaElement when starts/stops mirroring (remoting).
4 years ago (2016-12-10 00:04:25 UTC) #14
miu
I like this approach better: It will also allow us to more easily plumb-in the ...
4 years ago (2016-12-10 02:18:37 UTC) #15
xjz
Addressed miu's comments. PTAL https://codereview.chromium.org/2556333002/diff/60001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2556333002/diff/60001/media/blink/webmediaplayer_impl.h#newcode224 media/blink/webmediaplayer_impl.h:224: void OnRemoteDisplayChanged(bool is_displayed_remotely); On 2016/12/10 ...
4 years ago (2016-12-12 18:58:45 UTC) #17
xjz
ping ojan and esprehn: Please see whether this approach (PS# 5) lgty. Thanks!
4 years ago (2016-12-12 20:33:25 UTC) #18
miu
PS5 lgtm.
4 years ago (2016-12-13 21:31:09 UTC) #19
miu
On 2016/12/13 21:31:09, miu wrote: > PS5 lgtm. Please update change description. The nice thing ...
4 years ago (2016-12-13 21:32:40 UTC) #20
xjz
On 2016/12/13 21:32:40, miu wrote: > On 2016/12/13 21:31:09, miu wrote: > > PS5 lgtm. ...
4 years ago (2016-12-13 21:40:20 UTC) #22
ojan
lgtm https://codereview.chromium.org/2556333002/diff/90001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2556333002/diff/90001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode131 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:131: constexpr double kCheckViewportIntersectionIntervalInSeconds = 1; Naming nit: Other ...
4 years ago (2016-12-14 00:39:08 UTC) #23
xjz
Thanks Ojan! Addressed your comment. esprehn: PTAL changes on third_party/WebKit/public/platform/WebMediaPlayerClient.h xhwang: PTAL on changes on ...
4 years ago (2016-12-14 00:55:05 UTC) #24
xhwang
lg with naming comments https://codereview.chromium.org/2556333002/diff/110001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2556333002/diff/110001/media/blink/webmediaplayer_impl.h#newcode224 media/blink/webmediaplayer_impl.h:224: void OnRemoteRenderingChanged(bool is_displayed_remotely); Do rendering ...
4 years ago (2016-12-14 18:11:41 UTC) #25
miu
https://codereview.chromium.org/2556333002/diff/110001/third_party/WebKit/public/platform/WebMediaPlayerClient.h File third_party/WebKit/public/platform/WebMediaPlayerClient.h (right): https://codereview.chromium.org/2556333002/diff/110001/third_party/WebKit/public/platform/WebMediaPlayerClient.h#newcode97 third_party/WebKit/public/platform/WebMediaPlayerClient.h:97: virtual void enableMonitorViewportIntersection(bool) {} On 2016/12/14 18:11:41, xhwang wrote: ...
4 years ago (2016-12-14 19:15:50 UTC) #26
ojan
https://codereview.chromium.org/2556333002/diff/110001/third_party/WebKit/public/platform/WebMediaPlayerClient.h File third_party/WebKit/public/platform/WebMediaPlayerClient.h (right): https://codereview.chromium.org/2556333002/diff/110001/third_party/WebKit/public/platform/WebMediaPlayerClient.h#newcode97 third_party/WebKit/public/platform/WebMediaPlayerClient.h:97: virtual void enableMonitorViewportIntersection(bool) {} On 2016/12/14 at 18:11:41, xhwang ...
4 years ago (2016-12-14 21:00:56 UTC) #27
xjz
Addressed xhwang's comments. PTAL. https://codereview.chromium.org/2556333002/diff/110001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2556333002/diff/110001/media/blink/webmediaplayer_impl.h#newcode224 media/blink/webmediaplayer_impl.h:224: void OnRemoteRenderingChanged(bool is_displayed_remotely); On 2016/12/14 ...
4 years ago (2016-12-15 00:01:41 UTC) #28
xhwang
https://codereview.chromium.org/2556333002/diff/150001/third_party/WebKit/public/platform/WebMediaPlayerClient.h File third_party/WebKit/public/platform/WebMediaPlayerClient.h (right): https://codereview.chromium.org/2556333002/diff/150001/third_party/WebKit/public/platform/WebMediaPlayerClient.h#newcode97 third_party/WebKit/public/platform/WebMediaPlayerClient.h:97: virtual void activateViewportIntersectionMonitoring(bool) {} Sorry for the delay. To ...
4 years ago (2016-12-15 04:10:23 UTC) #33
xjz
Addressed xhwang's comments. PTAL https://codereview.chromium.org/2556333002/diff/150001/third_party/WebKit/public/platform/WebMediaPlayerClient.h File third_party/WebKit/public/platform/WebMediaPlayerClient.h (right): https://codereview.chromium.org/2556333002/diff/150001/third_party/WebKit/public/platform/WebMediaPlayerClient.h#newcode97 third_party/WebKit/public/platform/WebMediaPlayerClient.h:97: virtual void activateViewportIntersectionMonitoring(bool) {} On ...
4 years ago (2016-12-15 20:00:33 UTC) #34
esprehn
lgtm
4 years ago (2016-12-15 20:04:13 UTC) #37
xhwang
lgtm % nits https://codereview.chromium.org/2556333002/diff/170001/third_party/WebKit/public/platform/WebMediaPlayer.h File third_party/WebKit/public/platform/WebMediaPlayer.h (right): https://codereview.chromium.org/2556333002/diff/170001/third_party/WebKit/public/platform/WebMediaPlayer.h#newcode267 third_party/WebKit/public/platform/WebMediaPlayer.h:267: // HTMLMediaElement::activateViewportIntersectionMonitoring(). s/HTMLMediaElement/WMPClient.. https://codereview.chromium.org/2556333002/diff/170001/third_party/WebKit/public/platform/WebMediaPlayerClient.h File third_party/WebKit/public/platform/WebMediaPlayerClient.h ...
4 years ago (2016-12-15 20:31:11 UTC) #38
xjz
Thanks. Addressed comments. https://codereview.chromium.org/2556333002/diff/170001/third_party/WebKit/public/platform/WebMediaPlayer.h File third_party/WebKit/public/platform/WebMediaPlayer.h (right): https://codereview.chromium.org/2556333002/diff/170001/third_party/WebKit/public/platform/WebMediaPlayer.h#newcode267 third_party/WebKit/public/platform/WebMediaPlayer.h:267: // HTMLMediaElement::activateViewportIntersectionMonitoring(). On 2016/12/15 20:31:11, xhwang ...
4 years ago (2016-12-15 20:42:37 UTC) #39
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/2556333002/190001
4 years ago (2016-12-15 20:43:41 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/357436)
4 years ago (2016-12-15 23:18:13 UTC) #44
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/2556333002/190001
4 years ago (2016-12-15 23:29:30 UTC) #46
commit-bot: I haz the power
Committed patchset #10 (id:190001)
4 years ago (2016-12-16 01:53:15 UTC) #49
commit-bot: I haz the power
4 years ago (2016-12-16 01:57:20 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/af29d4183dd123c234c142edbb818180ce0529ab
Cr-Commit-Position: refs/heads/master@{#438980}

Powered by Google App Engine
This is Rietveld 408576698