

by Daniele Di Lucido
May 26, 2020
Blog
How to use Cypress with encrypted streaming?
I won’t waste your time by explaining why Cypress is an amazing framework, and why you should have automated E2E tests. If you are here, it is because you already know all of this.
The issue
We decided to adopt Cypress to build an automated test suite to avoid regressions, increase the developer’s confidence, and maintain a stable codebase. After a few tests, we hit a stumbling block.
We weren’t able to test our players and our content because our clients use DRM content (CypressGitHub issue).
Browsers use External Components like “Widevine Content Decryption Module” to resolve DRM content. In Cypress, however, all the browser external components are disabled.

This will cause an exception in the Players while it’s resolving the content.

As you can imagine, for a streaming app it is crucial to be able to test the players and their logic, and this put us in front of a tough decision, give up on Cypress and automated tests, or find a solution!
How do we handle that?
After hours of crazy research and days of frustration, we came up with a simple question:
Do we really need it?
In our tests, we usually stream video content in order to check some business logic or to assert that the player is acting as intended. (We are not testing the actual encoding of the content or similar).
Then we faced the ugly/beautiful truth. No, you don’t need a DRM content to test that!
When we came to this mind blowing conclusion, we decided to mock the service that returns all the streaming information.
We created a JSON file to mock the streaming information that will use a clear content “Big Buck Bunny: the Dark Truths”
cypress/mock/streamingInfo.json
And stub the service that returns the streaming information in our tests:
And voilà, you are ready to stream 🍿

Note: Our projects are using Cypress v3.2.2, at the time of writing.
A Guide To Making TV Streaming Services More Accessible
Digital Accessibility is one of the strongest focuses in the current decade. As TV Streaming becomes a commonplace, technology and apps need to become less challenging for one of the most common media consumption… This article illustrates some examples of what needs to be considered to make TV Streaming services more accessible.
Introduction to Digital Accessibility: Apps & Websites
Digital accessibility is the technological consideration for removing barriers and which helps interaction with digital products. It is meant for people NOT ONLY with disabilities or socio-economic restrictions, but also helps a larger section of society than one would imagine it to be.
The Endless Guide to Quality Assurance
To flourish businesses in the present competitive world, applications best fitted and adapted to their users are the most successful ones. There has been a demand for OTT apps, while the supply is also getting ample in the present tech world. The minute a customer is unhappy with the smallest thing in the OTT application of name X, he would choose another subscription with the OTT app Y.
Norigin Media announces Global AI Hackathon on 21st June
Scheduled on the 21st of June 2023, Norigin Media has opened applications from companies around the world that work within the OTT and Streaming TV space. Industry experts will have the opportunity to flaunt ideas and innovations across the ever-evolving CTV App realms.
Norigin Media & TV4 Play are Finalists at IABM BaM Awards® 2023
The finalists of the IABM BaM Awards® 2023 have been revealed across many categories of Media and Television Innovations. Norigin Media has been shortlisted in the CONSUME Category, for the interactive innovation on Connected TV devices alongside the TV4 Play AVOD Service in Sweden.
Northern Waves TV Conference 2022, Speakers Update!
Northern Waves TV has confirmed the agenda for the OTT TV conference planned on Thursday, the 13th of October 2022 in Oslo, Norway. The presentations include a range of OTT Tech, Product and business-related keynotes from leading Nordic Broadcasters and Pay-TV operators.