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

H5 支持 createVideoContext #7610

Closed
helsonxiao opened this issue Sep 15, 2020 · 1 comment
Closed

H5 支持 createVideoContext #7610

helsonxiao opened this issue Sep 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@helsonxiao
Copy link
Contributor

helsonxiao commented Sep 15, 2020

这个特性解决了什么问题?

在 H5 页面中可以通过 VideoContext 实例操纵 video,实现和小程序一样的 API。

目前在项目中我只能通过 document.getElementById 拿到 video 标签,使用 HTML 标准的 play / pause,而且需要实现两遍。

源码的实现完全跑不起来,我提了一个 pr,可以简单运行,但是没有拉齐小程序的那些 API
https://github.com/NervJS/taro/blob/next/packages/taro-h5/src/api/video/index.js#L85

这个 API 长什么样?

尽可能与小程序平台上的 createVideoContext API 保持一致。

@helsonxiao
Copy link
Contributor Author

已实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant