Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I embed a YouTube video on GitHub wiki pages?

I am fairly new to markup (though it's extremely easy to pickup). I am working on a package and am trying to get the wiki pages looking nice as a help manual. I can insert a YouTube video link into the wiki page pretty easily but how do I embed a YouTube video. I know this may not be possible.

I have read you can use HTML tags so I tried embedding with HTML per this link as follows:

<object width="425" height="350">   <param name="movie" value="http://www.youtube.com/user/wwwLoveWatercom?v=BTRN1YETpyg" />   <param name="wmode" value="transparent" />   <embed src="http://www.youtube.com/user/wwwLoveWatercom?v=BTRN1YETpyg"          type="application/x-shockwave-flash"          wmode="transparent" width="425" height="350" /> </object> 

And saved the page but nothing happened.

  1. Is it possible to embed a YouTube video on GitHub wiki pages?
  2. If so how?
like image 767
Tyler Rinker Avatar asked Aug 04 '12 00:08

Tyler Rinker


People also ask

Can you add video to GitHub pages?

Just a couple months ago GitHub announced video uploads support, which allows you to just drag&drop an . mp4 or . mov onto an issue, pull request or discussion and have it uploaded and hosted by GitHub for free 😍.

How do I link a video to GitHub?

You just drag your video file on your laptop or pc to the markdown file in Github. Done. Easy peasy. Before this, I can embed the video either change it to the gif or create a new file and reference it to the README file.

Can I embed video in markdown?

While its not possible to embed a video in markdown, the best and easiest way is to extract a frame from the video, add a layer with a play icon and link the video url on the image.


1 Answers

It's not possible to embed videos directly, but you can put an image which links to a YouTube video:

[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](https://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE) 
  • For more information about Markdown look at this Markdown cheatsheet on GitHub.
  • For more information about Youtube image links look this question.
like image 157
MGA Avatar answered Oct 06 '22 07:10

MGA