我遇到过需要在AES加密内部方法的情况下拦截HLS密钥请求的响应的场景。Wowza流媒体服务器拦截HLS密钥请求的响应
以下是通过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)
当请求键调用。
上述所有方法都拦截了密钥请求调用。有什么方法可以在发送给客户端之前拦截关键响应?
嗯,我使用的方法'onHTTPCupertinoEncryptionKeyData试图(HTTPStreamerSessionCupertino httpCupertinoStreamingSession,IHTTPRequest REQ,IHTTPResponse RESP,字节[] encKeyData)'虽然我观察到WMS输出被追加到我自定义输出。最后,我决定采用AES-128外部方法,现在我正在处理密钥传送的逻辑 –