|
@@ -303,6 +303,7 @@ class HaiKangController extends BaseController
|
|
|
$parent_id = Input::get('parent_id');
|
|
|
$protocol = Input::get('protocol', 'hls');
|
|
|
$streamType = Input::get('streamType', 1);
|
|
|
+ $type = Input::get('type', '');
|
|
|
$url = $this->artemis . '/api/video/v2/cameras/previewURLs';
|
|
|
// $cameras_info = json_decode($this->getCamerasInfo(Input::all()), true);
|
|
|
//请求参数
|
|
@@ -310,7 +311,11 @@ class HaiKangController extends BaseController
|
|
|
// $params['regionIndexCode'] = $request->input('regionIndexCode');
|
|
|
$params['cameraIndexCode'] = Input::get('cameraIndexCode');
|
|
|
$params['streamType'] = $streamType; //0主码流 1子码流 2第三码流
|
|
|
- $params['protocol'] = 'wss';
|
|
|
+ if($type != ''){
|
|
|
+ $params['protocol'] = 'ws';
|
|
|
+ }else{
|
|
|
+ $params['protocol'] = 'wss';
|
|
|
+ }
|
|
|
$params['transmode'] = 1; //0:UDP 1:TCP
|
|
|
$params['expand'] = 'streamform=rtp';
|
|
|
|