コード例 #1
0
ファイル: WidevineProfile.php プロジェクト: DBezemer/server
 /**
  * @return int
  */
 public function getRegServerHost()
 {
     $host = $this->getFromCustomData(self::CUSTOM_DATA_WIDEVINE_REG_SERVER_HOST);
     if (!$host) {
         $host = WidevinePlugin::getWidevineConfigParam('reg_server_host');
     }
     return $host;
 }
コード例 #2
0
 protected static function getLicenseOverrideParams($overrideParamsStr, $isAdmin)
 {
     $overrideParams = array();
     $allParams = explode(',', $overrideParamsStr);
     foreach ($allParams as $param) {
         $exParam = explode(':', $param);
         if (count($exParam) == 2 && array_key_exists($exParam[0], self::$allowedOverrideParams)) {
             $overrideParams[$exParam[0]] = $exParam[1];
         }
     }
     if ($isAdmin) {
         $kmcPolicy = WidevinePlugin::getWidevineConfigParam('kmc_policy');
         if ($kmcPolicy) {
             $overrideParams[self::SETPOLICY] = $kmcPolicy;
         }
     }
     return $overrideParams;
 }