SDKsuni-app
Create a video message from files
OpenIM uni-app / uni-app x SDK guide for Create a video message from files.
import { createVideoMessageFromFullPath } from '@/uni_modules/unix-openim-sdk'
const message = await createVideoMessageFromFullPath({
videoPath: '/data/user/0/app/cache/video.mp4', videoType: 'mp4', duration: 12,
snapshotPath: '/data/user/0/app/cache/video-cover.jpg',
})Commercial createVideoMessage() can carry source-path metadata. Video and cover must exist, be readable, and match declared type/duration.
Was this page helpful?