Skip to content

Commit

Permalink
add image url
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertYue19900425 committed Oct 31, 2016
1 parent d77d2da commit de0e679
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/OSS/OssClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,7 @@ private function generateSignableQueryStringParam($options)
'response-content-encoding',
'response-expires',
'response-content-disposition',
'x-oss-process',
self::OSS_UPLOAD_ID,
self::OSS_CNAME_COMP,
self::OSS_LIVE_CHANNEL_STATUS,
Expand Down
13 changes: 4 additions & 9 deletions tests/OSS/Tests/BucketLiveChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function setUp()
$this->bucketName = 'php-sdk-test-bucket-name-' . strval(rand(0, 10));
$this->client->createBucket($this->bucketName);
Common::waitMetaSync();
sleep(30);
}

public function tearDown()
Expand Down Expand Up @@ -74,7 +75,6 @@ public function testPutLiveChannel()
'fragCount' => 5,
'playListName' => 'hello'
));
sleep(30);
$info = $this->client->putBucketLiveChannel($this->bucketName, $config);
$this->client->deleteBucketLiveChannel($this->bucketName, 'live-1');

Expand All @@ -94,7 +94,6 @@ public function testListLiveChannels()
'fragCount' => 5,
'playListName' => 'hello'
));
sleep(30);
$this->client->putBucketLiveChannel($this->bucketName, $config);

$config = new LiveChannelConfig(array(
Expand Down Expand Up @@ -158,7 +157,6 @@ public function testDeleteLiveChannel()
'fragCount' => 5,
'playListName' => 'hello'
));
sleep(30);
$this->client->putBucketLiveChannel($this->bucketName, $config);

$this->client->deleteBucketLiveChannel($this->bucketName, $channelId);
Expand All @@ -174,7 +172,6 @@ public function testGetLiveChannelUrl()
$channelId = '90475';
$bucket = 'douyu';
$now = time();
sleep(30);
$url = $this->client->getLiveChannelUrl($bucket, $channelId, array(
'expires' => 900,
'params' => array(
Expand Down Expand Up @@ -204,7 +201,6 @@ public function testLiveChannelInfo()
'fragCount' => 5,
'playListName' => 'hello'
));
sleep(30);
$this->client->putBucketLiveChannel($this->bucketName, $config);

$info = $this->client->getLiveChannelInfo($this->bucketName, $channelId);
Expand Down Expand Up @@ -233,7 +229,6 @@ public function testPutLiveChannelStatus()
'fragCount' => 5,
'playListName' => 'hello'
));
sleep(30);
$this->client->putBucketLiveChannel($this->bucketName, $config);

$info = $this->client->getLiveChannelInfo($this->bucketName, $channelId);
Expand All @@ -244,7 +239,7 @@ public function testPutLiveChannelStatus()
$this->assertEquals(5, $info->getFragCount());
$this->assertEquals('playlist.m3u8', $info->getPlayListName());
$status = $this->client->getLiveChannelStatus($this->bucketName, $channelId);
$this->assertEquals('', $status->getStatus());
$this->assertEquals('Idle', $status->getStatus());


$resp = $this->client->putLiveChannelStatus($this->bucketName, $channelId, "disabled");
Expand All @@ -257,7 +252,8 @@ public function testPutLiveChannelStatus()
$this->assertEquals('playlist.m3u8', $info->getPlayListName());

$status = $this->client->getLiveChannelStatus($this->bucketName, $channelId);
$this->assertEquals('', $status->getStatus());
//getLiveChannelInfo
$this->assertEquals('Disabled', $status->getStatus());

$this->client->deleteBucketLiveChannel($this->bucketName, $channelId);
$list = $this->client->listBucketLiveChannels($this->bucketName, array(
Expand All @@ -277,7 +273,6 @@ public function testLiveChannelHistory()
'fragCount' => 5,
'playListName' => 'hello'
));
sleep(30);
$this->client->putBucketLiveChannel($this->bucketName, $config);

$history = $this->client->getLiveChannelHistory($this->bucketName, $channelId);
Expand Down

0 comments on commit de0e679

Please sign in to comment.