We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
微信小程序
小程序基础库: 2.25.2 使用框架: React
同一个页面应该多个video标签
一个页面多个video标签,可以通过Taro.createVideoContext控制单个视频的播放和暂停
Taro.createVideoContext的play()、pause()方法不起作用
👽 Taro v3.4.11 publicPath: undefined PUBLIC_PATH: "//test-hwc-gy1-bu-dx-bucket-deepexi.obs.cn-southwest-2.myhuaweicloud.com/dr-uat/mobile/code" Taro CLI 3.4.11 environment info: System: OS: Windows 10 Binaries: Node: 14.16.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - C:\Users\12726\AppData\Roaming\npm\yarn.CMD npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
@LLLLLLLX 可以先在原生 demo 上试试是否 ok
Sorry, something went wrong.
我试了 原生 和 Taro 项目 都支持的呢,虽然我的 taro 版本是最新版本,不过应该影响不大,要不你给个复现的 demo
在 tarojs 3.6.16版本上,遇到同样的问题。但我认为不是一个页面多个video标签导致的问题,而是video标签绑定动态ID时,即使一个页面就一个video标签也会出现无法控制的问题。 单个video标签,使用video标签绑定静态ID,能正常调用video的方法。
<Video id={video_${id}} ... /> const videoContext = Taro.createVideoContext(video_${id}); videoContext.seek(30);
<Video id={
} ... />
const videoContext = Taro.createVideoContext(
); videoContext.seek(30);
No branches or pull requests
相关平台
微信小程序
小程序基础库: 2.25.2
使用框架: React
复现步骤
同一个页面应该多个video标签
期望结果
一个页面多个video标签,可以通过Taro.createVideoContext控制单个视频的播放和暂停
实际结果
Taro.createVideoContext的play()、pause()方法不起作用
环境信息
The text was updated successfully, but these errors were encountered: