改为fmp4截图
commit
0acf13445a
|
@ -115,9 +115,9 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
WVPResult wvpResult = (WVPResult)responseEntity.getBody();
|
WVPResult wvpResult = (WVPResult)responseEntity.getBody();
|
||||||
if (wvpResult.getCode() == 0) {
|
if (wvpResult.getCode() == 0) {
|
||||||
StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData();
|
StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData();
|
||||||
String flvUrl = streamInfoForSuccess.getFlv();
|
String streamUrl = streamInfoForSuccess.getFmp4();
|
||||||
// 请求截图
|
// 请求截图
|
||||||
zlmresTfulUtils.getSnap(flvUrl, 15, 1, path, fileName);
|
zlmresTfulUtils.getSnap(streamUrl, 15, 1, path, fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println(path);
|
System.out.println(path);
|
||||||
|
|
Loading…
Reference in New Issue