Dear Amazon team,
I’m trying to port a web-based Smart TV app to Vega OS by loading it inside a web view. So far it’s been going well, but there’s one major problem: I’m unable to run a DRM-protected video when the web app is started from a local file.
I created a minimal reproducible example app: it renders a web view with a HTML file, and the HTML file loads a Widevine-protected video with Shaka Player. The playback works when I run the file from a remote server, but fails when using the local URL (the app can switch between local and remote variants). The error presented is “EME use is not allowed on unique origins“.
I know it’s a standard browser behavior to block DRM playback when running over file://, but on other Smart TV platforms, like Samsung Tizen or LG webOS, it works normally when an app is packaged. It makes much more sense for a TV app to be self-contained in a single bundle with both HTML and React Native code. While we could switch to hosting our index.html on a remote server as a last resort, this would only work for production/staging releases, giving us no way to build standalone debug versions for internal testing.
Is there a known way to enable DRM playback from a local HTML file, or are there any plans to support it?
Best regards,
Mikołaj