public PlayReadyLicenseTemplate() { ContentKey = new ContentEncryptionKeyFromHeader(); PlayRight = new PlayReadyPlayRight(); }
private bool[] SetOutputProtectionLevelValues(int? valueToSet) { PlayReadyPlayRight playRight = new PlayReadyPlayRight(); bool[] returnValue = new bool[5]; try { playRight.CompressedDigitalAudioOpl = valueToSet; returnValue[0] = true; } catch (ArgumentException ae) { if (ae.Message != ErrorMessages.CompressedDigitalAudioOplValueError) { throw; } } try { playRight.UncompressedDigitalAudioOpl = valueToSet; returnValue[1] = true; } catch (ArgumentException ae) { if (ae.Message != ErrorMessages.UncompressedDigitalAudioOplValueError) { throw; } } try { playRight.CompressedDigitalVideoOpl = valueToSet; returnValue[2] = true; } catch (ArgumentException ae) { if (ae.Message != ErrorMessages.CompressedDigitalVideoOplValueError) { throw; } } try { playRight.UncompressedDigitalVideoOpl = valueToSet; returnValue[3] = true; } catch (ArgumentException ae) { if (ae.Message != ErrorMessages.UncompressedDigitalVideoOplValueError) { throw; } } try { playRight.AnalogVideoOpl = valueToSet; returnValue[4] = true; } catch (ArgumentException ae) { if (ae.Message != ErrorMessages.AnalogVideoOplValueError) { throw; } } return returnValue; }
public PlayReadyLicenseTemplate() { ContentKey = new ContentEncryptionKeyFromHeader(); PlayRight = new PlayReadyPlayRight(); }