|
|
@@ -58,7 +58,6 @@ class LiveService extends BaseService
|
|
|
$accessKey = ConfigService::make()->getConfigByCode('live_url_access_key');
|
|
|
if($accessKey==''){
|
|
|
$pushUrl = 'rtmp://'.$pushDomain.'/'.$appName.'/'.$streamName;
|
|
|
- $playUrl = 'rtmp://'.$pushDomain.'/'.$appName.'/'.$streamName;
|
|
|
|
|
|
$playUrls['rtmp'] = 'rtmp://'.$playDomain.'/'.$appName.'/'.$streamName;
|
|
|
$playUrls['flv'] = 'http://'.$playDomain.'/'.$appName.'/'.$streamName.'.flv';
|
|
|
@@ -69,8 +68,6 @@ class LiveService extends BaseService
|
|
|
$md5hash = md5($sstring);
|
|
|
$pushUrl = 'rtmp://'.$pushDomain.'/'.$appName.'/'.$streamName.'?auth_key='.$timeStamp.'-0-0-'.$md5hash;
|
|
|
|
|
|
- $timeStamp = time() + $expireTime;
|
|
|
-
|
|
|
$rtmpSstring = '/'.$appName.'/'.$streamName.'-'.$timeStamp.'-0-0-'.$accessKey;
|
|
|
$rtmpMd5hash = md5($rtmpSstring);
|
|
|
$playUrls['rtmp'] = 'rtmp://'.$playDomain.'/'.$appName.'/'.$streamName.'?auth_key='.$timeStamp.'-0-0-'.$rtmpMd5hash;
|