ZegoCustomMediaCrypto
ZegoCustomMediaCrypto
Declared in ZegoExpressEventHandler.h
Methods
getEncryptDstLen:
getEncryptDstLen:
- (int)getEncryptDstLen:(int) srcLen;Get the length of the encrypted target.
Declared in
ZegoExpressEventHandler.hParameters
| Name | Type | Description |
|---|---|---|
| srcLen | int | Length 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.hParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | const unsigned char * | The block data of the input data. |
| inBufferSize | int | Length of inBuffer. |
| outBuffer | unsigned char * | The block data of the output data. |
| outBufferSize | int | Length 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.hParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | const unsigned char * | The block data of the input data. |
| inBufferSize | int | Length of inBuffer. |
| outBuffer | unsigned char * | The block data of the output data. |
| outBufferSize | int | Length 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.hParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | const unsigned char * | The block data of the input data. |
| inBufferSize | int | Length of inBuffer. |
| outBuffer | unsigned char * | The block data of the output data. |
| outBufferSize | int | Length 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.hParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | const unsigned char * | The block data of the input data. |
| inBufferSize | int | Length of inBuffer. |
| outBuffer | unsigned char * | The block data of the output data. |
| outBufferSize | int | Length 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.
