Browse SDKs · Flutter
SDKsFlutter

Create a video message from local paths

Create a video message from absolute paths with the OpenIM Flutter SDK.

Copy
final message = await OpenIM.iMManager.messageManager
    .createVideoMessageFromFullPath(
  videoPath: videoPath,
  videoType: 'video/mp4',
  duration: durationSeconds,
  snapshotPath: snapshotPath,
);

The absolute video and snapshot paths must be readable. The Future creates an object waiting to be sent.