src/BaiduBce/Services/Vod/VodClient.php
public function applyMedia($options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

        $params = array(
            'apply' => null,
        );
        return $this->sendRequest(
            HttpMethod::POST,
            array(
                'config' => $config,
                'params' => $params,
            ),
            '/media'
        );
    }
public function applyMedia($options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

        $params = array(
            'apply' => null,
        );
        return $this->sendRequest(
            HttpMethod::POST,
            array(
                'config' => $config,
                'params' => $params,
            ),
            '/media'
        );
    }
public function applyMedia ( $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , 'config' ) ; $ params = array ( 'apply' => null , ) ; return $ this -> sendRequest ( HttpMethod :: POST , array ( 'config' => $ config , 'params' => $ params , ) , '/media' ) ; }
apply a vod media
Apply a new vod media, get mediaId, sourceBucket, sourceKey.
You account have the access to write the sourceBucket and sourceKey.
You need upload video to sourceBucket and sourceKey via BosClient,
Then call processMedia method to get a VOD media.

@param array $options Supported options:
{
config: the optional bce configuration, which will overwrite the
default vod client configuration that was passed in constructor.
}
@return mixed created vod media info
@throws BceClientException
apply a vod media Apply a new vod media get mediaId sourceBucket sourceKey . You account have the access to write the sourceBucket and sourceKey . You need upload video to sourceBucket and sourceKey via BosClient Then call processMedia method to get a VOD media .