src/MediaServices/MediaServicesRestProxy.php
public function cancelJob($job)
    {
        $jobId = Utilities::getEntityId(
            $job,
            'WindowsAzure\MediaServices\Models\Job'
        );
        $jobIdEncoded = urlencode($jobId);

        $method = Resources::HTTP_GET;
        $headers = [];
        $postParams = [];
        $queryParams = [];
        $path = "CancelJob?jobid='{$jobIdEncoded}'";
        $statusCode = Resources::STATUS_NO_CONTENT;

        $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );
    }
public function cancelJob($job)
    {
        $jobId = Utilities::getEntityId(
            $job,
            'WindowsAzure\MediaServices\Models\Job'
        );
        $jobIdEncoded = urlencode($jobId);

        $method = Resources::HTTP_GET;
        $headers = [];
        $postParams = [];
        $queryParams = [];
        $path = "CancelJob?jobid='{$jobIdEncoded}'";
        $statusCode = Resources::STATUS_NO_CONTENT;

        $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );
    }
public function cancelJob ( $ job ) { $ jobId = Utilities :: getEntityId ( $ job , 'WindowsAzure\MediaServices\Models\Job' ) ; $ jobIdEncoded = urlencode ( $ jobId ) ; $ method = Resources :: HTTP_GET ; $ headers = [ ] ; $ postParams = [ ] ; $ queryParams = [ ] ; $ path = "CancelJob?jobid='{$jobIdEncoded}'" ; $ statusCode = Resources :: STATUS_NO_CONTENT ; $ this -> sendHttp ( $ method , $ headers , $ queryParams , $ postParams , $ path , $ statusCode ) ; }
Cancel a job.

@param Job|string $job Job data or job Id
Cancel a job .