url_handler support in ChromeOS Gallery App |
||||||
Issue descriptionChrome Version : 69 To integrate the Camera App and the Gallery App, we need the ability to "deep link" into a specific photo/video from the camera extension. Adding url_handlers to the packaged app manifest may be one way to achieve this https://developer.chrome.com/apps/manifest/url_handlers
,
Jun 7 2018
,
Jun 7 2018
,
Jun 7 2018
Sasha has suggested a method: https://cs.chromium.org/chromium/src/chrome/browser/chromeos/file_manager/open_util.cc?l=67 But I can't find how this method is exposed to JS API, and whether it's usable from external extensions like the camera.
,
Jun 11 2018
Hi Trent, Could you identify an owner on the Gallery side?
,
Jun 11 2018
From fukino@: Files app uses its private API, chrome.fileManagerPrivate.executeTask(), to open media files using built-in media players. If we search video files from Chrome OS launcher, the default task is selected and executed here (https://codesearch.chromium.org/chromium/src/ui/file_manager/file_manager/background/js/launcher_search.js?rcl=3f8efa848e6842b28c150894286c9d1e430a33e6&l=190). If you want to open video file, the first parameter for executeTask() should be "jcgeabjmjgoblfofpppfkcoakmfobdko|app|video". To call this API, the camera extension needs permission to fileManagerPrivate, but I'm not sure if it is sufficient to add it to your manifest.json. (There might be a white list to restrict the access to fileManagerPrivate). Yuli, could you try chrome.fileManagerPrivate.executeTask() to see if it can opens gallery/video player?
,
Jul 20
Used fileManagerPrivate instead. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by shenghao@chromium.org
, Jun 7 2018