On this page

ZegoCustomMediaCrypto

ZegoCustomMediaCrypto

Declared in ZegoExpressEventHandler.h

Methods

getEncryptDstLen:

getEncryptDstLen:
- (int)getEncryptDstLen:(int) srcLen;
Get the length of the encrypted target.
Declared in ZegoExpressEventHandler.h

Parameters

NameTypeDescription
srcLenintLength of the source.

Details

Get the length of the encrypted destination. When to

  • Trigger: Encrypted per package.
  • Available since: 3.24.0

Return

Length of the destination.

onAudioEncryptCallback:inBufferSize:outBuffer:outBufferSize:

onAudioEncryptCallback:inBufferSize:outBuffer:outBufferSize:
- (int)onAudioEncryptCallback:(const unsigned char *) inBuffer inBufferSize:(int) inBufferSize outBuffer:(unsigned char *) outBuffer outBufferSize:(int) outBufferSize;
Audio encryption callback.
Declared in ZegoExpressEventHandler.h

Parameters

NameTypeDescription
inBufferconst unsigned char *The block data of the input data.
inBufferSizeintLength of inBuffer.
outBufferunsigned char *The block data of the output data.
outBufferSizeintLength of outBuffer.

Details

Audio encryption callback. When to

  • Trigger: Encrypt each audio package.
  • Available since: 3.24.0

Return

Returns 0 on success, non-zero on failure.

onVideoEncryptCallback:inBufferSize:outBuffer:outBufferSize:

onVideoEncryptCallback:inBufferSize:outBuffer:outBufferSize:
- (int)onVideoEncryptCallback:(const unsigned char *) inBuffer inBufferSize:(int) inBufferSize outBuffer:(unsigned char *) outBuffer outBufferSize:(int) outBufferSize;
Video encryption callback.
Declared in ZegoExpressEventHandler.h

Parameters

NameTypeDescription
inBufferconst unsigned char *The block data of the input data.
inBufferSizeintLength of inBuffer.
outBufferunsigned char *The block data of the output data.
outBufferSizeintLength of outBuffer.

Details

Video encryption callback. When to

  • Trigger: Encrypt each video package.
  • Available since: 3.24.0

Return

Returns 0 on success, non-zero on failure.

onAudioDecryptCallback:inBufferSize:outBuffer:outBufferSize:

onAudioDecryptCallback:inBufferSize:outBuffer:outBufferSize:
- (int)onAudioDecryptCallback:(const unsigned char *) inBuffer inBufferSize:(int) inBufferSize outBuffer:(unsigned char *) outBuffer outBufferSize:(int) outBufferSize;
Audio decryption callback.
Declared in ZegoExpressEventHandler.h

Parameters

NameTypeDescription
inBufferconst unsigned char *The block data of the input data.
inBufferSizeintLength of inBuffer.
outBufferunsigned char *The block data of the output data.
outBufferSizeintLength of outBuffer.

Details

Audio decryption callback. When to

  • Trigger: Decrypt each audio package.
  • Available since: 3.24.0

Return

Returns 0 on success, non-zero on failure.

onVideoDecryptCallback:inBufferSize:outBuffer:outBufferSize:

onVideoDecryptCallback:inBufferSize:outBuffer:outBufferSize:
- (int)onVideoDecryptCallback:(const unsigned char *) inBuffer inBufferSize:(int) inBufferSize outBuffer:(unsigned char *) outBuffer outBufferSize:(int) outBufferSize;
Video decryption callback.
Declared in ZegoExpressEventHandler.h

Parameters

NameTypeDescription
inBufferconst unsigned char *The block data of the input data.
inBufferSizeintLength of inBuffer.
outBufferunsigned char *The block data of the output data.
outBufferSizeintLength of outBuffer.

Details

Video decryption callback. When to

  • Trigger: Decrypt each video package.
  • Available since: 3.24.0

Return

Returns 0 on success, non-zero on failure.

Previous

zegocustomaudioprocessconfig

Next

zegocustommediacryptofactory

On this page

Back to top