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 标签无法添加 customCache={false} 属性 #16317

Open
patchBig opened this issue Aug 15, 2024 · 1 comment
Open

Video 标签无法添加 customCache={false} 属性 #16317

patchBig opened this issue Aug 15, 2024 · 1 comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@patchBig
Copy link

相关平台

微信小程序

复现仓库

https://github.com/patchBig/video_custom_cache.git
小程序基础库: 不需要
使用框架: React

复现步骤

  1. 编译代码
  2. 微信小程序工具点击“预览”
  3. iOS 手机扫码
  4. 打开开发调试工具
  5. 点击 WXML,查看 video 中的属性,其中不会有 customCache 属性

期望结果

打开 WXML 后,查看 video 属性,其中包含 customCache 属性

实际结果

未包含 customCache 属性

环境信息

Taro v3.6.19


  Taro CLI 3.6.19 environment info:
    System:
      OS: macOS 13.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.19 => 3.6.19
      @tarojs/components: 3.6.19 => 3.6.19
      @tarojs/helper: 3.6.19 => 3.6.19
      @tarojs/plugin-framework-react: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-alipay: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-h5: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-jd: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-qq: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-swan: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-tt: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-weapp: 3.6.19 => 3.6.19
      @tarojs/react: 3.6.19 => 3.6.19
      @tarojs/runtime: 3.6.19 => 3.6.19
      @tarojs/shared: 3.6.19 => 3.6.19
      @tarojs/taro: 3.6.19 => 3.6.19
      @tarojs/taro-loader: 3.6.19 => 3.6.19
      @tarojs/webpack5-runner: 3.6.19 => 3.6.19
      babel-preset-taro: 3.6.19 => 3.6.19
      eslint-config-taro: 3.6.19 => 3.6.19
      react: ^18.0.0 => 18.3.1
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 15, 2024
@patchBig
Copy link
Author

  1. 使用小程序代码 WXML,iOS 手机预览,里面包含 customCache=false
<video style="width: 100vw; margin-top: 2px" autoplay muted custom-cache="{{false}}" />
Alt text

This was referenced Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

1 participant