widevine-initializer
v1.0.0
Published
Make sure that widevine is initialized before trying to access a drm'd stream
Downloads
4
Maintainers
Readme
Widevine Initializer
A plugin to initialize widevine (or any other eme plugin) in a browser.
Background
Electron doesn't work all that well with playing drm'd music streams. Even after you place all the proprietary decryption stuff in the right place it still is unreliable.
A github issue I looked at when trying to figure this out suggested a workaround to initialize widevine. This package is that workaround in an easy-to-use form.
Usage
require('widevine-initializer')(function() {
// now widevine should be initialized.
});