使用fmp4进行截图,以避免ffmpeg不兼容h265的flv导致的截图失败

This commit is contained in:
64850858 2021-06-22 16:22:06 +08:00
parent 93e6c38c1e
commit 55d291f528

View File

@ -114,9 +114,9 @@ public class PlayServiceImpl implements IPlayService {
WVPResult wvpResult = (WVPResult)responseEntity.getBody();
if (wvpResult.getCode() == 0) {
StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData();
String flvUrl = streamInfoForSuccess.getFlv();
String streamUrl = streamInfoForSuccess.getFmp4();
// 请求截图
zlmresTfulUtils.getSnap(flvUrl, 5, 1, path, fileName);
zlmresTfulUtils.getSnap(streamUrl, 5, 1, path, fileName);
}
}
System.out.println(path);