You are here

function KalturaSearchService::searchUrl in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4521

Class

KalturaSearchService

Code

function searchUrl($mediaType, $url) {
  $kparams = array();
  $this->client
    ->addParam($kparams, "mediaType", $mediaType);
  $this->client
    ->addParam($kparams, "url", $url);
  $this->client
    ->queueServiceActionCall("search", "searchUrl", $kparams);
  if ($this->client
    ->isMultiRequest()) {
    return null;
  }
  $resultObject = $this->client
    ->doQueue();
  $this->client
    ->throwExceptionIfError($resultObject);
  $this->client
    ->validateObjectType($resultObject, "KalturaSearchResult");
  return $resultObject;
}