question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provided Chrome browser does not support DRM (widevine)

See original GitHub issue

Current behavior:

When we try to play a DRM protected video in the chrome browser provided by cypress, our video player throws a error (drm/widevine is not supported). The same video in ordinary chrome plays well.

Desired behavior:

The video plays well in the browser

Steps to reproduce:

cy.visit('https://demo.castlabs.com/')

Big buck Bunny > MPEG-DASH > DRM (video should start playing) We have tried to set chromeWebSecurity: false, but it did not help. A friend of mine is saying that this is most likely caused by the fact that the site is running in a iframe in the cypress chrome browser, so it might have something to do with security in iframes etc.

Versions

Cypress 3.0.1 Chrome 67

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:17
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
flotwigcommented, Feb 19, 2020

Cypress passes ‘–disable-component-update’ to Chrome on startup. I think that this prevents Widevine from being installed. Try filtering it out in the plugin file:

module.exports = (on, config) => {
  on('before:browser:launch', (browser = {}, launchOptions) => {
    if (browser.family === 'chromium' && browser.name !== 'electron') {
      launchOptions.args = launchOptions.args.filter(arg => arg !== '--disable-component-update')

      console.log('Chrome launch args:', launchOptions.args) // print all args

      return launchOptions
    }
  })
}

Note: this still won’t work in headless mode, Chrome --headless doesn’t support Widevine: https://bugs.chromium.org/p/chromium/issues/detail?id=788662

5reactions
sternbrocommented, Sep 4, 2018

@jennifer-shehane We would appreciate some feedback, will this ticket be investigated anytime soon?

As mentioned above, playback of DRM content is critical for us. So far we have started writing tests for other functions of our application, but at some point of time we will need the DRM playback to work. If the DRM support will continue to be missing in cypress, any test writing efforts will be of waste and we will be forced to use another tool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google is deprecating the Widevine CDM for Chrome and ...
Google has recently reached out to companies to inform them that come December 6th, the Widevine CDM will be deprecated.
Read more >
Widevine Content Decryption Module Update - Remote Tools
Widevine Content Decryption Module, by Google. This is used in Chrome, Firefox and Opera. However, since the Opera browser does not support HTML...
Read more >
Widevine DRM - Google Developers
Widevine DRM is Google's content protection system for premium media. It is used by major partners around the world such as Google Play,...
Read more >
Google Widevine DRM: Simple Guide to Security & Integration
Widevine is chiefly supported by devices and software running on Google's ecosystem. On desktop devices, Widevine DRM is supported by Chrome, ...
Read more >
Google is Deprecating the Widevine DRM CDM - Bitmovin
Google recently contacted companies with a heads-up that the current Widevine Content Decryption Module (CDM) for browsers will stop working ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found