Encrypting nDVR recorded stream in realtime using DRM addon and playready for HLS
We are trying to implement a server side API for encrypting live, DVR and VOD stream. We are able to encrypt live streams with key rotation features using IModuleOnHTTPCupertinoEncryption and METHOD_CHUNK_PLAYREADY. My question is, to encrypt the nDVR streams should we also use the IModuleOnHTTPCupertinoEncryption interface? As we have understood nDVR recorded streams are treated the same way as VOD but everytime a DVR is played the method onHTTPCupertinoEncryptionKeyVODChunk is not being called. Is there any other interface we can implement to set the Cupertino Encoding Info for DVRs in DVR store?
Could this be because this DVR is no longer connected to any live streams? We record DVRs per event and we stop and start recording according to the events stored on our EPG.Each event is recorded into different filename/directory for example, in the DVRFILESTORAGE there will be files such as these:
I tested onHTTPSmoothStreamingPlayReadyCreateLive and it fires for me when a live stream is started on an application smoothstreampacketizer enabled, when packetization is started. It doesn't fire for smooth playback client.
To point to different servers from one application you can use .stream files. The documentation doesn't mention using .stream files with nDVR and Liverepeater, so I tried it and just found that you had to add application instance to the url in the stream file for it to work. For example: