简体   繁体   English

html5 视频:加载视频后,会出现一个 Flash。 如何删除它?

[英]html5 video: once the video is loaded, a flash is appeared. how to remove it?

I am using html5 and while the video is downloading I am using a fallback image in poster attribute.我正在使用 html5,在下载视频时,我在海报属性中使用了后备图像。 but the problem is once the video is downloaded a flashy screen is showing for a short period of time.但问题是一旦下载了视频,就会在短时间内显示一个华丽的屏幕。 how can I remove this, so that the flash will not visible?我怎样才能删除它,使闪光灯不可见?

<video class="bg-video" loop="" muted="" autoplay="" playsinline="" poster="https://i3.ytimg.com/vi/Zs0bsagDzw8/maxresdefault.jpg">
  <source />
</video>

live site:现场直播:

https://nordic.dnscheck.io/ https://nordic.dnscheck.io/

If you mean the black frame, it's in your video so you should edit it out from there.如果您指的是黑框,则它在您的视频中,因此您应该从那里进行编辑。

If you really can't edit that file anymore you can still kind of workaround that by using the media fragment syntax and make your video automatically seek to after that black frame:如果您真的无法再编辑该文件,您仍然可以通过使用媒体片段语法来解决该问题,并使您的视频在该黑框之后自动寻找:

 <video muted loop autoplay poster="https://nordic.dnscheck.io/bilder/poster.webp" src="https://nordic.dnscheck.io/nordic.webm#t=0.8" ></video>

However beware that the black frame will still be here at the next loop.但是请注意,黑框在下一个循环中仍会出现在此处。

Also, while it's not an issue for you since you do autoplay the video, one should note that (currently) setting the seeking time through the media fragment syntax will disable the poster once the video has loaded.此外,虽然这对您来说不是问题,因为您会自动播放视频,但应该注意(当前)通过媒体片段语法设置搜索时间将在视频加载后禁用海报。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM