Skip to main content

createVideoMessageFromFullPath

Description

info

Create a video message. The SDK extracts video information based on the absolute path and creates the video message internally.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
videoPathNSStringYesAbsolute path
videoTypeNSStringYesVideo type
durationNSIntegerYesDuration
snapshotPathNSStringYesVideo thumbnail path

Return Result

NameTypeDescription
messageOIMMessageInfoSuccess return

Code Example


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