src/BaiduBce/Services/Media/MediaClient.php
public function getMediaInfoOfFile($bucket, $key, $options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

        if (empty($bucket)) {
            throw new BceClientException("The parameter bucket " 
                ."should NOT be null or empty string");
        }

        if (empty($key)) {
            throw new BceClientException("The parameter key " 
                ."should NOT be null or empty string");
        }

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => array(
                    'bucket' => $bucket,
                    'key' => rawurlencode($key),
                ),
            ),
            '/mediainfo'
        );
    }
public function getMediaInfoOfFile($bucket, $key, $options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

        if (empty($bucket)) {
            throw new BceClientException("The parameter bucket " 
                ."should NOT be null or empty string");
        }

        if (empty($key)) {
            throw new BceClientException("The parameter key " 
                ."should NOT be null or empty string");
        }

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => array(
                    'bucket' => $bucket,
                    'key' => rawurlencode($key),
                ),
            ),
            '/mediainfo'
        );
    }
public function getMediaInfoOfFile ( $ bucket , $ key , $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , 'config' ) ; if ( empty ( $ bucket ) ) { throw new BceClientException ( "The parameter bucket " . "should NOT be null or empty string" ) ; } if ( empty ( $ key ) ) { throw new BceClientException ( "The parameter key " . "should NOT be null or empty string" ) ; } return $ this -> sendRequest ( HttpMethod :: GET , array ( 'config' => $ config , 'params' => array ( 'bucket' => $ bucket , 'key' => rawurlencode ( $ key ) , ) , ) , '/mediainfo' ) ; }
Get the information of a media object in BOS

@param string $bucket The bucket's name in BOS
@param string $key The object's key in bucket
@param array $options Supported options:
{
config: The optional bce configuration, which will overwrite the
default client configuration that was passed in constructor.
}
@return mixed
@throws BceClientException
Get the information of a media object in BOS