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

期望添加微信小程序 getVideoInfo 方法支持 #8541

Closed
cocoyk opened this issue Jan 15, 2021 · 2 comments
Closed

期望添加微信小程序 getVideoInfo 方法支持 #8541

cocoyk opened this issue Jan 15, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@cocoyk
Copy link

cocoyk commented Jan 15, 2021

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

获取视频详细信息(画面方向,视频格式,视频长度,视频大小,视频宽高,视频帧率,视频码率);

具体到我的问题,是想获取视频的高宽,以便动态设置Video组件的宽高。

这个 API 长什么样?

类似原生微信小程序 https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.getVideoInfo.html

Taro. getVideoInfo(Object object);
参数 Object object

属性 类型 默认值 必填 说明

src string 是 视频文件路径,可以是临时文件路径也可以是永久文件路径

success function 否 接口调用成功的回调函数

fail function 否 接口调用失败的回调函数

complete function 否 接口调用结束的回调函数(调用成功、失败都会执行)

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label Jan 15, 2021
@Chen-jj Chen-jj added this to the 3.1.0 milestone Jan 18, 2021
@luckyadam
Copy link
Member

可以直接提个 pr

@Chen-jj
Copy link
Contributor

Chen-jj commented Jan 25, 2021

3.1 已支持

@Chen-jj Chen-jj closed this as completed Jan 25, 2021
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

3 participants