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.
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 😍.
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With