Wowza Community

MPEG-DASH streaming using CENC but it not work.

Hi.

I follow the guide for live streaming cenc-widevine+playready protection, but it not work with Playready.

https://www.wowza.com/docs/how-to-secure-mpeg-dash-streaming-using-common-encryption-cenc

This is where I do with wowza mudule.

public void onHTTPMPEGDashEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, CencInfo cencInfo, long chunkId)

{

// set CENC key info

cencInfo.setAlgorithm(CencInfo.ALGORITHMID_CTR);

cencInfo.setKID(Base64.decode(“ApS5WZ11XeK78P3KP6Xqtw==”));

cencInfo.setEncKeyBytes(Base64.decode(“O9ovQDRMfe9hQie5wPA+Jg==”));

// add DRM info for first DRM system (Widevine in this case)

CencDRMInfoWidevine drmInfo = new CencDRMInfoWidevine();

drmInfo.setSystemId(“edef8ba9-79d6-4ace-a3c8-27dcd51d21ed”);

drmInfo.setPsshData(Base64.decode(“CAESEAKUuVmddV3iu/D9yj+l6rcaDXdpZGV2aW5lX3Rlc3QiEGZrajNsamFTZGZhbGtyM2oqAlNEMgA=”));

cencInfo.addDRM(“myWidevineDRM:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed”, drmInfo);

// add DRM info for second DRM system (PlayReady in this case)

PlayReadyKeyInfo playReadyKeyInfo = new PlayReadyKeyInfo();

playReadyKeyInfo.setLicenseURL(“http://myplayreadyserver.com/authenticate.aspx”); <<<<<<

playReadyKeyInfo.setChecksum(Base64.decode(“vbxgstjfSQY=”)); <<<<<<

playReadyKeyInfo.setKeyId(BufferUtils.decodeHexString(“F6005DCF-7F93-4B8E-85C7-F977740DA059”.replace("-", “”)));

playReadyKeyInfo.setContentKey(Base64.decode(“Tc2cQBPC/paTkftvaITCSQ==”));

CencDRMInfoPlayready prInfo = new CencDRMInfoPlayready();

prInfo.setPlayReadyKeyInfo(playReadyKeyInfo);

cencInfo.addDRM(“myPlayReadyDRM:9a04f079-9840-4286-ab92-e65be0885f95”, prInfo);

}

What is the playReadyKeyInfo.setChecksum and playReadyKeyInfo.setLicenseURL ?

Hi,

This information should be provided to you by your DRM provider, along with the key info.

Michelle

Hi Michelle ,

can u post one example code for how to provide information along with key info??

And how to Map a stream name to a private encryption key and public key identifier(along with code)