当前页

IZegoCustomMediaCryptoFactory

IZegoCustomMediaCryptoFactory

Declared in callback/IZegoCustomMediaCryptoFactory.java

方法

createMediaCrypto

createMediaCrypto
public IZegoCustomMediaCrypto createMediaCrypto(String streamID, boolean isEncrypt)
创建自定义媒体数据加解密对象。
Declared in callback/IZegoCustomMediaCryptoFactory.java

参数

名称类型描述
streamIDString流 ID。
isEncryptboolean是否加密,true表示加密,false表示解密。

详情

SDK 通知需要开始媒体数据加解密。

  • 通知时机:调用 [startPlayingStream] 或 [startPublishingStream] 成功之后。
  • 支持版本:3.24.0 及以上。

返回值

自定义媒体数据加解密对象。

destroyMediaCrypto

destroyMediaCrypto
public void destroyMediaCrypto(IZegoCustomMediaCrypto instance)
销毁媒体数据加解密对象
Declared in callback/IZegoCustomMediaCryptoFactory.java

参数

名称类型描述
instanceIZegoCustomMediaCrypto回调 [createMediaCrypto] 返回的媒体数据加解密对象。

详情

销毁媒体数据加解密对象。

  • 通知时机:一条流结束时。
  • 支持版本:3.24.0 及以上。

上一篇

izegocustommediacrypto

下一篇

izegocustomvideocapturehandler

当前页

返回到顶部