Is there another encURL that I can enter in the method?
public void onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName,
CupertinoEncInfo encInfo, long chunkId, int mode) {
if (streamName.startsWith("aes")) {
getLogger().info("http://localhost:1935/wowza/" + streamName + "/playlist.m3u8");
encInfo.setEncMethod(CupertinoEncInfo.METHOD_SAMPLE_AES);
encInfo.setEncUrl("http://mycompanykeyserver.com/authenticate.aspx");
encInfo.setEncKeyBytes(BufferUtils.decodeHexString("123456789ABCDEF123456789ABCDEF12"));
encInfo.setEncIVBytes(BufferUtils.decodeHexString("FEDCBA9876543210FEDCBA9876543210"));
encInfo.setEncKeyFormat(CupertinoEncInfo.APPLE_KEYFORMAT_IDENTITY);
encInfo.setEncKeyFormatVersion("1");
getLogger().info("FairPlay encryption aes");
}
}
When I use “http://mycompanykeyserver.com/authenticate.aspx” I have this error:
An error occured
CODE: 208
TYPE: media.err.src.not.supported
Is there an alternative url or a way to encryption the live stream?