HTML5 video tag - play Youtube video without iframe

HTML5 video tag - play Youtube video without iframe

Author
Discussion

rfisher

Original Poster:

5,024 posts

282 months

Thursday 27th April 2017
quotequote all
Oooooooooh get me with all this HTML5 stuff.

Can't get the video tag to play a remote hosted video on Youtube.

It's easy enough when the video file is on my server, but not when it's on Youtube.

Can't use iframe.

Any HTML5 nerds out there?

WelshChris

1,173 posts

253 months

Thursday 27th April 2017
quotequote all
Why can't you use an iframe? - Just asking.

This is the best solution - http://embedresponsively.com/


rfisher

Original Poster:

5,024 posts

282 months

Thursday 27th April 2017
quotequote all
Security issues apparently with iframe.

The site you suggested uses iframe.

I think object may be the answer.

dmsims

6,450 posts

266 months

Thursday 27th April 2017
quotequote all
It's against their ToS Term of Service

rfisher

Original Poster:

5,024 posts

282 months

Friday 5th May 2017
quotequote all
This is still annoying me.

Anyone know how to do this?

Happy to pay a pro as they say.

Ta.

Tuna

19,930 posts

283 months

Friday 5th May 2017
quotequote all
YouTube won't let you just embed the video, you've got to have their 'stuff' as well (controls, icons, user tracking, all that stuff).

So you have to embed like this:

[code]<iframe width="420" height="315"
src="https://www.youtube.com/embed/<youtube-id>">
</iframe>[/code]

If you want to embed a video cleanly with none of that stuff, you have to host it somewhere else, such as Amazon or Google Cloud - and pay a fee per retrieval.

AlexIT

1,482 posts

137 months

Friday 5th May 2017
quotequote all
I found this article, however I cannot test if it works

https://www.labnol.org/internet/light-youtube-embe...