Is there no video loading in github pages html?

。_饼干妹妹 提交于 2019-12-01 12:28:58

As seen here:

The 'No video with supported format and MIME type found' error message is about the HTML5 media player.
So you do not appear to have support in Windows for playing the media file(s) in the formats that are available.

See also: "HTML5 audio and video in Firefox"

I don't see the error message in Chrome, but the video does not play either.

As an alternative, you might consider:

That is:

<div class="embed-container">
  <iframe
      src="https://www.youtube.com/embed/{{ include.id }}"
      width="700"
      height="480"
      frameborder="0"
      allowfullscreen="">
  </iframe>
</div>

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>

It looks iframe is disabled by github and you cannot use this trick anymore. It says, to help protect the security information enter into this website, the publisher of this content does not allow it to be displayed in a frame.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!