Case study

A streaming platform with micropayments for Recast

Recast is a streaming platform where a viewer pays for a single stream instead of a subscription. We developed its web applications, live streaming, micropayments and data warehouse.

Industry
Media & Entertainment
Country
United Kingdom
Timeline
4+ years
Team
2-9 people
Recast: Streaming Platform
150+channels

Broadcasting on the platform, most of them in sport

90+countries

Where the content is available

01 Starting point

Where we started

Recast is a streaming platform from Edinburgh where a viewer pays for a specific live stream or recording instead of a subscription. Payments run on in-platform credits: the viewer tops up a wallet and spends credits on single pieces of content or on passes for a whole channel. Up to 85% of the revenue goes to the publisher. More than 150 channels broadcast on the platform, most of them in sport, from British Fencing to Manchester City and World Curling. The content is available in over 90 countries. We joined Recast when the platform was just starting. Its first version was a single PHP application with a single database. We built the platform in its current shape together with Recast's team, almost from scratch.

Recast needed a team that would build the platform in every layer at once: applications for viewers and publishers, live streaming, payments and data. At the same time the first version had to be split into smaller services without stopping the running platform.

02 Timeline

From a video service to a platform with its own payments

  1. 2020

    Recast starts, we join as a two-person frontend team

    The first version of the platform is a single PHP application. We start with the web application for viewers.

  2. 2021

    The team grows, the first microservices appear

    Login, video and streams, the content catalogue and partner handling move to separate services. The publisher panel is built.

  3. 2022

    The data warehouse and more currencies

    The data warehouse and publisher statistics are built. The wallet supports more currencies.

  4. 2023

    Passes and an in-house transcoder

    Passes for a whole channel, rental for a set time and presale are introduced. Live streams move to a transcoder built by the team.

  5. 2024

    Payments become a separate product

    The wallet and purchase mechanisms become the base of Recast Pay, a payment and access layer for external services. We describe it in a separate case study.

03 What we did

What we delivered

01

Live streaming

A publisher creates an event in the panel and gets a channel ready for broadcasting, with no involvement from the technical team. They can broadcast from their own equipment, connect a signal from an external source, or broadcast straight from the browser.

02

Stream management

Scheduled events start automatically. The system watches the signal and closes the stream on its own once the event is over. After it ends, the stream is available as a replay.

03

Video processing

Recordings and live streams are prepared in several quality levels, so the player can match the picture to the viewer's connection. In 2023 live streams moved from an AWS service to a transcoder built by the team, whose capacity goes up and down with the number of streams.

04

Content protection

Paid video is encrypted, and the stream link works only for the viewer who bought access. A copied link will not work for someone else. A publisher can limit access to selected countries.

05

Splitting the monolith

One area after another moved from the first version of the platform to separate services: login, video and streams, the content catalogue, profiles, partners, notifications. The new services ran next to the old application before they took over its work, so the platform had no downtime.

06

Web applications

The viewer application covers the player, live streams, the wallet, top-ups and buying access, in seven language versions. The publisher panel is used to upload video, set prices and passes, configure streams and view statistics. A separate admin panel handles refunds, payouts and reports.

07

Micropayments and purchases

A viewer tops up the wallet by card and receives credits. They can also earn them by watching an ad or by referring the platform to a friend. They buy single pieces of content, passes for a whole channel or access for a set number of days, including in presale. Every purchase is split straight away between the publisher, collaborators, the referrer and the platform.

08

Notifications and live chat

A viewer receives notifications in the application, in the browser and by email. A publisher turns live chat on separately for a channel and for a single stream.

09

Data warehouse and statistics

Data from the services flows into the data warehouse. Purchases, refunds, publisher earnings and daily summaries are calculated there. In the panel a publisher sees statistics for their own channels only.

04 What changed

The platform at the start and today

ArchitectureBeforeOne PHP application with one databaseAfterMicroservices with their own databases, connected by events
Selling contentBeforeA fee for a single playAfterSingle products, channel passes, rental and presale
DataBeforeStatistics calculated on the production databaseAfterA data warehouse fed by events from the services
Codino teamBeforeTwo people on the frontendAfterNine people: frontend, backend and architecture
05 How we worked

How the work was run

We started with Recast at the launch of the platform, as a two-person frontend team. Over time the team grew to nine people working on the frontend, the backend and the system architecture. We worked inside Recast's product teams, together with their engineers, on the same release rhythm. Before major sporting events we ran performance tests that reproduced how viewers behave just before a stream starts.

We worked with Recast from the launch of the platform. Over a few years it went from one PHP application to a set of services that separately handle streaming, purchases, payments and data.

Scope of work

We worked on the platform in every layer: from the applications in the browser, through the backend services, to the data.

The viewer application, the publisher panel and the admin panel in React and TypeScript.

Automatic channel setup in AWS, an in-house live transcoder, stream keys, event scheduling, signal monitoring and replays.

Video transcoding, DRM encryption, stream access tokens and geographic restrictions.

Moving one area after another from the PHP application to Node.js microservices, with no interruption to the platform.

A wallet with credits, top-ups, price lists, passes, the purchase service and the revenue split.

The data flow from the services to the warehouse and statistics for publishers.

Load tests and modelling of viewer behaviour before major sporting events. Blue/green deployments with a quick way back to the previous version.

Technologies

React
TypeScript
Node.js
AWS
Kubernetes
Kafka
Amazon Redshift
PostgreSQL
Redis
MeiliSearch
What our clients say
All members of the Codino team fit seamlessly into our delivery teams, building excellent relationships and always willing to go the extra mile to deliver on our Roadmap in a timely and efficient way. We have built extremely good relationships with them and they feel just like part of the team
Pete WillcoxVP Product, Recast

Let's Talk About Your Project

Get In Touch
Maciej Roman|CEO & Co-founder

Not sure where to start? Begin with the AI Readiness Audit