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

Taro.chooseVideo在真机获取不到已上传的视频信息 #14208

Open
qsj919 opened this issue Jul 19, 2023 · 10 comments
Open

Taro.chooseVideo在真机获取不到已上传的视频信息 #14208

qsj919 opened this issue Jul 19, 2023 · 10 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@qsj919
Copy link

qsj919 commented Jul 19, 2023

相关平台

H5

复现仓库

https://github.com/qsj919/videoApp.git
浏览器版本: safari
使用框架: React

复现步骤

  1. yarn install
  2. yarn dev:h5

期望结果

期望在电脑浏览器和手机上都能正常上传视频

实际结果

只有电脑浏览器能正常上传视频,手机上获取不到已上传的视频信息

环境信息

👽 Taro v3.6.8


  Taro CLI 3.6.8 environment info:
    System:
      OS: macOS 13.4
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.14.2 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 8.5.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.8 => 3.6.8 
      @tarojs/components: 3.6.8 => 3.6.8 
      @tarojs/helper: 3.6.8 => 3.6.8 
      @tarojs/plugin-framework-react: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-alipay: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-h5: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-jd: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-qq: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-swan: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-tt: 3.6.8 => 3.6.8 
      @tarojs/plugin-platform-weapp: 3.6.8 => 3.6.8 
      @tarojs/react: 3.6.8 => 3.6.8 
      @tarojs/runtime: 3.6.8 => 3.6.8 
      @tarojs/shared: 3.6.8 => 3.6.8 
      @tarojs/taro: 3.6.8 => 3.6.8 
      @tarojs/taro-loader: 3.6.8 => 3.6.8 
      @tarojs/webpack5-runner: 3.6.8 => 3.6.8 
      babel-preset-taro: 3.6.8 => 3.6.8 
      eslint-config-taro: 3.6.8 => 3.6.8 
      react: ^18.0.0 => 18.2.0 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 19, 2023
@github-project-automation github-project-automation bot moved this to Padding in H5 Jul 19, 2023
@ZakaryCode
Copy link
Contributor

ZakaryCode commented Jul 20, 2023

手机上获取不到已上传的视频信息

具体是什么信息无法获取?麻烦补充下测试使用视频 & 对应手机型号 & 返回值等信息

@qsj919
Copy link
Author

qsj919 commented Jul 21, 2023

手机上获取不到已上传的视频信息

具体是什么信息无法获取?麻烦补充下测试使用视频 & 对应手机型号 & 返回值等信息

视频的所有信息都获取不到,手机是iphone 11,返回值都是空的

@ZakaryCode
Copy link
Contributor

没有报错?具体值有没,截图看看

@qsj919
Copy link
Author

qsj919 commented Jul 24, 2023

没有报错?具体值有没,截图看看

没报错,而且什么都没返回,我上传的demo可以复现的

@qsj919
Copy link
Author

qsj919 commented Jul 24, 2023

没有报错?具体值有没,截图看看

又试了一下,直接选择相册的视频,没任何反应,如果选择直接录制视频上传会报以下错
image

@qsj919
Copy link
Author

qsj919 commented Jul 24, 2023

没说支持 image
那请问下,你在h5是怎么处理上传视频的

@qsj919
Copy link
Author

qsj919 commented Jul 25, 2023

没有报错?具体值有没,截图看看

根据源码已经排查到了,是ios调api的时候,video的oncanplay方法未执行所以未返回视频上传信息

@unclechong
Copy link

chooseVideo h5端为什么要返回base64呢,为什么不直接返回file

@tangbzai
Copy link
Contributor

tangbzai commented Nov 8, 2023

感觉跟 #14678 是同个问题

@ZakaryCode ZakaryCode moved this from Padding to API in H5 May 2, 2024
@Winner-Wei
Copy link

说了这么多,那最后的解决方案是啥嘞??

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
Status: API
Development

No branches or pull requests

5 participants