Phil feature annoucements: Redundant Streams

0:00

Hey, Phil from MuxAir with a quick demonstration of our new HLS running

0:04

streams feature which can give you increased resilience to larger scale

0:08

internet service outages such as major CDN failures. Let's get started. I've

0:14

got

0:14

a stream up and running on my other laptop and I'm just gonna play back that

0:17

stream in HLSJS. We've got the Firefox network inspector open on here on the

0:23

bottom and we've got Charles proxy open on the right which we're gonna use to

0:27

simulate our CDN failures. Okay, so let's enable a CDN failure. The stream

0:33

doesn't have redundant streams turned on right now. So what we're gonna do is

0:37

force one of CDNs to return 503s. What we'll see happen is the player

0:43

reattempts those segments a couple of times and eventually it's gonna run out

0:46

of buffer that it's pre-downloaded and then it's gonna enter a buffering state

0:51

as we commonly call it and eventually this will transition into a more

0:54

permanent failure. Okay, so not great. So let's turn back off our 503s, clear

1:04

out

1:04

our logs on both sides and enable redundant live streams. All you have to

1:09

do to enable these is add the query parameter redundant streams equals true.

1:14

If you're using signed live streams you just need to embed this into your JWT

1:19

claims body and let's hit play. Great, so our stream starts up as normal, no

1:25

differences so far. Let's see what happens if we encounter a 503 now on our CDN

1:31

.

1:31

What we're gonna see happen is the player's gonna request a segment, it's

1:36

gonna get a 503 and it's immediately gonna fail over to a secondary CDN at

1:40

the same resolution on the same rendition. So example here we failed over on

1:46

segment 1068 onto a secondary CDN and a stream kept playing with no issues

1:51

whatsoever. This is a great first step in improving the resilience of your live

1:56

streams. It works on the majority of common HLS video players and it's

2:02

available to all Mux accounts now and it's free, so enjoy!