A decentralized media server designed to handle media streaming on a global scale, making it suitable for large-scale applications but with minimal cost.
It is developed by 8xFF, a group of independent developers who are passionate about building a new generation of media server and network infrastructure with decentralization in mind. While we have received support from various companies and individuals, we are not affiliated with any specific company. 8xFF is a community-driven project, and we welcome anyone interested in contributing to join us.
For a deep dive into the technical aspects of network architecture, please refer to our Smart-Routing
(Above is a demo video of the version used by Bluesea Network)
This project is currently in the alpha stage of development. It is actively being developed and may undergo significant changes, including changes to the API. The primary focus at this stage is to make the project stable and reliable.
Our goals for this project can be summarized as follows:
Our primary focus is currently on Goal 1. For details on the current phase plan, please refer to our Roadmap.
Goals 2 and 3 are in the research phase. For more information, you can visit this Repository.
🚀 Powered by Rust with memory safety and performance.
High availability by being fully decentralized, with no central controller.
🛰️ Multi-zone support, high scalability.
Support encodings: H264, Vp8, Vp9, H265 (Coming soon), AV1 (Coming soon)
Cross-platform: Linux, macOS, Windows.
Decentralized WebRTC SFU (Selective Forwarding Unit)
Modern, full-featured client SDKs
Advanced features including:
Package | Version | License |
---|---|---|
Atm0s Media Server | Latest | MIT |
Nats | 2.10 | MIT |
Click the Deploy to DigitalOcean button to install a Kubernetes 1-Click Application. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.
In addition to creating Atm0s Media Stack using the control panel, you can also use the DigitalOcean API. As an example, to create a 3 node DigitalOcean Kubernetes cluster made up of Basic Droplets in the SFO2 region, you can use the following doctl
command. You need to authenticate with doctl
with your API access token) and replace the $CLUSTER_NAME
variable with the chosen name for your cluster in the command below.
doctl kubernetes clusters create --size s-4vcpu-8gb $CLUSTER_NAME --1-clicks atm0s-media-stack
Atm0s Media Stack installs the following
Atm0s Media Service Pods:
Nats pod: A Nats Server to deliver Connector logs to external services.
You can connect to your DigitalOcean Kubernetes cluster by following DOs how-to guide.
For additional instructions on configuring a DigitalOcean Kubernetes cluster, see the following guides:
The containers will be using host’s network stacks, so in order for them to communicate properly with each others, you will need to config your host’s inbound firewall rules to allow both TCP and UDP in all ports.
To communicate with the cluster or adding a new node, you will need to be authenticated with the right token. The token can be derive with the right secret. By default, in non-secure mode, the cluster is initialized with secret key: insecure
. To use your own secret, enable secure
and update the secret to your own secret. This will setup a token-generator
node.
To generate a token for streaming, you need to make a request to the token-generator node through http(s)://your_host/auth/
.
You can check out available authentication endpoints for each feature using swagger in https(s)://your-host/auth/ui/
.
Note that due to URL rewrite, these endpoints will need the be prefixed with /auth
to be able to work properly.
By default, a self-singed certificate comes with the Atm0s Media Stack.
you can replace it with your own certificate as below.
kubectl create -n atm0s-media secret tls ${CERT_NAME} --key ${KEY_FILE} --cert ${CERT_FILE}
helm delete atm0s-media-stack -n atm0s-media
helm install atm0s-media-stack 8xff/atm0s-media-stack --set gateway.host=gateway.example.com --namespace atm0s-media --create-namespace
The gateway can be connected under the /gateway/
, so your server URL should be: http://your_host/gateway
or http://your_cluster_lb_ip/gateway
if you have not configured your host.
You can also connect directly to the gateway node using: http://gateway_node_ip:3000/
For more details: https://github.com/8xFF/atm0s-media-server