How to enable Encrypted Media Extensions in headless mode?

379 views
Skip to first unread message

v.ol...@gmail.com

unread,
Nov 26, 2017, 6:22:54 PM11/26/17
to headless-dev
I can't manage to run my app with headless chrome that uses EME `window.navigator.requestMediaKeySystemAccess()`.

For instance, clicking on "Make available offline" in this example app (not mine) will work in Desktop Chrome (as long as the user hasn't deactivated chrome://settings/content/protectedContent in their settings), but not on headless chrome:

Calling `window.navigator.requestMediaKeySystemAccess()` throws a DOMException `Unsupported keySystem or supportedConfigurations`

I couldn't find any documentation stating that these extensions are disabled in headless mode. Maybe I need a flag? How can I know why is it being rejected? For this example, I launched headless mode with:
`chrome --headless --enable-logging --v=1 --remote-debugging-port=9222 https://biograf-155113.appspot.com/ttt/episode-2/`

Eric Seckler

unread,
Nov 27, 2017, 2:05:24 AM11/27/17
to v.ol...@gmail.com, headless-dev
Sounds like we're either missing the init of the supported key systems, or are simply failing to enable encrypted media in the first place [1]. Definitely worth filing a bug [2]! Thanks!

[1] https://cs.chromium.org/chromium/src/media/blink/key_system_config_selector.cc?rcl=5c08d895d20dcde58e3f33ca3f68f52df03386b1&l=849


--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/0269b0ff-b323-4631-a897-1b53f10a4ba9%40chromium.org.
Reply all
Reply to author
Forward
0 new messages