Question:
Is it possible to embed a flash video into README.md on GitHub or embade a youtube video?
Answer:
Using Gif:
Example:
1 |
[](https://www.youtube.com/watch?v=ek1j272iAmc) |
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:
1 |
[](https://youtu.be/vt5fpE0bzSY) |
Use youtube’s preview picture
You can also use the picture generated by youtube for your video.
For youtube urls in the form of:
1 2 |
https://www.youtube.com/watch?v= https://youtu.be/ |
The preview urls are in the form of:
1 2 |
https://img.youtube.com/vi/ https://img.youtube.com/vi/ |
Example:
1 |
[](https://youtu.be/T-D1KVIuvjA) |
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:
1 |
[](https://asciinema.org/a/113463) |