Soucis pour code vidéo

This is the embed code, but it is not for the video element.

<div style="position:relative;height:0;padding-bottom:56.21%"><iframe src="" style="position:absolute;width:100%;height:100%;left:0" width="641" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>

Correct, but thought he could give the embed URL a shot, or the direct URL and not the tiny URL. Not sure if it will make any difference to be honest…

Edit: wrong quote
Edit 2: embed really isn’t an option

I don’t think the shortened URL would be a problem since the full URL is stored in the cloud. Personally, I’m of the idea that YouTube videos cannot be opened in video element. They need to downloaded and converted to one of the usable formats then uploaded to host server. Again, not my area of extended knowledge…

1 Like

You might be on to something, actually. Is it possible to restrict use of a video URL, hence explaining that third-parties need to specifically use the embed code? I’ll look into this…


StackOverflow agrees with you, @mtf!

And here’s the code for the video:

<video style="width: 640px; height: 360px; left: 0px; top: 0px;" tabindex="-1" class="video-stream html5-main-video" controlslist="nodownload" src="blob:"></video>

Edit: which, obviously, doesn’t work outside of Youtube. I’m amazed.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.