Skip to content
New issue

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

H5使用@tarojs/components的Video组件,暂停视频报错 #8550

Closed
wangjuerong opened this issue Jan 18, 2021 · 2 comments · Fixed by #8551
Closed

H5使用@tarojs/components的Video组件,暂停视频报错 #8550

wangjuerong opened this issue Jan 18, 2021 · 2 comments · Fixed by #8551
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@wangjuerong
Copy link

相关平台

H5

复现仓库

https://github.com/wangjuerong/taro-bug
浏览器版本: Chrome 62
使用框架: React

复现步骤

  1. git clone项目
  2. yarn 安装依赖
  3. yarn dev:h5启动项目
  4. 页面中的视频,点击播放,然后再点击暂停

期望结果

视频可以正常暂停

实际结果

报错:TypeError: Cannot read property 'pause' of undefined

环境信息

👽 Taro v1.2.26


  Taro CLI 1.2.26 environment info:
    System:
      OS: macOS High Sierra 10.13.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.8.1 - ~/.nvm/versions/node/v12.8.1/bin/node
      Yarn: 1.17.3 - ~/.nvm/versions/node/v12.8.1/bin/yarn
      npm: 6.10.2 - ~/.nvm/versions/node/v12.8.1/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.16 => 3.0.16 
      @tarojs/components: 3.0.16 => 3.0.16 
      @tarojs/taro: 3.0.16 => 3.0.16 
      @tarojs/webpack-runner: 3.0.16 => 3.0.16 
      eslint-config-taro: 3.0.16 => 3.0.16 
      react: ^16.10.0 => 16.14.0 

补充信息

@wangfandev
Copy link

这个问题应该怎么解决??this.videoRef.pause()和this.videoRef.currentTime = position报错

@Grewer
Copy link

Grewer commented Jan 20, 2021

升级 taro 版本 @tarojs/components

@Chen-jj Chen-jj added this to the 3.0.25 milestone Jan 22, 2021
@Chen-jj Chen-jj closed this as completed Jan 22, 2021
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants