|
@@ -17,7 +17,7 @@ class AliyunVodUploader
|
|
$this->accessKeySecret = $accessKeySecret;
|
|
$this->accessKeySecret = $accessKeySecret;
|
|
if (empty($apiRegionId)) {
|
|
if (empty($apiRegionId)) {
|
|
// VoD的接入地址,国内为cn-shanghai,参考:https://help.aliyun.com/document_detail/98194.html
|
|
// VoD的接入地址,国内为cn-shanghai,参考:https://help.aliyun.com/document_detail/98194.html
|
|
- $this->apiRegionId = 'cn-shanghai';
|
|
|
|
|
|
+ $this->apiRegionId = 'cn-beijing';
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
$this->apiRegionId = $apiRegionId;
|
|
$this->apiRegionId = $apiRegionId;
|
|
@@ -551,8 +551,8 @@ class AliyunVodUploader
|
|
else {
|
|
else {
|
|
$rate = 0;
|
|
$rate = 0;
|
|
}
|
|
}
|
|
- printf("[%s]UploadProgress of Media %s, uploaded %s bytes, percent %s%s\n",
|
|
|
|
- AliyunVodUtils::getCurrentTimeStr(), $mediaId, $consumedBytes, round($rate, 1), '%');
|
|
|
|
|
|
+ /*printf("[%s]UploadProgress of Media %s, uploaded %s bytes, percent %s%s\n",
|
|
|
|
+ AliyunVodUtils::getCurrentTimeStr(), $mediaId, $consumedBytes, round($rate, 1), '%');*/
|
|
flush();
|
|
flush();
|
|
}
|
|
}
|
|
|
|
|