Hi,
I use Wowza and I’m trying to encrypt live with the methods given in the documentation:
This is my method in module: public void
onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, CupertinoEncInfo encInfo, long chunkId, int mode) {
if (streamName.startsWith("aes")) {
encInfo.setEncMethod(CupertinoEncInfo.METHOD_AES_128);
encInfo.setEncUrl("http://mycompanykeyserver.com/authenticate.aspx");
encInfo.setEncKeyBytes(BufferUtils.decodeHexString("123456789ABCDEF123456789ABCDEF12"));
encInfo.setEncIVBytes(BufferUtils.decodeHexString("FEDCBA9876543210FEDCBA9876543210"));
encInfo.setEncKeyFormatVersion("1");
getLogger().info("http://10.100.2.44:1935/wowzamodule/" + 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 enter the url in the player it is encrypted but when I enter the license I get this error:
An error occured
CODE: 208
TYPE: media.err.src.not.supported
I also check it with curl:
% curl http://10.100.2.44:1935/wowza/aes/playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=2803868,CODECS="avc1.640020,mp4a.40.2",RESOLUTION=1280x720
chunklist_w206945837.m3u8
Where the problem could be?