0
How can i add a video on a website i want to make
HTML
22 Answers
+ 14
@siraaj ,this is not video...this is an inline frame.
it is basically a frame with which you can embed a frame of another website in your own website..
use the code that @Jayprakash provided.
or,inside your iframe src,provide a valid video url...like @Hardik did.
+ 14
if you still have confusion,you can ask @Hardik...he embedded the sololearn app review video.
@Hardik,could you please clear it out for him.
+ 13
why would it be illegal?...you are not stealing someone's content..you are simply sharing it with others.
+ 13
okay...if you still think it would be illegal or something,then you can use it for practice purposes,and delete it later.
+ 13
you are always welcome..
happy coding..👍
+ 12
HTML5 made it very easy to embed videos on your website using the <video> tag.
you can learn more from here.
https://www.w3schools.com/html/html5_video.asp
+ 12
if you want to make your video visible on your web page created on sololearn you can do following ,
1.upload your video to youtube
2.copy embeded video URL from youtube .
3.paste it on your web page you creating on sololearn.
done 👍
reason you cannot do it using your mobile phones local storage is video is required to b stored on same server (storage on device where your html file is located) , when you upload your html file on sololearn or when you create html file on sololearn app , there is no option yet to upload video files so you cannot directly embed/show your video on sololearn html page you are creating.
Look following example .
https://code.sololearn.com/Wk8jAEaC4IAG/?ref=app
+ 12
yes for sure ..
@siraaj
if you want to make video playable on your webpage add compleate url of your video just like
<iframe width="320" height="240" src="http://download2.o2tvseries.com/Beyond/Season%2001/Beyond%20-%20S01E04%20(TvShows4Mobile.Com).mp4" frameborder="0" allowfullscreen></iframe>
this ,
this ll make your video playable on your web page.
i think this is what you are tring to do..
+ 1
in HTML5 video tag is available. through that you can add a video
here is the code
<video controls autoplay loop>
<source src="video.mp4" type="video/mp4">
<source src="video.ogg" type="video/ogg">
video not supported in your browser
</video>
controls attribute specifies the video controls i.e, for user to control the video(play,pause,volume,etc)
autoplay atribute is for (as soon as your webpage is ready without asking the visitor to site the video will start)
loop attribute is used for as soon as the video gets over the loop attribute acts and video starts again....
if now you have any doubt then ask.
+ 1
Thanks I understand now I now how to do something else
+ 1
thank you Hardik Raut I understand it works
0
Thank you very much
0
but how do you add it to your web in sololearn from your phone to your code so other people can watch for free
0
thanks
0
<html>
<head>
<title>Video Embed Example</title>
</head>
<body>
This Is a demo video.
<br>
<iframe width="320" height="240" src="http://o2tvseries.com/Beyond/Season-01/Episode-04/index.html" frameborder="320" allowfullscreen></iframe>
</body>
</html>
0
check this in your code playground please
0
Tiyam is it illegal??
0
okay😓
0
its fine guys I will google it
0
okay bye!