public function putBucketLiveChannel($bucket, $channelName, $channelConfig, $options = NULL)
    {
        $this->precheckCommon($bucket, NULL, $options, false);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_OBJECT] = $channelName;
        $options[self::OSS_SUB_RESOURCE] = 'live';
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        $options[self::OSS_CONTENT] = $channelConfig->serializeToXml();

        $response = $this->auth($options);
        $result = new PutLiveChannelResult($response);
        $info = $result->getData();
        $info->setName($channelName);
        $info->setDescription($channelConfig->getDescription());
        
        return $info;
    }
public function putBucketLiveChannel($bucket, $channelName, $channelConfig, $options = NULL)
    {
        $this->precheckCommon($bucket, NULL, $options, false);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_OBJECT] = $channelName;
        $options[self::OSS_SUB_RESOURCE] = 'live';
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        $options[self::OSS_CONTENT] = $channelConfig->serializeToXml();

        $response = $this->auth($options);
        $result = new PutLiveChannelResult($response);
        $info = $result->getData();
        $info->setName($channelName);
        $info->setDescription($channelConfig->getDescription());
        
        return $info;
    }
public function putBucketLiveChannel ( $ bucket , $ channelName , $ channelConfig , $ options = NULL ) { $ this -> precheckCommon ( $ bucket , NULL , $ options , false ) ; $ options [ self :: OSS_BUCKET ] = $ bucket ; $ options [ self :: OSS_METHOD ] = self :: OSS_HTTP_PUT ; $ options [ self :: OSS_OBJECT ] = $ channelName ; $ options [ self :: OSS_SUB_RESOURCE ] = 'live' ; $ options [ self :: OSS_CONTENT_TYPE ] = 'application/xml' ; $ options [ self :: OSS_CONTENT ] = $ channelConfig -> serializeToXml ( ) ; $ response = $ this -> auth ( $ options ) ; $ result = new PutLiveChannelResult ( $ response ) ; $ info = $ result -> getData ( ) ; $ info -> setName ( $ channelName ) ; $ info -> setDescription ( $ channelConfig -> getDescription ( ) ) ; return $ info ; }
Creates a Live Channel under a bucket

@param string $bucket bucket name
@param string channelName  $channelName
@param LiveChannelConfig $channelConfig
@param array $options
@throws OssException
@return LiveChannelInfo
Creates a Live Channel under a bucket