private function getDrmKey($entry)
 {
     if ($entry) {
         $drmKey = DrmKeyPeer::retrieveByUniqueKey($entry->getId(), DrmKeyObjectType::ENTRY, PlayReadyPlugin::getPlayReadyProviderCoreValue());
     } else {
         $drmKey = null;
     }
     return $drmKey;
 }
示例#2
0
 private function getEntryKeyId($entryId)
 {
     $drmKey = DrmKeyPeer::retrieveByUniqueKey($entryId, DrmKeyObjectType::ENTRY, PlayReadyPlugin::getPlayReadyProviderCoreValue());
     if ($drmKey) {
         return $drmKey->getDrmKey();
     } else {
         return null;
     }
 }