Easily build beautiful video experiences into your Elixir app.
Add mux to your list of dependencies in mix.exs.
def deps do
[
{:mux, "~> 3.2.1"}
]
end
To start, we'll need a Mux access token. We'll put our access token in our application configuration.
# config/dev.exs
config :mux,
access_token_id: "abcd1234",
access_token_secret: "efghijkl"
Then use this config to initialize a new client in your application.
client = Mux.client()
You can also pass the access token ID and secret directly to client/2 function if you'd prefer:
client = Mux.client("access_token_id", "access_token_secret")
Now we can use the client to upload new videos, manage playback IDs, etc.
params = %{
input: "https://example.com/video.mp4"
}
{:ok, asset, _} = Mux.Video.Assets.create(client, params);
Getting started is fast and easy with direct uploads - this means no intermediate storage for you to manage.
Mux integrates with all major web and mobile video players.
Automatically deliver the best user experience for every combination of device, browser, location, bandwidth, etc.
Also includes helpers for Mux Data if you want to include performance metrics into your own dashboard client.
Ingest using almost any codec, including H.264, H.265, VP9, and Apple ProRes. Get multi-bitrate adaptive streaming with HLS delivery.
Adapt to new devices and codecs with no extra work. We'll automatically update codecs and renditions of the life of a video.
Use signed playback policies by easily creating signed URL tokens for your Mux assets when you want to control access to a piece of content.
We love issues, pull requests, forks, and compliments (constructive criticism counts too).
Mux is made up of an advanced transcoding engine, streaming origin, and expertly configured CDNs which all work together to provide the best video experience for your users with the least amount of headache for you.
Get the fastest video publishing possible. Videos are encoded while the first viewers watch them so your users can publish instantly.
Not only is Mux fast, but we make sure that your video will look its best across every screen, on every network.
Mux is made up of an advanced transcoding engine, streaming origin, and expertly configured CDNs which all work together to provide the best video experience for your users with the least amount of headache for you.
Handle thousands of concurrent live streamers and millions of viewers without worrying about spinning up additional servers.
RTMP for ingest and HLS for delivery so your application can stream from a mobile app, broadcast software, or hardware encoder and broadcast to any device.
Transition seamlessly from live to VoD with recordings available immediately after the event with no waiting for additional processing.
No credit card required to start using Mux.