Allow to preview Drive files without full download. |
|||||||||||||||||
Issue descriptionMaybe we can refer to the implementation of https://cs.chromium.org/chromium/src/chrome/browser/chromeos/fileapi/external_file_url_request_job.h, and do the similar thing in https://cs.chromium.org/chromium/src/storage/browser/fileapi/file_system_url_request_job.cc
,
Jul 6 2016
,
Sep 6 2016
,
Sep 30 2016
,
Dec 8 2016
,
Aug 21 2017
Issue 756987 has been merged into this issue.
,
Nov 9 2017
,
Jan 30 2018
,
Feb 7 2018
,
Feb 15 2018
Assigning to myself to investigate for M66.
,
Feb 15 2018
,
Feb 20 2018
,
Feb 28 2018
,
Mar 1 2018
,
Mar 5 2018
,
Mar 12 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/814829b1554558562dc68b15a54d17eb49e1e1a9 commit 814829b1554558562dc68b15a54d17eb49e1e1a9 Author: Sasha Morrissey <sashab@chromium.org> Date: Mon Mar 12 04:30:31 2018 Add drive thumbnails to QuickView for all file types that have thumbnails thumbnail should appear. Test: Open a .PDF or .HTML file in Drive in quick view in the Files App. A Bug: 625944 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I06b8d498b641b3a1c5823617fbe57fa298654bf2 Reviewed-on: https://chromium-review.googlesource.com/952425 Reviewed-by: Keigo Oka <oka@chromium.org> Commit-Queue: Sasha Morrissey <sashab@chromium.org> Cr-Commit-Position: refs/heads/master@{#542422} [modify] https://crrev.com/814829b1554558562dc68b15a54d17eb49e1e1a9/ui/file_manager/file_manager/foreground/js/quick_view_controller.js
,
Mar 14 2018
Weifang, I've added thumbnail support for all files in Drive that provide thumbnails. Please see the attached screenshots. This still isn't *quite* the same functionality as local files, since local videos currently can be played in quickview (see quickview_existing_video_local.png vs quickview_video_file.png) and some types of local files don't have any preview, but they do in Drive (see quickview_existing_xls_file.png vs quickview_xls_file.png). Let me know what you think. Thanks, Sasha
,
Mar 14 2018
Wow, this is cool. A few questions/comments - (1) For video files, I think the difference between local/Drive is fine where the video only can be played locally in quick view. (2) For .xls example, just to confirm - This difference is because Drive generates the preview and we pull it down, whereas we don't have native support for .xls? Curious what the path for supporting this locally would be esp if the user had the MS Excel Android app installed? (3) Can you confirm that .pdf files on Drive can also be previewed? Also out of curiosity, will changes be required to the functionality if we switch out the backend with DriveFS?
,
Mar 15 2018
(1) For video files, I think the difference between local/Drive is fine where the video only can be played locally in quick view. Great :) (2) For .xls example, just to confirm - This difference is because Drive generates the preview and we pull it down, whereas we don't have native support for .xls? Curious what the path for supporting this locally would be esp if the user had the MS Excel Android app installed? Yes, that's correct. I'm also curious :) Some approaches come to mind: (a) Push stuff to a Drive API for thumbnailing (needs online though) (b) Implement more thumbnail generators locally (to match Drive support) (c) Some magical Android thing... Are there file managers for Android that have thumbnails for custom file types? Could be something to look into (3) Can you confirm that .pdf files on Drive can also be previewed? Ooh yup, sorry about that. Just the front page is previewed (as it's the thumbnail). Attached a screenshot :) (4) Also out of curiosity, will changes be required to the functionality if we switch out the backend with DriveFS? (Just asked sammc@) There is an API in DriveFS to request a thumbnail, so we could just use that and there would be no UI change. :)
,
Mar 21 2018
This is fixed. There are multiple approaches to getting complete consistency, but we can discuss them in a future bug. Weifang - feel free to re-open if there's still issues with the solution. :)
,
Mar 27 2018
Looks good - Thanks for the responses sashab@!
,
May 3 2018
Chrome OS 10575.26.0, 67.0.3396.31 |
|||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||
Comment 1 by fukino@chromium.org
, Jul 6 2016