Rob*_*p79 6 html video github html5-video
我的视频无法加载并托管在 github 上。github 不允许视频吗?
我试过很多 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>
Run Code Online (Sandbox Code Playgroud)
video/mpeg是表单中有效的 MIME 类型,但它是 MPEG-1 视频之一。因此,浏览器将尝试使用其video/mpeg解码器,但找不到任何解码器,或者只是无法在您的 mp4 视频上使用它,最后中止。
你自找的video/mp4:
<video width="320" height="240" controls>
<source type="video/mp4" src="https://robocop79.github.io/Websiteland//Twitter/FLT.mp4">
</video>Run Code Online (Sandbox Code Playgroud)
正如这里所见:
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:
nathancy/jekyll-embed-video to embed the video player.That is:
<div class="embed-container">
<iframe
src="https://www.youtube.com/embed/{{ include.id }}"
width="700"
height="480"
frameborder="0"
allowfullscreen="">
</iframe>
</div>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4086 次 |
| 最近记录: |