Video Education: What is an iframe?

0:00

An iframe is someone else's

0:02

website on your website.

0:04

You make a beautiful website,

0:06

but you just need something

0:07

that you don't have.

0:08

So you can use something

0:09

called an iframe to punch

0:10

a hole in your website and

0:12

show somebody else's website.

0:14

If you're using an iframe,

0:15

maybe that's the only thing

0:16

you can use, or maybe you

0:17

are working in a low code

0:18

or no code environment.

0:19

But you've also gotta be

0:20

careful when using an iframe.

0:22

This is at the end of the

0:23

day, somebody else's website.

0:24

They can make changes

0:25

without you knowing and

0:26

it'll pop up on your website.

0:28

Maybe that's good because you

0:29

don't want to maintain that

0:30

part of your website, but it

0:31

is something to keep in mind.

0:32

You should also know it's an

0:33

early web technology, which

0:34

means that there's some kind

0:36

of weird limitations about

0:37

how you can style it with CSS.

0:39

Just expect to deal

0:40

with some CSS pain.

0:42

When do you want to punch

0:43

a hole in your website to

0:44

somebody else's website?

0:45

When somebody else is better

0:47

at something than you are.

0:48

For example, if you don't

0:49

wanna deal with video players.

0:50

Maybe use an iframe for

0:52

somebody else's video player.

0:54

So how can you use

0:55

an iframe to add a

0:56

video to your website?

0:57

I'm so glad you asked.

0:58

Here at Mux, we now

0:59

have an iframe option.

1:01

If you've heard of Mux before,

1:02

you may know that we already

1:04

offer our very robust Mux

1:05

Player as a web component.

1:07

This allows you to host

1:08

your player directly

1:09

from your website.

1:10

But we heard from some

1:11

of you that you want an

1:12

iframe and to you we say,

1:14

"we have an iframe." Just

1:16

upload your video to Mux

1:19

and copy this code snippet

1:21

and we've got some secret

1:22

Mux sauce that makes the

1:23

iframe version of the player

1:24

just a little bit nicer.

1:25

We can do a little

1:26

bit more work for you.

1:27

Lemme tell you about that.

1:28

So this is Mux Player.

1:30

You can't even tell

1:31

that this isn't coming

1:32

from your website.

1:32

This is coming

1:33

from our website.

1:34

This is coming from

1:35

player.mux.com.

1:36

Let's take a look What?

1:38

There it is.

1:39

In an iframe.

1:40

Because it's coming from

1:41

our website, we can make

1:43

your player look delicious

1:46

to social media and SEO.

1:48

Here in the head,

1:50

we've got all of your favorite

1:52

OG tags and Twitter tags

1:54

so that when you share your

1:55

video, it looks fantastic.

1:57

For example, here, I want

1:59

to tell people about my

2:00

favorite dogs on my favorite

2:02

social media website.

2:03

Because of those OG

2:04

tags, we've got a title

2:05

and we've got a little

2:07

preview of our video.

2:09

We also make the iframe look

2:10

really good to search engines.

2:11

If you take a look at the

2:13

very bottom of the iframe,

2:14

there's a little bit of secret

2:15

code called LD-JSON, and

2:18

this tells Google a little

2:20

bit more about your video.

2:21

There's even more about

2:23

the iframe that we

2:23

haven't talked about yet.

2:24

For that, there's

2:25

a whole blog post.

2:26

Check it out.

2:27

And if you like your blog

2:28

posts, definitely subscribe

2:29

to our newsletter for more hot

2:31

topics on making video easy.