Skip to main content

createVideoMessageFromFullPath

Feature Introduction

Description

Create a video message. The SDK internally extracts video information from the full path and creates a video message.

Function Prototype


+ (OIMMessageInfo *)createVideoMessageFromFullPath:(NSString *)videoPath
videoType:(NSString *)videoType
duration:(NSInteger)duration
snapshotPath:(NSString *)snapshotPath;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
videoPathNSStringYesAbsolute path
videoTypeNSStringYesVideo type
durationNSIntegerYesDuration
snapshotPathNSStringYesVideo cover path

Return Result

NameTypeDescription
messageOIMMessageInfoSuccessful return

Code Example


OIMMessageInfo *message = [OIMMessageInfo createVideoMessageFromFullPath:@"" videoType:@"" duration:1 snapshotPath:@""];