html - 在 ionic 3 问题中显示视频
问题描述
如何在 ionic 3 中显示视频,我使用了 ionic 视频播放器插件但它不包含视频控件,我也使用了 video html5 标签但它不起作用,请帮我解决这个问题?
解决方案
我有同样的问题,但我使用下面的代码解决了它..
<div align="center" class="embed-responsive embed-responsive-16by9">
<video width="400" autoplay loop class="embed-responsive-item" controls>
<source src="path/to/the/file.mp4" type="video/mp4">
</video>
</div>
希望这会帮助你..