提交 56463a77 编写于 作者: inkwalk's avatar inkwalk

feat(App): getVideoInfo

上级 65f3618b
......@@ -2,3 +2,4 @@ export * from './file/getFileInfo'
export * from './device/compass'
export * from './device/vibrate'
export * from './media/getImageInfo'
export * from './media/getVideoInfo'
import { extend } from '@vue/shared'
import {
defineAsyncApi,
API_GET_VIDEO_INFO,
API_TYPE_GET_VIDEO_INFO,
GetVideoInfoOptions,
GetVideoInfoProtocol,
} from '@dcloudio/uni-api'
import {
warpPlusSuccessCallback,
warpPlusErrorCallback,
} from '../../../helpers/plus'
export const getVideoInfo = <API_TYPE_GET_VIDEO_INFO>defineAsyncApi(
API_GET_VIDEO_INFO,
(options, { resolve, reject }) => {
plus.io.getVideoInfo(
extend(options, {
success: warpPlusSuccessCallback(resolve),
fail: warpPlusErrorCallback(reject),
})
)
},
GetVideoInfoProtocol,
GetVideoInfoOptions
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册