|
@@ -114,7 +114,7 @@ class Qiniu
|
|
# 获取推流地址
|
|
# 获取推流地址
|
|
public function getRtmp($name, $time = 3600)
|
|
public function getRtmp($name, $time = 3600)
|
|
{
|
|
{
|
|
- $url = \Qiniu\Pili\RTMPPublishURL("publish-rtmp.test.com", $this->config['space'], $name, 3600, $this->config['appkey'], $this->config['appsecret']);
|
|
|
|
|
|
+ $url = \Qiniu\Pili\RTMPPublishURL($this->config['domain_publish'], $this->config['space'], $name, 3600, $this->config['appkey'], $this->config['appsecret']);
|
|
return $url;
|
|
return $url;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -132,28 +132,28 @@ class Qiniu
|
|
# 获取直播地址
|
|
# 获取直播地址
|
|
public function getRtmpPlay($name)
|
|
public function getRtmpPlay($name)
|
|
{
|
|
{
|
|
- $url = \Qiniu\Pili\RTMPPlayURL("live-rtmp.test.com", $this->config['space'], $name);
|
|
|
|
|
|
+ $url = \Qiniu\Pili\RTMPPlayURL($this->config['domain_live_rtmp'], $this->config['space'], $name);
|
|
return $url;
|
|
return $url;
|
|
}
|
|
}
|
|
|
|
|
|
# HLS 直播地址
|
|
# HLS 直播地址
|
|
public function getHlsPlay($name)
|
|
public function getHlsPlay($name)
|
|
{
|
|
{
|
|
- $url = \Qiniu\Pili\HLSPlayURL("live-hls.test.com", $this->config['space'], $name);
|
|
|
|
|
|
+ $url = \Qiniu\Pili\HLSPlayURL($this->config['domain_live_hls'], $this->config['space'], $name);
|
|
return $url;
|
|
return $url;
|
|
}
|
|
}
|
|
|
|
|
|
# HDL 直播地址
|
|
# HDL 直播地址
|
|
public function getHdlPlay($name)
|
|
public function getHdlPlay($name)
|
|
{
|
|
{
|
|
- $url = \Qiniu\Pili\HDLPlayURL("live-hdl.test.com", $this->config['space'], $name);
|
|
|
|
|
|
+ $url = \Qiniu\Pili\HDLPlayURL($this->config['domain_live_hdl'], $this->config['space'], $name);
|
|
return $url;
|
|
return $url;
|
|
}
|
|
}
|
|
|
|
|
|
# 截图直播地址
|
|
# 截图直播地址
|
|
public function getPicPlay($name)
|
|
public function getPicPlay($name)
|
|
{
|
|
{
|
|
- $url = \Qiniu\Pili\SnapshotPlayURL("live-snapshot.test.com", $this->config['space'], $name);
|
|
|
|
|
|
+ $url = \Qiniu\Pili\SnapshotPlayURL($this->config['domain_live_pic'], $this->config['space'], $name);
|
|
return $url;
|
|
return $url;
|
|
}
|
|
}
|
|
}
|
|
}
|