I am trying to encrypt a live stream with FairPlay and then play it in the player. I use this method:
public void onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, CupertinoEncInfo encInfo, long chunkId, int mode) {
if (streamName.startsWith("aes")) {
encInfo.setEncMethod(CupertinoEncInfo.METHOD_SAMPLE_AES);
encInfo.setEncKeyFormat("com.apple.streamingkeydelivery");
encInfo.setEncKeyBytes(BufferUtils.decodeHexString("123456789ABCDEF123456789ABCDEF12"));
encInfo.setEncIVBytes(BufferUtils.decodeHexString("FEDCBA9876543210FEDCBA9876543210"));
encInfo.setEncUrl("skd://skd");
encInfo.setEncKeyFormatVersion("1");
}
I use http://player.wmspanel.com/ and I get this license https://ls-proxy.redlabs.pl/license/fps/tvnTest/fps/tvnTest?key=123456789ABCDEF123456789ABCDEF12&iv=FEDCBA9876543210FEDCBA9876543210 and https://r.dcs.redcdn.pl/file/o2/portal/prod/fairplay/cert.pub
I just want to see if I get my live license it will be work. Where could there be a mistake? maybe you know some sample players and licenses to test the DRM?