本文介绍了github页面html中没有视频加载吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的视频无法加载,并托管在github上. github不允许视频吗?

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

我尝试了许多src =链接"

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>

视频网站

推荐答案

video/mpeg是格式上的有效MIME类型,但它是MPEG-1视频之一.因此,浏览器将尝试使用其video/mpeg解码器,不会找到任何解码器,或者只会在您的mp4视频上使用它而失败,然后最终中止.

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.

您想要video/mp4:

<video width="320" height="240" controls>
  <source type="video/mp4" src="https://robocop79.github.io/Websiteland//Twitter/FLT.mp4">
</video>

这篇关于github页面html中没有视频加载吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 00:53