embed a you tube video

Tag: github Author: ly339799232 Date: 2012-07-18

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. 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 wikim pages?
  2. If so how?
It's possible that github wiki pages do not allow <object> tags for security purposes.

Best Answer

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

[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)

For more information look here. If you want to keep it simple, just make it a link using the following syntax:

[linkname](http://youtubevideourl)

comments:

The iframe does not work for wiki pages, only this solution currently works.

Other Answer1

It appears that it is possible using the iframe tags:

http://trinker.github.io/reports_dev/video.html