src/Watermark/WatermarkClient.php
public function create($videoKey, $watermarkConfiguration, $timeout = 90000) {
        $this->validateVideoKey($videoKey);
        $this->validateWatermarkConfiguration($watermarkConfiguration);
        $this->validateTimeout($timeout);

        $config = is_array($watermarkConfiguration) ? $watermarkConfiguration : array($watermarkConfiguration);
        $payload = array("key" => $videoKey, "settings" => $config);

        return $this->createAPI($payload, $timeout);
    }
public function create($videoKey, $watermarkConfiguration, $timeout = 90000) {
        $this->validateVideoKey($videoKey);
        $this->validateWatermarkConfiguration($watermarkConfiguration);
        $this->validateTimeout($timeout);

        $config = is_array($watermarkConfiguration) ? $watermarkConfiguration : array($watermarkConfiguration);
        $payload = array("key" => $videoKey, "settings" => $config);

        return $this->createAPI($payload, $timeout);
    }
public function create ( $ videoKey , $ watermarkConfiguration , $ timeout = 90000 ) { $ this -> validateVideoKey ( $ videoKey ) ; $ this -> validateWatermarkConfiguration ( $ watermarkConfiguration ) ; $ this -> validateTimeout ( $ timeout ) ; $ config = is_array ( $ watermarkConfiguration ) ? $ watermarkConfiguration : array ( $ watermarkConfiguration ) ; $ payload = array ( "key" => $ videoKey , "settings" => $ config ) ; return $ this -> createAPI ( $ payload , $ timeout ) ; }
Watermarks a video

@param $videoKey
The unique key for the video to watermark. The key is a property on the video
defined at ingest time. @see http://docs.safestream.com/docs/video
@param $watermarkConfiguration
A single configuration object OR an array of configuration object
@see WatermarkConfiguration
@param int $timeout The length of time to wait for the watermarking to complete. Most
videos will complete in less than 60 seconds.

A value greater than 0 will cause the function to wait for the watermarking to
complete until the timeout is reached. Otherwise the function will return
immediately
@return mixed
@throws WatermarkClientException
@throws WatermarkConfigurationException
@throws WatermarkingException
Watermarks a video