虽然我确保使用模拟器Safari可以访问并显示海报,但缩略图并未显示 N.B:这个标签是从检查模拟器html中复制的
<video controls="" class="thumb" width="100%">
<source src="file://localhost/Users/gharris/Library/Application Support/iPhone Simulator/7.1-64/Applications/FF02B808-B27C-4FEC-A1D1-69D07521C947/Documents/BnS/assets/c7984b8a-3630-6f51-9d38-ff00001222dd.mp4" type="video/mp4" poster="file://localhost/Users/gharris/Library/Application Support/iPhone Simulator/7.1-64/Applications/FF02B808-B27C-4FEC-A1D1-69D07521C947/Documents/BnS/assets/cd984b8a-3630-6f51-9d38-ff00001222dd.jpg" preload="auto">
</video>
答案 0 :(得分:0)
我在源标记中发现了问题,当我将其转换为此格式时,它可以正常工作
<video controls="" class="thumb" width="100%" src="file://localhost/Users/gharris/Library/Application Support/iPhone Simulator/7.1-64/Applications/FF02B808-B27C-4FEC-A1D1-69D07521C947/Documents/BnS/assets/c7984b8a-3630-6f51-9d38-ff00001222dd.mp4" type="video/mp4" poster="file://localhost/Users/gharris/Library/Application Support/iPhone Simulator/7.1-64/Applications/FF02B808-B27C-4FEC-A1D1-69D07521C947/Documents/BnS/assets/cd984b8a-3630-6f51-9d38-ff00001222dd.jpg" preload="auto">
</video>
所以只需删除此源标记并将属性直接复制到视频标记
即可