<video>标记移动设备问题

时间:2018-07-01 10:05:03

标签: javascript html css html5-video

我有一个需要自动播放的背景视频。 当前代码仅在桌面上有效:

.bg_video{
 position: fixed; 
 right: 0; 
 bottom: 0;
 min-width: 100%; 
 min-height: 100%;
 width: auto; 
 height: auto; 
 z-index: -1000;
 background-size: cover; 
 }

<video autoplay loop poster="polina.jpg" class="bg_video">
 <source src="video.webm" type="video/webm">
 <source src="video.mp4" type="video/mp4">
 </video> 

搜索一下,我发现:https://medium.com/this-also/whitewater-9b47f1e32ffe

听起来不错,但是尝试用白水装载时却出现错误

video not found 
whitewater.whitewater.ProgramEnd

有关该问题的一些错误报告 https://github.com/samiare/whitewater-encoder/issues/7

根据提示,我已经安装了brew和ffmpeg

如何解决?

0 个答案:

没有答案