0

How can i add a video on a website i want to make

HTML

7th Apr 2017, 4:15 PM
Light Feyr
Light Feyr - avatar
22 Réponses
+ 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.
7th Apr 2017, 5:49 PM
ElricTheCoder
ElricTheCoder - avatar
+ 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.
7th Apr 2017, 5:57 PM
ElricTheCoder
ElricTheCoder - avatar
+ 13
why would it be illegal?...you are not stealing someone's content..you are simply sharing it with others.
7th Apr 2017, 5:54 PM
ElricTheCoder
ElricTheCoder - avatar
+ 13
okay...if you still think it would be illegal or something,then you can use it for practice purposes,and delete it later.
7th Apr 2017, 5:59 PM
ElricTheCoder
ElricTheCoder - avatar
+ 13
you are always welcome.. happy coding..👍
7th Apr 2017, 6:17 PM
Hardik Raut
Hardik Raut - avatar
+ 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
7th Apr 2017, 4:37 PM
ElricTheCoder
ElricTheCoder - avatar
+ 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
7th Apr 2017, 5:35 PM
Hardik Raut
Hardik Raut - avatar
+ 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..
7th Apr 2017, 6:10 PM
Hardik Raut
Hardik Raut - avatar
+ 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.
7th Apr 2017, 4:38 PM
Jay prakash Maurya
Jay prakash Maurya - avatar
+ 1
Thanks I understand now I now how to do something else
7th Apr 2017, 5:38 PM
Light Feyr
Light Feyr - avatar
+ 1
thank you Hardik Raut I understand it works
7th Apr 2017, 6:16 PM
Light Feyr
Light Feyr - avatar
0
Thank you very much
7th Apr 2017, 4:39 PM
Light Feyr
Light Feyr - avatar
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
7th Apr 2017, 4:42 PM
Light Feyr
Light Feyr - avatar
0
thanks
7th Apr 2017, 5:27 PM
Light Feyr
Light Feyr - avatar
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>
7th Apr 2017, 5:44 PM
Light Feyr
Light Feyr - avatar
0
check this in your code playground please
7th Apr 2017, 5:45 PM
Light Feyr
Light Feyr - avatar
0
Tiyam is it illegal??
7th Apr 2017, 5:51 PM
Light Feyr
Light Feyr - avatar
0
okay😓
7th Apr 2017, 5:55 PM
Light Feyr
Light Feyr - avatar
0
its fine guys I will google it
7th Apr 2017, 5:58 PM
Light Feyr
Light Feyr - avatar
0
okay bye!
7th Apr 2017, 6:00 PM
Light Feyr
Light Feyr - avatar