Guides: How Mux's flexible video streaming api fits in with your stack

0:00

The beauty of working with an API platform

0:01

like Mux is that it's super flexible.

0:03

So you can choose what features

0:04

make the most sense for you.

0:06

But maybe you're wondering how that flexibility influences

0:08

your application stack?

0:10

Well in this video I show you.

0:11

Here's a quick peek.

0:13

Probably looks like a lot. Don't worry.

0:15

It's simpler than it seems. So let's break it down.

0:18

Here we're illustrating an example of a content creator

0:21

using your mobile app

0:22

to push a stream to Mux, and then your viewers

0:24

watching the output stream coming out of Mux.

0:26

Specifically, it's an RTMP stream

0:28

being pushed into Mux and an HLS stream coming out

0:31

with a lot of nitty gritty in the middle

0:33

that Mux handles for you

0:34

Like ingest, encode, storage and delivery.

0:37

In this case though, we're talking about live streaming.

0:39

But keep in mind that for video on demand,

0:41

a lot of this is still applicable.

0:43

The input type just changes from a live stream to a file

0:46

In this particular instance, we're making use of the Live

0:48

Ingest Health Metrics feature,

0:50

where Mux pushes information about the network's ability

0:53

to the content creator so that they know how

0:55

well the stream is making it to Mux.

0:57

On the output side, towards the bottom,

0:59

we have the HLS stream going to your content viewer,

1:02

and that includes your video, audio and captions.

1:04

And a great feature

1:05

we have is auto-generated captions.

1:07

In case

1:07

you don't have your own captions for your content.

1:10

Now that you have the HLS stream

1:11

coming out of Mux, you still need a player

1:13

to actually render the content and view it.

1:16

This is often a piece of the puzzle that's overlooked.

1:18

Good news is we have Mux Player,

1:20

which comes fully integrated with Mux video and Mux data.

1:23

It's fully customizable

1:24

and flexible because it's built on open source software,

1:27

so you can make it fit whatever needs you have.

1:29

While we think Mux Player is pretty great,

1:31

keep in mind you don't have to use it.

1:32

You can use any player that supports HLS.

1:35

So here in the diagram we have thumbnail images

1:38

coming down from Mux,

1:39

which is what we use to create the timeline

1:41

hover previews within Mux Player.

1:42

Then that source from the image API.

1:45

We also have the Mux

1:46

data session beacons being sent back to Mux

1:48

to keep track of playback quality,

1:50

which then powers the engagement metrics feature

1:52

that you can use to send

1:53

to your content creator

1:54

so that they know how many people are watching

1:56

as they live stream

1:57

one thing to mention is that the Mux data session

1:59

beacons are not dependent on using Mux player.

2:01

You can integrate with any player you decide to use.

2:05

so now that we have the core video loop established,

2:07

you're probably wondering

2:08

how does this actually link up to my back end

2:10

so I can start making requests to Mux?

2:12

Here we have a simplified representation

2:14

of what your back end

2:15

could look like with, database

2:17

functions and queues and a CMS.

2:19

If you don't have a CMS

2:20

or you're not sure which one to start with.

2:22

We have a lot of integrations in case you want to add

2:24

content metadata to your video pages.

2:27

You can always query our API from your backend.

2:29

But you can also make use

2:30

of some of our asynchronous notification features.

2:32

so you can keep up to date

2:34

with what's happening in your environment.

2:35

You can subscribe to our webhooks

2:37

to get events in real time about content

2:39

being uploaded to your environment.

2:41

And on the data side,

2:42

you can subscribe to alerts so that you know

2:44

about performance degradation or high viewership counts.

2:47

So you have your own analytics

2:48

stack that you prefer to use.

2:50

You can make use of the Mux Data Streaming

2:52

Exports feature, which lets

2:53

you push viewing sessions to your own infrastructure

2:56

as soon as they become available.

2:59

The internet is a wild place.

3:00

So we often get asked about content

3:02

analysis and moderation.

3:04

Luckily, Mux

3:05

makes it really easy to extract MP4 and transcripts

3:08

so that you can analyze

3:09

your content with a third party provider

3:11

and see what kind of stuff

3:12

is being uploaded to your environment.

3:14

Another big one that comes up a lot is social media.

3:16

You can also use our simulcasting feature

3:18

in case you want to push

3:19

to platforms like YouTube and Facebook Live.

3:22

Okay, so we covered a lot.

3:24

Hopefully this gives you a better overview

3:25

of how you can make use of all of our great features.

3:28

Keep in mind, you don't have to use

3:30

everything that we talked about.

3:31

You can definitely keep it simple.

3:32

If you have any more questions

3:33

or you just want to talk about video,

3:35

reach out to us on the link below.

3:36

We're always happy to hear from you Or check out

3:39

mux.com to learn more.