All language subtitles for 29 - Embedding other media through iframes.en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

- Earlier, we took a look at the video element,

and I mentioned that it's possible

you're not going to to do video that way.

It's likely that you'll use a video hosting service,

and embed the video player

that they provide onto your webpage.

Embedding is taking content from one site

and placing it into the middle of a page on another site.

There's all kinds of content

that you might want to embed onto a page.

You can embed a map from Google or Mapbox.

You can embed a code demo from CodePen or Glitch.

You can embed a slide deck from Speaker Deck or Notist.

It's common to embed something complex

from a service that takes care of all the hard parts

for you.

You don't have to figure out

how to build a mapping service,

or a slide deck system,

or a code demo platform,

or an adaptive bitrate server.

You go to someone else's toolkit and do all of that,

and then embed the results onto your website.

So what HTML do we need to know to help us do this?

Well, basically, you get the HTML

from the service that you are using.

Let's use YouTube as an example.

Here is a YouTube video that I made.

And let's say I want to post it on my own website,

so people can find it on my domain name

and not have to go to the YouTube website.

I'll look for a share button,

or some other clue

about where I can find the embed code.

Here it is.

Share.

I see where it says Embed, and let me click that.

And I see some options,

Privacy Enhanced, that sounds good.

I'll click Copy,

and I'll get some code copied to my clipboard.

I'll past this into my HTML,

and voila, now I have a video embedded on the page.

We don't really need to understand what all of this says.

The engineers at YouTube wrote it all for us.

Although, now that we know how to read HTML,

we can see a lot here that we recognize.

The iframe element has several attributes on it,

including height and width.

We could adjust those.

Src is going to point to the source of the video file.

Iframes are powerful.

There are definitely some security considerations to be had

about pulling in code from other sites like this.

So if you're using a CMS that someone else set up,

like it's your job to post content on a WordPress website,

or a Drupal website,

there's a good chance that you can't just paste

some random embed code from another website

into your system.

There's a good chance that the CMS is set up

with a different way to allow a URL

or a shortcode from a specifically white-labeled source.

And you'll want to talk to someone

who knows how to use your CMS

to find out how to embed things like YouTube videos.

If you're the person building a site,

you probably want to think about how security will work

when it comes to the iframe element.

If a bunch of different people

are going to be entering content into a system,

you're not going to want to just allow all iframes.

Think about the security.

If it's just you,

posting your own videos

on your own website,

then it will be fine.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.