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

feat(h5): support chooseMedia api #13859

Merged
merged 13 commits into from
Jun 8, 2023
Merged

feat(h5): support chooseMedia api #13859

merged 13 commits into from
Jun 8, 2023

Conversation

ZakaryCode
Copy link
Contributor

@ZakaryCode ZakaryCode commented May 16, 2023

这个 PR 做了什么? (简要描述所做更改)

  • 支持 chooseMedia 方法,基于该方法改造 chooseImage、chooseVideo 实现方案

    • 当前实现暂不支持 compressed 属性,与视频拍摄时长限制
    • 由于浏览器端不支持通过 input[capture] 调用摄像头获取图片或视频,处于用户体验考虑禁用其选择相册、摄像头
  • 支持 getVideoInfo 方法

  • 将 webpackMode 设置由 weak 改为 lazy (部分环境会抛出错误,Error: Module is not available (weak dependency))

这个 PR 是什么类型? (至少选择一个)

  • 新功能(Feature)
  • 代码重构(Refactor)
  • TypeScript 类型定义修改(Typings)
  • 文档修改(Docs)

这个 PR 涉及以下平台:

  • Web 平台(H5)

@ZakaryCode ZakaryCode added A-api Area - H5 API 相关 T-h5 Target - 编译到 H5 labels May 16, 2023
@ZakaryCode ZakaryCode marked this pull request as ready for review May 16, 2023 09:19
@ZakaryCode ZakaryCode added this to the 3.6.8 milestone May 29, 2023
@ZakaryCode ZakaryCode merged commit f7696a5 into next Jun 8, 2023
@ZakaryCode ZakaryCode deleted the fix/h5_media branch June 8, 2023 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-api Area - H5 API 相关 T-h5 Target - 编译到 H5
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants