You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, when you put a video into a repository, it has to work solely through GitHub online storage (github-usercontent) and doesn't work when you try to link a local repository video. It would be great if the option to embed videos into Markdown could be done without relying on this server. This helps with preservation, and cross-platform support (when you import the repository to another site)
Convert Video to a Web-Compatible Format: Ensure your video file is in a format supported by web browsers, such as MP4, WebM, or Ogg. You can use tools like ffmpeg to convert your video if needed:
Upload Video to Your Repository: Place your converted video file in your GitHub repository. Make sure it's in a directory that's accessible to your Markdown file.
Embed Video in Markdown: In your Markdown file, use the HTML <video> tag to embed the video. Provide the path to your video file relative to your Markdown file:
<videowidth="320"height="240"controls>
<sourcesrc="path/to/your/video.mp4"type="video/mp4">
Your browser does not support the video tag.
</video>
Replace "path/to/your/video.mp4" with the actual path to your video file within your repository.
Commit and Push Changes: After embedding the video in your Markdown file, commit the changes to your repository and push them to GitHub:
Verify on GitHub: Visit your repository on GitHub and navigate to the Markdown file where you embedded the video. You should now see the video embedded in the file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Product Feedback
Body
[Feature request] Local embedded videos
Right now, when you put a video into a repository, it has to work solely through GitHub online storage (github-usercontent) and doesn't work when you try to link a local repository video. It would be great if the option to embed videos into Markdown could be done without relying on this server. This helps with preservation, and cross-platform support (when you import the repository to another site)
Beta Was this translation helpful? Give feedback.
All reactions