Skip to main content

createSoundMessageFromFullPath

Description​

info

Create an audio message. The SDK extracts audio information based on the absolute path and creates the audio message internally.

Function Prototype​


+ (OIMMessageInfo *)createSoundMessageFromFullPath:(NSString *)soundPath
duration:(NSInteger)duration;

Input Parameters​

Parameter NameParameter TypeRequiredDescription
soundPathNSStringYesAbsolute path
durationNSIntegerYesDuration

Return Result​

NameTypeDescription
messageOIMMessageInfoSuccess return

Code Example​


OIMMessageInfo *message = [OIMMessageInfo createSoundMessageFromFullPath:@"" duration:1];