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

Issue 2640023008: Enabling autoplay and fullscreen for downloaded media (Closed)

Created:
3 years, 11 months ago by shaktisahu
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enabling autoplay and fullscreen for downloaded media For downloaded video, the desired behavior is to autoplay with fullscreen at the start. This CL enables the video to enter fullscreen by adding an event listener for onloadedmetadata. A web preference was added for triggering this feature. BUG=682848 Review-Url: https://codereview.chromium.org/2640023008 Cr-Commit-Position: refs/heads/master@{#452967} Committed: https://chromium.googlesource.com/chromium/src/+/f97f7538cc5be6da3145a830ff1a786f6c0bbf78

Patch Set 1 #

Patch Set 2 : Added the pref #

Patch Set 3 : rebase #

Patch Set 4 : Added a single pref #

Total comments: 6

Patch Set 5 : Removed flag for user gesture requirement #

Patch Set 6 : Changed to override pref from ContentBrowserClient #

Total comments: 16

Patch Set 7 : comments #

Total comments: 4

Patch Set 8 : dtrainor@ comments #

Total comments: 2

Patch Set 9 : removed include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -8 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 1 2 3 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 1 chunk +10 lines, -7 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.json5 View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaDocument.cpp View 1 2 3 4 5 6 7 5 chunks +39 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (20 generated)
shaktisahu
dtrainor@ - PTAL
3 years, 11 months ago (2017-01-20 00:20:51 UTC) #2
DaleCurtis
Why launch a MediaDocument versus a custom HTML page that can do all this?
3 years, 11 months ago (2017-01-20 00:34:15 UTC) #4
David Trainor- moved to gerrit
+mlamouri@ as we talked about this a bit last week. dalecurtis@: Yeah I think that's ...
3 years, 11 months ago (2017-01-20 17:59:13 UTC) #6
DaleCurtis
On 2017/01/20 at 17:59:13, dtrainor wrote: > +mlamouri@ as we talked about this a bit ...
3 years, 11 months ago (2017-01-20 18:06:16 UTC) #7
mlamouri (slow - plz ping)
dtrainor@ when we talked about this change, I suggested that maybe the auto-fullscreen could apply ...
3 years, 11 months ago (2017-01-23 00:37:33 UTC) #8
David Trainor- moved to gerrit
On 2017/01/20 18:06:16, DaleCurtis wrote: > On 2017/01/20 at 17:59:13, dtrainor wrote: > > +mlamouri@ ...
3 years, 11 months ago (2017-01-24 16:45:20 UTC) #9
David Trainor- moved to gerrit
On 2017/01/23 00:37:33, mlamouri wrote: > dtrainor@ when we talked about this change, I suggested ...
3 years, 11 months ago (2017-01-24 16:50:37 UTC) #10
mlamouri (slow - plz ping)
The general approach seems fine. However, instead of adding a "media_playback_fullscreen_by_default" can we have a ...
3 years, 10 months ago (2017-02-15 10:54:30 UTC) #11
DaleCurtis
Did the custom html page not work?
3 years, 10 months ago (2017-02-15 17:36:14 UTC) #12
shaktisahu
On 2017/02/15 17:36:14, DaleCurtis wrote: > Did the custom html page not work? Hi Dale ...
3 years, 10 months ago (2017-02-15 17:47:39 UTC) #13
shaktisahu
On 2017/02/15 17:36:14, DaleCurtis wrote: > Did the custom html page not work? Hi Dale ...
3 years, 10 months ago (2017-02-15 17:47:41 UTC) #14
shaktisahu
PTAL
3 years, 10 months ago (2017-02-16 23:37:24 UTC) #16
mlamouri (slow - plz ping)
https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc#newcode728 chrome/browser/android/tab_android.cc:728: prefs.user_gesture_required_for_media_playback = false; Is it needed? Can't you simply ...
3 years, 10 months ago (2017-02-17 10:01:43 UTC) #17
shaktisahu
https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc#newcode728 chrome/browser/android/tab_android.cc:728: prefs.user_gesture_required_for_media_playback = false; On 2017/02/17 10:01:43, mlamouri wrote: > ...
3 years, 10 months ago (2017-02-17 19:18:06 UTC) #18
mlamouri (slow - plz ping)
https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc#newcode730 chrome/browser/android/tab_android.cc:730: host->UpdateWebkitPreferences(prefs); On 2017/02/17 at 19:18:06, shaktisahu wrote: > On ...
3 years, 10 months ago (2017-02-20 11:31:50 UTC) #19
shaktisahu
On 2017/02/20 11:31:50, mlamouri wrote: > https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc > File chrome/browser/android/tab_android.cc (right): > > https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc#newcode730 > ...
3 years, 10 months ago (2017-02-21 07:02:40 UTC) #20
shaktisahu
https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/2640023008/diff/60001/chrome/browser/android/tab_android.cc#newcode730 chrome/browser/android/tab_android.cc:730: host->UpdateWebkitPreferences(prefs); On 2017/02/20 11:31:50, mlamouri wrote: > On 2017/02/17 ...
3 years, 10 months ago (2017-02-21 07:02:56 UTC) #21
mlamouri (slow - plz ping)
design sgtm, I have left comments on the implementation but we should be close now ...
3 years, 10 months ago (2017-02-21 11:33:03 UTC) #22
shaktisahu
https://codereview.chromium.org/2640023008/diff/100001/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): https://codereview.chromium.org/2640023008/diff/100001/chrome/browser/android/tab_android.h#newcode248 chrome/browser/android/tab_android.h:248: bool ShouldEnableEmbeddedMediaExperience(); On 2017/02/21 11:33:03, mlamouri wrote: > nit: ...
3 years, 10 months ago (2017-02-21 16:51:57 UTC) #23
shaktisahu
dtrainor@ - PTAL at chrome/
3 years, 10 months ago (2017-02-22 06:59:31 UTC) #28
mlamouri (slow - plz ping)
lgtm! Thank you :) https://codereview.chromium.org/2640023008/diff/120001/third_party/WebKit/Source/core/html/MediaDocument.cpp File third_party/WebKit/Source/core/html/MediaDocument.cpp (right): https://codereview.chromium.org/2640023008/diff/120001/third_party/WebKit/Source/core/html/MediaDocument.cpp#newcode32 third_party/WebKit/Source/core/html/MediaDocument.cpp:32: #include "core/dom/GetRootNodeOptions.h" I don't think ...
3 years, 10 months ago (2017-02-22 12:15:27 UTC) #29
David Trainor- moved to gerrit
just a quick comment about having this be a per-tab setting. I know we don't ...
3 years, 10 months ago (2017-02-22 17:53:17 UTC) #30
shaktisahu
dtrainor@ - PTAL https://codereview.chromium.org/2640023008/diff/120001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/2640023008/diff/120001/chrome/browser/android/tab_android.cc#newcode734 chrome/browser/android/tab_android.cc:734: return embedded_media_experience_enabled_; On 2017/02/22 17:53:17, David ...
3 years, 10 months ago (2017-02-23 06:51:05 UTC) #31
David Trainor- moved to gerrit
lgtm % comment. Thanks! https://codereview.chromium.org/2640023008/diff/140001/chrome/browser/android/tab_android.cc File chrome/browser/android/tab_android.cc (right): https://codereview.chromium.org/2640023008/diff/140001/chrome/browser/android/tab_android.cc#newcode734 chrome/browser/android/tab_android.cc:734: return embedded_media_experience_enabled_; Had a talk ...
3 years, 10 months ago (2017-02-23 21:15:25 UTC) #32
shaktisahu
https://codereview.chromium.org/2640023008/diff/120001/third_party/WebKit/Source/core/html/MediaDocument.cpp File third_party/WebKit/Source/core/html/MediaDocument.cpp (right): https://codereview.chromium.org/2640023008/diff/120001/third_party/WebKit/Source/core/html/MediaDocument.cpp#newcode32 third_party/WebKit/Source/core/html/MediaDocument.cpp:32: #include "core/dom/GetRootNodeOptions.h" On 2017/02/22 12:15:27, mlamouri wrote: > I ...
3 years, 10 months ago (2017-02-23 22:43:27 UTC) #33
shaktisahu
jam - PTAL at content/ and third_party/WebKit
3 years, 10 months ago (2017-02-23 22:50:55 UTC) #35
jam
On 2017/02/23 22:50:55, shaktisahu wrote: > jam - PTAL at content/ and third_party/WebKit lgtm for ...
3 years, 10 months ago (2017-02-24 00:49:30 UTC) #36
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/2640023008/160001
3 years, 10 months ago (2017-02-24 03:21:33 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/372044)
3 years, 10 months ago (2017-02-24 03:30:13 UTC) #46
kenrb
ipc lgtm
3 years, 10 months ago (2017-02-24 22:39:44 UTC) #47
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/2640023008/160001
3 years, 10 months ago (2017-02-24 22:41:11 UTC) #49
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 22:46:54 UTC) #52
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/f97f7538cc5be6da3145a830ff1a...

Powered by Google App Engine
This is Rietveld 408576698