Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there no video loading in github pages html?

My video won't load and is hosted on github. Does github not allow videos?

I have tried many src="Links"

<video width="320" height="240" controls>
<source src="../../Websiteland/Twitter/FLT.mp4" type="video/mpeg">
Your browser does not support this awesome video title.
</video>

Website for video

like image 546
Robocop79 Avatar asked Jan 28 '19 05:01

Robocop79


People also ask

Does GitHub Pages support video?

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 😍.

Does GitHub Pages support HTML?

GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website.

Can we upload video in GitHub repository?

Today, we're announcing that the ability to upload video is generally available for everyone across GitHub. Now you can upload . mp4 and . mov files in issues, pull requests, discussions, and more.

How do I watch GitHub Pages?

Under "GitHub Pages", select the GitHub Pages visibility drop-down menu, then click a visibility. To see your published site, under "GitHub Pages", click your site's URL. Note: It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub Enterprise Cloud.


1 Answers

video/mpeg is a valid MIME type in the form, but it is the one of MPEG-1 videos. So browsers will try to use their video/mpeg decoder, won't find any or will just fail to use it on your mp4 video and finally abort.

You wanted video/mp4:

<video width="320" height="240" controls>
  <source type="video/mp4" src="https://robocop79.github.io/Websiteland//Twitter/FLT.mp4">
</video>
like image 101
Kaiido Avatar answered Oct 04 '22 06:10

Kaiido