src/BaiduBce/Services/Lss/LssClient.php
public function getStream($domain, $app, $stream, $options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

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

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
            ),
            "/domain/$domain/app/$app/stream/$stream"
        );
    }
public function getStream($domain, $app, $stream, $options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

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

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
            ),
            "/domain/$domain/app/$app/stream/$stream"
        );
    }
public function getStream ( $ domain , $ app , $ stream , $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , 'config' ) ; if ( empty ( $ domain ) ) { throw new BceClientException ( "The parameter domain " . "should NOT be null or empty string" ) ; } if ( empty ( $ app ) ) { throw new BceClientException ( "The parameter app " . "should NOT be null or empty string" ) ; } if ( empty ( $ stream ) ) { throw new BceClientException ( "The parameter stream " . "should NOT be null or empty string" ) ; } return $ this -> sendRequest ( HttpMethod :: GET , array ( 'config' => $ config , ) , "/domain/$domain/app/$app/stream/$stream" ) ; }
Get a stream info.

@param $domain string, name of play domain
@param $app string, name of app
@param $stream string, name of stream
@param array $options Supported options:
{
config: the optional bce configuration, which will overwrite the
default client configuration that was passed in constructor.
}
@return mixed session detail
@throws BceClientException
Get a stream info .