IZegoCustomMediaCrypto
2026-05-06
IZegoCustomMediaCrypto
Declared in callback/IZegoCustomMediaCrypto.java
Methods
getEncryptDstLen
getEncryptDstLen
public int getEncryptDstLen(int srcLen)Get the length of the encrypted target.
Declared in
callback/IZegoCustomMediaCrypto.javaParameters
| 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
onAudioEncryptCallback
public int onAudioEncryptCallback(ByteBuffer inBuffer, ByteBuffer outBuffer)Audio encryption callback.
Declared in
callback/IZegoCustomMediaCrypto.javaParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | ByteBuffer | The block data of the input data. |
| outBuffer | ByteBuffer | The block data of the output data. |
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
onVideoEncryptCallback
public int onVideoEncryptCallback(ByteBuffer inBuffer, ByteBuffer outBuffer)Video encryption callback.
Declared in
callback/IZegoCustomMediaCrypto.javaParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | ByteBuffer | The block data of the input data. |
| outBuffer | ByteBuffer | The block data of the output data. |
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
onAudioDecryptCallback
public int onAudioDecryptCallback(ByteBuffer inBuffer, ByteBuffer outBuffer)Audio decryption callback.
Declared in
callback/IZegoCustomMediaCrypto.javaParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | ByteBuffer | The block data of the input data. |
| outBuffer | ByteBuffer | The block data of the output data. |
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
onVideoDecryptCallback
public int onVideoDecryptCallback(ByteBuffer inBuffer, ByteBuffer outBuffer)Video decryption callback.
Declared in
callback/IZegoCustomMediaCrypto.javaParameters
| Name | Type | Description |
|---|---|---|
| inBuffer | ByteBuffer | The block data of the input data. |
| outBuffer | ByteBuffer | The block data of the output data. |
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.
