How to embed a video into GitHub README.md?

Question:

Is it possible to embed a flash video into README.md on GitHub or embade a youtube video?

Answer:

Using Gif:

Example:

Use a video player picture

You could trick the user into thinking the video is on the readme page with a picture. It sounds like an ad trick, it’s not perfect, but it works and it’s funny ;).

Example:

Use youtube’s preview picture

You can also use the picture generated by youtube for your video.

For youtube urls in the form of:

The preview urls are in the form of:

Example:

Use asciinema

If your use case is something that runs in a terminal, asciinema lets you record a terminal session and has nice markdown embedding.

Hit share button and copy the markdown snippet.

Example:

Leave a Reply