How to play DRM (Digital rights management) media on Apalis / Torizon system, like: Spotify

Hello,

I have Apalis imx8, with Torizon easy pair last version installed on it.

I want to play Spotify on my board via QML.
I made my application using Spotify Web SDK and Web playback SDK. Everything is fine except playing music didn’t work.

I found out that I should use the Widevine library for this, but I couldn’t find any way to load it onto the board via Docker / Container.

Any ideas to solve this problem please? How can I run DRM media on the Apalis board?

Best regards,
Tarek

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


To play DRM-protected media like Spotify on your Apalis iMX8 with Torizon, you need to integrate the Widevine library into your application. Here are the steps you can follow to solve this problem:

  1. Ensure Widevine Library Availability: You need to include the Widevine library in your Docker container. This library might not be available in standard Torizon images, so you will likely need to create a custom Docker image that includes the Widevine library and its dependencies.

  2. Custom Docker Image: Modify your Dockerfile to install the necessary dependencies for Widevine support. You will need to obtain the Widevine library from a legitimate source and ensure compliance with any licensing agreements.

  3. Check for Existing Solutions: Look into the Torizon documentation and community forums for any existing Docker images or community-contributed solutions that include Widevine support. This could save you time and effort.

  4. Configuration: Make sure your application is configured to use the Widevine library. This may involve setting up the appropriate environment variables or configuration files required by the Spotify Web SDK and Web Playback SDK to access Widevine.

  5. Testing and Debugging: After integrating Widevine, thoroughly test the playback functionality. Debug any issues that arise during playback to ensure successful integration.

If you encounter difficulties, consider reaching out to the Toradex support team or community forums for specific guidance on integrating Widevine with Torizon on the Apalis iMX8.

Please, also check if these links can help you solve your problem:

Apalis IMX8 Evaluation board no video output (DVI or VGA).

Hi @tarekmhnds !

Your question is deeply related to application development and is not something that Toradex Support has experience with. (I personally didn’t even know about Widevine :person_shrugging: )

Nevertheless, searching a bit seems like there was (circa 2020) some limitation regarding using Widevine on Electron: Issue using Widevine DRM (development license) in ... - The Spotify Community. But from the last message there seems like someone managed to have Widevine DRM running on Electron, although having some issues.

At least for Chromium, seems like the lib comes from a binary blob directly from Google: GitHub - proprietary/chromium-widevine: How to install Widevine on Chromium on Linux; how to watch Netflix on Chromium Ubuntu or Debian.

Unfortunately, there is not much more I can help with. But, if you want, we could try to find a Toradex Partner that could help you with your project: Embedded Computing | Hardware & Software Service Partners. How does is sound like to you?

Best regards,

Hi Henrique,

I thought you implemented Widevine in Torizon systems to play protected digital content like YouTube and Spotify, when using boards like: Apalis to create control and entertainment systems.

I checked these links before, but I couldn’t apply them in Torizon system,

I will try more and ask you for a software partner to work with us, if I couldn’t find a solution.

Thanks a lot for your help and support.

Best regards,
Tarek

To use Widevine in Torizon for protected content like Spotify premium, you’ll likely need to manually add the necessary libraries. It may help to contact Toradex or DRM experts for support, or explore custom solutions if needed.

Hi @tarekmhnds !

Do you have any updates here?

Best regards,