#Can't get WidevineCDM working on Linux arm64

2 messages · Page 1 of 1 (latest)

urban steeple
#

Hello, I'm new to electron and have a question about Widevine CDM.

I'm using Fedora Asahi Remix and used "widevine-installer" to install widevine. I have manifest.json and libwidevinecdm.so in /var/lib/widevine.

I tried to give the path /var/lib/widevine like this:

// This is at the start.
app.commandLine.appendSwitch('widevine-cdm-path', "/var/lib/widevine/");
app.commandLine.appendSwitch('widevine-cdm-version', '4.10.2662.3');

The version is the one I found in manifest.json.

This didn't seem to work, so I tried to put "plugins: true" in webpreferences and load the extension:

// This is onReady.
 Main.mainWindow.webContents.on('did-finish-load', () => {
            const pluginDir = "/var/lib/widevine/";
            console.log(`Loading Widevine CDM from: ${pluginDir}`);
            Electron.session.defaultSession.loadExtension(pluginDir).then(() => {
                console.log('Widevine CDM loaded successfully');
            }).catch((error) => {
                console.error('Failed to load Widevine CDM', error);
            });
        });
// Logs say Widevine CDM loaded successfully, but testing on a webpage shows that I still don't have Widevine CDM properly working.

Does anyone know how I can get widevine CDM to work? This is for a personal project, I don't need it to work crossplatform for other people, just for me.

Other info:
I am running the app with npm start, which executes:

electron dist --ozone-platform=wayland
urban steeple
#

anyone knows?