Select Page
The Evolution of Streaming on Swarm: Introducing MSRS

The Evolution of Streaming on Swarm: Introducing MSRS

Earlier this year, we took a significant step forward in decentralized multimedia with the release of our open-source multimedia libraries and the launch of the Multimedia Streaming Social Demo (MSSD). The MSSD was a proof of concept that demonstrated the power of live streaming on Swarm, showcasing a future free from censorship and centralized control. The response was incredible, and it confirmed our belief that the world is ready for a new paradigm in media delivery.Today, we are thrilled to announce the next evolution in that journey: the Multimedia Streaming Restricted Solution (MSRS).

From Demo to Dynamic Solution

While the MSSD was a powerful demonstration, the MSRS is a robust, feature-rich application designed for real-world use. It’s a B2B solution that empowers our partners to build their own decentralized streaming services on top of Swarm. We’ve taken the core concepts of the MSSD and rebuilt them with scalability, security, and partner needs at the forefront.

What’s New in MSRS?

The MSRS is more than just an update; it’s a complete rethinking of what a decentralized streaming architecture can be. Here are some of the key features that set it apart:

  • Advanced Stream Management: Partners now have access to a powerful admin interface. They can pre-configure and schedule streams for a future date and time, complete with a title, description, and a custom thumbnail. This allows for professional event setup and promotion well in advance.
  • Partner-Controlled Stamp Management: A crucial step toward self-sustainability, MSRS gives partners direct access to a “Swarm Stamp Manager”. Through this interface, they can monitor the status and Time-to-Live (TTL) of the postage stamps used for their streams and top them up to ensure their content stays online. This serves as a powerful demonstration of how future applications could enable individual users to manage their own content persistence on Swarm.
  • Engaging Live Chat: The viewer experience has been significantly upgraded with a new chat interface. Viewers can now interact with streams and each other using emoji reactions and threaded conversations, fostering a more dynamic and engaging community experience.

Waku Integration: We’ve integrated the Waku protocol for real-time signaling. This reduces latency and improves the overall user experience by eliminating the need for constant status polling.

Under the Hood: A Scalable, Multi-Tenant B2B Architecture

Core Architectural Principles

The system is built on a clustered, multi-tenant infrastructure, a core design choice that guarantees high availability and seamless horizontal scaling. This architecture ensures that each partner’s data and streaming environments are completely isolated and protected within the ecosystem. As new partners are onboarded, the infrastructure can scale effortlessly to meet growing demand without compromising performance or security.

DevOps and Infrastructure Management

We have developed a suite of proprietary scripts, actions, and utilities for streamlined infrastructure management. This custom tooling provides the flexibility to provision, configure, and manage the entire platform—or its individual components—with precision. This version-controlled approach to infrastructure allows for granular control over each partner’s instance, ensuring stability, consistency, and rapid deployment cycles.

System Components

An MSRS instance is composed of four primary, decoupled components:

  1. Ingestion & Transcoding Service: A dedicated Node.js service responsible for ingesting RTMP streams. Upon receipt, it efficiently transcodes and uploads the content to the Swarm infrastructure.
  2. Stream Aggregator: This service acts as a handler for application-level stream data. Accessible via GSOC, it manages real-time data changes within Swarm, such as updates to the master stream list and metadata.
  3. Chat Aggregator: Functioning similarly to the Stream Aggregator, this GSOC-accessible service manages the real-time lifecycle of live chat functionalities associated with each stream, ensuring reliable, low-latency communication.

Client Application: The front end is a sophisticated Single Page Application (SPA) that provides the primary user interface. Evolving from its predecessor (MSSD), the client offers a rich user experience for stream viewing and live chat. Integrated within the client, this version provides robust administrative capabilities. It leverages a simple, Swarm-based authentication mechanism to grant authorized users access to advanced features, including comprehensive stream management (create, edit, delete), metadata enrichment, content pinning, and simple stamp management.

The Future is Decentralized

The release of MSRS is a major milestone in our mission to build a more open and equitable internet. We believe that decentralized technologies like Swarm are the future of media, and we are committed to providing the tools and infrastructure that will make that future a reality.

With MSRS, we are not just offering a product; we are inviting you to be part of a movement. A movement to reclaim our data, our content, and our digital sovereignty. A movement to build a better internet for everyone.

Get Involved

Are you a developer, creator or brand shaping the next wave of streaming? Connect with us to discover MSRS and see how you can join the decentralized media revolution!

To learn more ,join our side event in Buenos Aires during Devconnect, where you can meet the team and explore the future of decentralized media firsthand.

The future is bright, and it’s being built on Swarm. Come build it with us!

Decentralized Multimedia Libraries Released

Decentralized Multimedia Libraries Released

The decentralized web is evolving rapidly, bringing with it the need for scalable, censorship-resistant multimedia solutions. To support developers building these next-generation experiences, we are thrilled to announce the release of the first version of our Multimedia Middleware libraries.

These libraries are specifically designed to facilitate the development of decentralized multimedia and social networking applications on the Swarm infrastructure. They address the growing demand for censorship-resistant platforms by providing cost-effective and scalable building blocks for developers. Our broader aim is to drive mass adoption of the Swarm protocol by making it easier for developers to create on-demand and streaming multimedia applications as well as social media platforms.

Developed as part of Solar Punk’s Fellowship with the Swarm Foundation, these libraries deliver unstoppable, censorship-resistant multimedia solutions, including group chat and audio/video streaming. Released as NPM packages and written in vanilla JavaScript, they ensure broad compatibility across a variety of JavaScript frameworks.

Libraries Released

The initial release includes the following libraries:

Audio-Video Live Streaming Library

This library enables media streaming and playback over Swarm and manages live audio/video streams by utilizing Swarm Feeds. It is compatible with any browser that supports the WebM format. 

Live Group Chat Library 

The live group chat library facilitates real-time messaging over Swarm using the GSOC (Graffiti Several Owner Chunks) feature. It leverages multiple nodes for improved performance.

  • Main GSOC nodes handle incoming messages
  • Writer nodes write messages to Swarm Feeds 
  • Reader nodes load messages. 

Other notable features include tracking present users via keep-alive messages and a mechanism to prevent spam. 

Comment System Library

This library supports dynamic comment walls on Swarm by using Swarm Feeds to write comments at appropriate indexes for individual or range-based access. 

How Developers Can Build on Swarm

These libraries can be used to create a wide range of decentralized multimedia applications, such as:

  • Social Media Platforms: Build censorship-resistant platforms where users can post text, audio, and video content using the chat and streaming libraries, while enabling them to comment with the Comment System.
  • Streaming Services: Create live streaming and on-demand video platforms that are resistant to censorship, allowing creators to distribute content without platform restrictions and monetize it directly. 
  • Metaverse Environments: Utilize the libraries as building blocks to create immersive metaverse experiences that require real-time communication, media streaming, and comment functionality.

By using these libraries, developers can significantly reduce development costs and time-to-market for customized social media and multimedia platforms. These tools facilitate the creation of diverse applications, contributing to the growth of the Swarm ecosystem. As the demand for storage increases in the Swarm network, it will further strengthen the network’s overall value and drive sustainable growth.

Ready to Build the Future?

Future enhancements to these libraries will include additional chat and comment features, such as message threads and likes. The streaming library will also undergo continuous evolution to ensure ease of use and provide top-notch performance for decentralized media applications.

Our measure of success lies in the adoption of these libraries by developers looking to build performant, unstoppable, and censorship-resistant applications. Explore these libraries, join our developer community, and let’s work together to bring your unique Web3 experiences to life!