NervJS / taro

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
https://docs.taro.zone/
Other
35.36k stars 4.77k forks source link

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

Open patchBig opened 1 month ago

patchBig commented 1 month ago

相关平台

微信小程序

复现仓库

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