I found a solution to put a youtube link into a HTML tag, but it does not work, the video is not displayed:
<video controls="controls" x-webkit-airplay="allow" class="video-stream"
src="http://youtu.be/8sUr5uBFInQ"></video>
According to this blog, you need a different syntax.
<iframe class="youtube-player" type="text/html" width="640" height="385"
src="http://www.youtube.com/embed/VIDEO_ID" allowfullscreen frameborder="0">
</iframe>
Related
I am able to embed a google drive video, however it does not allow me to full screen it. I have tried all of the configurations below to no avail.
(allowfullscreen)
<iframe src="https://drive.google.com/file/d/1yJSTR8aawOqfBE8ww87rTdrOQiv-M5Yb/preview" width="640" height="480" allowfullscreen></iframe>
(allowfullscreen="allowfullscreen")
<iframe src="https://drive.google.com/file/d/1KJ0p1MLEk0CuXHikzKLGq2jx0XcU6V0s/preview" width="640" height="480" allowfullscreen="allowfullscreen"></iframe>
(allowfullscreen="true")
<iframe src="https://drive.google.com/file/d/1KJ0p1MLEk0CuXHikzKLGq2jx0XcU6V0s/preview" width="640" height="480" allowfullscreen="true"></iframe>
(allowfullscreen="0")
<iframe src="https://drive.google.com/file/d/1yJSTR8aawOqfBE8ww87rTdrOQiv-M5Yb/preview" width="640" height="480" allowfullscreen="0"></iframe>
I apologize if this is a noob question
Here is the link in the Vimeo iframe:
<iframe
title="vimeo-player"
src="https://player.vimeo.com/video/348628277"
width="640"
height="360"
frameborder="0"
></iframe>
The above works.
But the below does not work:
<video src="https://player.vimeo.com/video/348628277" autoPlay="true" loop />
It does not work because the link is to the webpage, not the video. How do I get the URL to the video then?
You can use some of the third-party websites to get the mp4 links of different video qualities, like :
https://en.savefrom.net/11-how-to-download-vimeo-video
https://www.savethevideo.com/vimeo-downloader
Simple way to watch a video from an external domain on my second domain ?
I did try to embedded the video but it doesn't work so probably i need to change something on the source domain of the video but i don't know what i need to do.
I reckon I have found a solution. It turns out that, instead of using an <iframe> to play video's you should be using <video> as seen here
So instead of
<iframe src="https://havanamedia.altervista.org/wp-content/uploads/2020/07/video-salsa-classes.mp4" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="400px" width="600px" allowfullscreen></iframe>
You should do:
<video name="myiFrame" height="400px" width="600px" controls allowfullscreen>
<source src="https://havanamedia.altervista.org/wp-content/uploads/2020/07/video-salsa-classes.mp4" type="video/mp4">
</video>
Hope this helps! If not please comment
How can i autoplay and loop last video from user?
<iframe width="720" height="480" src="http://www.youtube.com/embed?max-results=1&showinfo=0&rel=0&controls=0&autoplay=1&listType=user_uploads&list=DchRussia" frameborder="0" allowfullscreen></iframe>
According to YouTube API you would need to get the list of user's videos and store the ID of last video, and put it right behind playlist=VIDEO_ID
so your iframe could look like this
<iframe width="720" height="480" src="https://www.youtube.com/embed/LAST_VIDEO_ID?rel=0&showinfo=0&rel=0&controls=0&autoplay=1&loop=1&playlist=LAST_VIDEO_ID" frameborder="0" allowfullscreen></iframe>
I'm using the tag <iframe> to embed this video to my website, and I can't avoid the autoplay function, I've tried adding &autoplay=0 to the url, autoplay='false' to the config, etc, but I can't avoid it.
Here's my html:
<iframe src='http://www.retromallorca.com/archivos/2014/trailer-retromallorca-2014.mp4' width='600' height='350' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>