public ContentKeyManager() { var storagePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var constantVal = AVContentKeySystem.FairPlayStreaming.GetConstant().ToString(); // TODO: Handle error when running in the simulator! ContentKeySession = AVContentKeySession.Create(constantVal); ContentKeyDelegate = new ContentKeyDelegate(); ContentKeySession?.SetDelegate(ContentKeyDelegate, contentKeyDelegateQueue); }
public override void DidProvidePersistableContentKeyRequest(AVContentKeySession session, AVPersistableContentKeyRequest keyRequest) { HandlePersistableContentKeyRequest(keyRequest); }
public override void DidProvideContentKeyRequest(AVContentKeySession session, AVContentKeyRequest keyRequest) { HandleStreamingContentKeyRequest(keyRequest); }