+ 1

I want to add a video to my html. But when i run that program.it says that this video cannot work in frame.How i put video html.

plz..its urgent

20th Sep 2017, 10:53 AM
Ranjan Kumar
Ranjan Kumar - avatar
9 Answers
+ 2
Post your code please.
20th Sep 2017, 12:57 PM
Jonas Schröter
Jonas Schröter - avatar
+ 1
<!DOCTYPE html> <!-- created by ranjan gupta --> <html> <head> <title>my style</title> <script type="text/javascript"> alert ("i am very happy because first time i do this .. created by - ranjan kumar😄😉!"); </script> </head> <body> <div style="background-color:red;color:blue;padding:20px"> <h1>TODAY DATE TIME</h1> <h3> for go to calender click below </h3> </div> <ul type="square" > <li><input id="date" type="date" value="2017-09-20"></li></ul><br /><br /> <div style="background-color:grey;color:ffff0000;padding:20px"><h2>can you please write your name below ?😊</h2></div><br /><br /> <form> <label>NAME:</label><br /> <input type="text" name="name"></form> <div style="background-color:blue;color:purple;padding:20px"> <h4>can you plz. confirm your gender 😊</h4> </div><br /><br /> <form> <label>MALE:</label> <INPUT type="radio" name="male"></INPUT> <label>FEMALE</label> <INPUT type="radio" name="female"></INPUT> </form> <font color="blue" ></font> <h1>want to watch video</h1> <h1>????</h1> <h3>donot worry i am here</h3> <h2>play your video below</h2></font> <iframe height="100%" width="100%" src=" https://www.youtube.com/embed/4jwoYAZlsVE?autoplay=1" allowfullscreen frameborder="2"></iframe><br> </body> </html>
20th Sep 2017, 1:25 PM
Ranjan Kumar
Ranjan Kumar - avatar
+ 1
this code is wroking
20th Sep 2017, 1:26 PM
Ranjan Kumar
Ranjan Kumar - avatar
+ 1
but if i put another youtube video link in the video src in infram tag..then it display error
20th Sep 2017, 1:27 PM
Ranjan Kumar
Ranjan Kumar - avatar
+ 1
Links copied from youtube in your address bar wont work with embedding. If you look at the address of the video in your code it is slightly different to if you opened the page by itself. You can either click the share option, then embed and get the url from there or erase "watch?v=" from the URL and replace it with "embed/" For example: https://www.youtube.com/watch?v=4jwoYAZlsVE becomes https://www.youtube.com/embed/4jwoYAZlsVE Hope this helps!
20th Sep 2017, 9:58 PM
JoeJoe
+ 1
Thats a playlist link, it behaves differently. Try looking here: https://support.google.com/youtube/answer/171780?hl=en-GB Alternatively just click share, then embed to get the link like I said before (This will link just the video, not the playlist)
21st Sep 2017, 10:41 AM
JoeJoe
+ 1
thanks
21st Sep 2017, 11:54 AM
Ranjan Kumar
Ranjan Kumar - avatar
21st Sep 2017, 12:09 AM
Ranjan Kumar
Ranjan Kumar - avatar
0
bro..not wroking
21st Sep 2017, 12:18 AM
Ranjan Kumar
Ranjan Kumar - avatar