Update
parent
a0b2bf0ce6
commit
efbbcb78c1
|
|
@ -745,6 +745,8 @@ class DeviceController extends Controller
|
||||||
return [
|
return [
|
||||||
'type' => 'm3u8',
|
'type' => 'm3u8',
|
||||||
'address' => (string) $address,
|
'address' => (string) $address,
|
||||||
|
// 有效期 60 分钟
|
||||||
|
'expires' => 3540,
|
||||||
];
|
];
|
||||||
|
|
||||||
// 中国移动千里眼
|
// 中国移动千里眼
|
||||||
|
|
@ -764,6 +766,7 @@ class DeviceController extends Controller
|
||||||
return [
|
return [
|
||||||
'type' => 'iframe',
|
'type' => 'iframe',
|
||||||
'address' => (string) data_get($result, 'data.url'),
|
'address' => (string) data_get($result, 'data.url'),
|
||||||
|
'expires' => data_get($result, 'data.expiresIn'),
|
||||||
];
|
];
|
||||||
|
|
||||||
// 中国电信魔镜
|
// 中国电信魔镜
|
||||||
|
|
@ -783,6 +786,8 @@ class DeviceController extends Controller
|
||||||
return [
|
return [
|
||||||
'type' => 'flv',
|
'type' => 'flv',
|
||||||
'address' => (string) data_get($result, 'data.playUrl'),
|
'address' => (string) data_get($result, 'data.playUrl'),
|
||||||
|
// 有效期 29 分钟
|
||||||
|
'expires' => 1740,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -822,6 +827,7 @@ class DeviceController extends Controller
|
||||||
return [
|
return [
|
||||||
'type' => 'flv',
|
'type' => 'flv',
|
||||||
'address' => $address,
|
'address' => $address,
|
||||||
|
'expires' => 0,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue