还原#640点播开始后的截图任务,判断启用https后使用https_fmp4流地址
parent
92022f8a8b
commit
5bf1fe84ec
|
@ -113,9 +113,6 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private ThreadPoolTaskExecutor taskExecutor;
|
private ThreadPoolTaskExecutor taskExecutor;
|
||||||
|
|
||||||
@Value("${server.ssl.enabled}")
|
|
||||||
private boolean sslEnabled;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PlayResult play(MediaServerItem mediaServerItem, String deviceId, String channelId,
|
public PlayResult play(MediaServerItem mediaServerItem, String deviceId, String channelId,
|
||||||
ZlmHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
|
ZlmHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
|
||||||
|
@ -149,7 +146,7 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
if (Objects.requireNonNull(wvpResult).getCode() == 0) {
|
if (Objects.requireNonNull(wvpResult).getCode() == 0) {
|
||||||
StreamInfo streamInfoForSuccess = (StreamInfo) wvpResult.getData();
|
StreamInfo streamInfoForSuccess = (StreamInfo) wvpResult.getData();
|
||||||
MediaServerItem mediaInfo = mediaServerService.getOne(streamInfoForSuccess.getMediaServerId());
|
MediaServerItem mediaInfo = mediaServerService.getOne(streamInfoForSuccess.getMediaServerId());
|
||||||
String streamUrl = sslEnabled ? streamInfoForSuccess.getHttps_fmp4() : streamInfoForSuccess.getFmp4();
|
String streamUrl = streamInfoForSuccess.getFmp4();
|
||||||
|
|
||||||
// 请求截图
|
// 请求截图
|
||||||
logger.info("[请求截图]: " + fileName);
|
logger.info("[请求截图]: " + fileName);
|
||||||
|
|
Loading…
Reference in New Issue