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

Video 无法彻底隐藏 controls 当点击视频时 或自动触发controls 的 toggleVisibility方法 #14923

Open
miaojinsing opened this issue Dec 3, 2023 · 0 comments
Labels
A-components Area - H5 组件库相关 F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@miaojinsing
Copy link

相关平台

H5

浏览器版本: Chrome
使用框架: React

复现步骤

<Video
className={prefixCls "-video"}
src={src}
loop
showPlayBtn={false}
showBottomProgress={false}
showCenterPlayBtn={false}
showBackgroundPlaybackButton={false}
showFullscreenBtn={false}
showProgress={false}
controls={false}
pageGesture={false}
enableProgressGesture={false}
muted
objectFit="fill"
{...videoProps}
/>

期望结果

应该能够控制隐藏和显示

实际结果

无法实现掌控 , 点击视频一定会触发 controls 的 toggleVisibility方法,导致页面存在多余显示

环境信息


  Taro CLI 3.6.20 environment info:
    System:
      OS: macOS 12.7.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 20.10.0 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 10.2.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.20 => 3.6.20 
      @tarojs/components: 3.6.20 => 3.6.20 
      @tarojs/helper: 3.6.20 => 3.6.20 
      @tarojs/plugin-framework-react: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-alipay: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-h5: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-jd: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-qq: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-swan: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-tt: 3.6.20 => 3.6.20 
      @tarojs/plugin-platform-weapp: 3.6.20 => 3.6.20 
      @tarojs/react: 3.6.20 => 3.6.20 
      @tarojs/runtime: 3.6.20 => 3.6.20 
      @tarojs/shared: 3.6.20 => 3.6.20 
      @tarojs/taro: 3.6.20 => 3.6.20 
      @tarojs/taro-loader: 3.6.20 => 3.6.20 
      @tarojs/webpack5-runner: 3.6.20 => 3.6.20 
      babel-preset-taro: 3.6.20 => 3.6.20 
      eslint-config-taro: 3.6.20 => 3.6.20 
      react: ^18.2.0 => 18.2.0 
    npmGlobalPackages:
      typescript: 3.7.4
@ZakaryCode ZakaryCode added A-components Area - H5 组件库相关 V-3 Version - 3.x F-react Framework - React T-h5 Target - 编译到 H5 labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-components Area - H5 组件库相关 F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Status: 组件
Development

No branches or pull requests

2 participants