src/BaiduBce/Services/Vod/VodClient.php
public function processMedia($mediaId, $title, $description, $options = array())
    {
        list($config, $extension, $presetGroup) =
            $this->parseOptions($options, 'config', 'sourceExtension', 'transcodingPresetGroupName');
        $params = array(
            'process' => null,
        );
        $body = array(
            'title' => $title,
            'description' => $description,
            'sourceExtension' => $extension,
            'transcodingPresetGroupName' => $presetGroup,
        );

        return $this->sendRequest(
            HttpMethod::PUT,
            array(
                'config' => $config,
                'params' => $params,
                'body' => json_encode($body),
            ),
            "/media/$mediaId"
        );
    }
public function processMedia($mediaId, $title, $description, $options = array())
    {
        list($config, $extension, $presetGroup) =
            $this->parseOptions($options, 'config', 'sourceExtension', 'transcodingPresetGroupName');
        $params = array(
            'process' => null,
        );
        $body = array(
            'title' => $title,
            'description' => $description,
            'sourceExtension' => $extension,
            'transcodingPresetGroupName' => $presetGroup,
        );

        return $this->sendRequest(
            HttpMethod::PUT,
            array(
                'config' => $config,
                'params' => $params,
                'body' => json_encode($body),
            ),
            "/media/$mediaId"
        );
    }
public function processMedia ( $ mediaId , $ title , $ description , $ options = array ( ) ) { list ( $ config , $ extension , $ presetGroup ) = $ this -> parseOptions ( $ options , 'config' , 'sourceExtension' , 'transcodingPresetGroupName' ) ; $ params = array ( 'process' => null , ) ; $ body = array ( 'title' => $ title , 'description' => $ description , 'sourceExtension' => $ extension , 'transcodingPresetGroupName' => $ presetGroup , ) ; return $ this -> sendRequest ( HttpMethod :: PUT , array ( 'config' => $ config , 'params' => $ params , 'body' => json_encode ( $ body ) , ) , "/media/$mediaId" ) ; }
process a vod media
After applying media, uploading original video to bosClient,
you MUST call processMedia method to get a VOD media.

@param $mediaId
@param $title string, the title of the media
@param $description string, the description of the media
@param array $options Supported options:
{
config: the optional bce configuration, which will overwrite the
default vod client configuration that was passed in constructor.
sourceExtension: extension of the media source.
transcodingPresetGroupName: preset group to be used for the media
}
@return mixed created vod media info
@throws BceClientException
process a vod media After applying media uploading original video to bosClient you MUST call processMedia method to get a VOD media .