【发布时间】:2016-07-15 14:28:27
【问题描述】:
我遇到了一个场景,在 AES 加密内部方法的情况下,需要拦截 HLS Key 请求的响应。
以下是Wowza给出的句柄
onHTTPCupertinoEncryptionKeyCreateLive(IApplicationInstance
appInstance, String streamName, byte[] encKey)
在请求直播密钥时调用(每个发布的流)
void onHTTPCupertinoEncryptionKeyCreateVOD(HTTPStreamerSessionCupertino
httpSession, byte[] encKey)
在请求视频点播密钥时调用(每个会话)
void onHTTPCupertinoEncryptionKeyData(HTTPStreamerSessionCupertino
httpSession, IHTTPRequest req, IHTTPResponse resp, byte[] encKeyData)
在请求关键数据时调用。
void onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer
liveStreamPacketizer, String streamName, CupertinoEncInfo encInfo, long
chunkId, int mode)
在请求直播密钥时调用(每个发布的流,每个块 - 用于旋转密钥)
void onHTTPCupertinoEncryptionKeyRequest(HTTPStreamerSessionCupertino
httpSession, IHTTPRequest req, IHTTPResponse resp)
在请求密钥时调用。
上述所有方法都会拦截密钥请求调用。有什么方法可以在密钥响应发送到客户端之前拦截它?
【问题讨论】:
标签: java key wowza http-live-streaming