【问题标题】:Does not display the image as a preview of the HTML video不将图像显示为 HTML 视频的预览
【发布时间】:2021-09-02 06:49:16
【问题描述】:

我已在我的视频标签中插入代码以显示带有图像的预览,但未显示,我不明白为什么。

这是代码:

<video preload="none" width="100%" height="100%" autobuffer="true" controls="true" poster="mypath">
    <source src="mypath" type="video/mp4">
</video>

这就是我在 mozila firefox 中看到的内容:

我也尝试了谷歌浏览器,但问题仍然存在,可能是什么问题?

【问题讨论】:

  • 你在哪里添加了图片路径?
  • @KoshaSanghvi 在控制后的视频标签上

标签: html html5-video


【解决方案1】:

试试这段代码,也可以在 Firefox 中工作:

 <video  width="100%" height="100%" autobuffer="true" controls="true" poster="https://www.w3schools.com/images/picture.jpg">
       <source src="mypath" type="video/mp4">
 </video>

【讨论】:

    猜你喜欢
    • 2015-12-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-26
    相关资源
    最近更新 更多