SDKsFlutter
Create a video message
Create a video message from platform-readable paths with the OpenIM Flutter SDK.
final message = await OpenIM.iMManager.messageManager.createVideoMessage(
videoPath: videoPath,
videoType: 'video/mp4',
duration: durationSeconds,
snapshotPath: snapshotPath,
);The video and snapshot paths must be readable, and duration is measured in seconds. The Future creates an object waiting to be sent.
Was this page helpful?