Browse SDKs · Android
SDKsAndroid

Create a video message from local paths

Create a video message from absolute video and thumbnail paths.

Copy
Message message = OpenIMClient.getInstance().messageManager.createVideoMessageFromFullPath(
    absoluteVideoPath,
    mimeType,
    durationSeconds,
    absoluteSnapshotPath
);

The absolute video and thumbnail paths must be readable, and the duration is measured in seconds. This method only creates an object waiting to be sent.