Published July 26, 2023
Added
-
Support file transfer feature in chat.
-
New interface
ZMFileTransferProgress
inZMVideoSDKSession.h
.@property(nonatomic, assign, readonly) unsigned int ratio; @property(nonatomic, assign, readonly) unsigned long long completeSize; @property(nonatomic, assign, readonly) unsigned int bitPreSecond;
-
New interface
ZMVideoSDKFileStatus
inZMVideoSDKSession.h
.@property(nonatomic, assign, readonly) ZMVideoSDKFileTransferStatus transStatus; @property(nonatomic, retain, readonly) ZMFileTransferProgress *transProgress;
-
New interface
ZMVideoSDKSendFile
inZMVideoSDKSession.h
.@property(nonatomic, assign, readonly) time_t timeStamp; @property(nonatomic, assign, readonly) BOOL isSendToAll; @property(nonatomic, assign, readonly) unsigned long long fileSize; @property(nonatomic, copy, readonly) NSString *fileName; @property(nonatomic, retain, readonly) ZMVideoSDKFileStatus *status; @property(nonatomic, retain, readonly) ZMVideoSDKUser *receiver; - (ZMVideoSDKErrors)cancelSend;
-
New interface
ZMVideoSDKReceiveFile
inZMVideoSDKSession.h
.@property(nonatomic, assign, readonly) time_t timeStamp; @property(nonatomic, assign, readonly) BOOL isSendToAll; @property(nonatomic, assign, readonly) unsigned long long fileSize; @property(nonatomic, copy, readonly) NSString *fileName; @property(nonatomic, retain, readonly) ZMVideoSDKFileStatus *status; @property(nonatomic, retain, readonly) ZMVideoSDKUser *sender; - (ZMVideoSDKErrors)startReceive:(NSString *)downloadPath; - (ZMVideoSDKErrors)cancelReceive;
-
New interface in
ZMVideoSDKSession
.- (BOOL)isFileTransferEnabled; - (ZMVideoSDKErrors)transferFile:(NSString *)filePath; - (NSString *)getTransferFileTypeWhiteList; - (unsigned long long)getMaxTransferFileSize;
-
New interface in
ZMVideoSDKUser
.- (ZMVideoSDKErrors)transferFile:(NSString *)filePath;
-
New callback in
ZMVideoSDKDelegate
.- (void)onSendFile:(ZMVideoSDKSendFile *)sendFile status:(ZMVideoSDKFileTransferStatus)status; - (void)onReceiveFile:(ZMVideoSDKReceiveFile *)receiveFile status:(ZMVideoSDKFileTransferStatus)status;
-
New enum
ZMVideoSDKErrors
inZoomSDKErrors.h
.ZMVideoSDKErrors_Filetransfer_UnknowError = 7500, ZMVideoSDKErrors_Filetransfer_FileTypeBlocked, ZMVideoSDKErrors_Filetransfer_FileSizelimited
-
New enum
ZMVideoSDKFileTransferStatus
.ZMVideoSDKFileTransferStatus_None, ZMVideoSDKFileTransferStatus_ReadyToTransfer, ZMVideoSDKFileTransferStatus_Transfering, ZMVideoSDKFileTransferStatus_TransferFailed, ZMVideoSDKFileTransferStatus_TransferDone
-
-
Support sending raw audio share data.
-
New interface
ZMVideoSDKShareAudioSender
inZMVideoSDKShareHelper.h
.-(ZMVideoSDKErrors)sendShareAudio:(char *)data dataLength:(unsigned int)length sampleRate:(int)rate audioChannel:(ZMVideoSDKAudioChannel)channel;
-
New protocol class
ZMVideoSDKShareAudioSource
inZMVideoSDKShareHelper.h
.-(void)onStartSendAudio:(ZMVideoSDKShareAudioSender *)sender; -(void)onStopSendAudio;
-
New interface in
ZMVideoSDKShareHelper
.- (ZMVideoSDKErrors)startSharingExternalSource:(id<ZMVideoSDKShareSource> _Nonnull)shareSource audioSource:(id<ZMVideoSDKShareAudioSource> _Nullable)audioSource; - (ZMVideoSDKErrors)startSharePureAudioSource:(id<ZMVideoSDKShareAudioSource> _Nonnull)audioSource;
-
Deprecated interface in
ZMVideoSDKShareHelper
.- (ZMVideoSDKErrors)startSharingExternalSource:(id<ZMVideoSDKShareSource>)pSource;
-
New enum
ZMVideoSDKAudioChannel
.ZMVideoSDKAudioChannel_Mono, ZMVideoSDKAudioChannel_Stereo
-
-
Support stereo sound in raw data.
-
New interface in
ZMVideoSDKAudioSender
.-(ZMVideoSDKErrors)send:(char*)data dataLength:(unsigned int)length sampleRate:(int)rate channel:(ZMVideoSDKAudioChannel)channel;
-
Deprecated interface in
ZMVideoSDKAudioSender
.-(ZMVideoSDKErrors)send:(char*)data dataLength:(unsigned int)length sampleRate:(int)rate;
-
Changed & Fixed
- Fixed typo in enum
ZoomVideoSDKErrors_SessionService_Invaild
. Changed toZMVideoSDKErrors_SessionService_Invalid
. - Removed dependencies
fdkaac2.bundle
,zmb.bundle
,asproxy.framework
. - Fixed issue with missing
modmap
in SDK package. - Fixed issue where subscribing to video canvas was not working.
- Fixed issue with
giveUpControlRemoteCamera
returning the wrong value. - Fixed issue with
cancelInviteByPhone
returning the wrong value. - Fixed event
onVideoCanvasSubscribeFail:user:view:
withfailReason
ZMVideoSDKSubscribeFailReason_HasSubscribeTwo720P
not being triggered correctly.