video 设置autoplay=true 为什么不能自动播放?
发布于 6 年前 作者 mhan 15300 次浏览 来自 问答

video 设置autoplay=true 为什么不能自动播放?

不管是autoplay=‘true’ 还是autoplay=‘{{autoplay}}’ 都不能自动播放

以下是代码:

<video id=“video-{{index}}” autoplay="{{autoplay}}" bindplay= ‘playVideo’ bindpause=‘pauseVideo’ src="{{item.videouri}}" binderror=“error” style=“width: 100%; margin-top: 15rpx” />

2 回复

你好,autoplay=“{{autoplay}}” 这种写法是没有错的,能否提供出现问题的机型和微信版本号,并提供相关的代码片段呢https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

autoplay=‘true’ 是对的啊,你看看其他哪出错了?开发者工具上都不能正常播放吗?

回到顶部