Embed video in markdown with relative path #133813
Replies: 4 comments 4 replies
-
|
GitHub’s markdown rendering does not support embedding videos directly with the video tag or using the image syntax for video files. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
You can use webp format |
Beta Was this translation helpful? Give feedback.
-
|
this github bug is so ridiculous... gitea at least supports video playback via blob API and raw API as a compromise solution currently it returns videos with if the github raw API would return MP4 videos with example: the python http server returns the correct git clone https://github.com/milahu/poleshift-simulation-hashzappa
cd poleshift-simulation-hashzappa
python -m http.server 2935 &
sleep 1
curl -sI http://0.0.0.0:2935/img/Earth%20Orbital%20View%200zrb9mx6sQsN7gWa.mp4 | grep -i ^Content-type:
# Content-type: video/mp4
xdg-open http://0.0.0.0:2935/img/Earth%20Orbital%20View%200zrb9mx6sQsN7gWa.mp4
# -> video plays in the browserworkaround: pass the raw video URL to a video player other file typesfor other file types, the github raw API already returns correct example: Earth Orbital View 0zrb9mx6sQsN7gWa.jpg example: Earth Orbital View 0zrb9mx6sQsN7gWa.info.json |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi when I try to show a video in my markdown files on github they are not showing. To be clear, the video at
./results/old_episodes/simulation.mp4is in my git repository as well as the markdown file. This is the syntax I am using:This syntax works well on GitLab and in the vscode markdown preview. Any help would be great thanks.
Beta Was this translation helpful? Give feedback.
All reactions