Commit e21abeea37342974790c02e85ddb94198456df61

Authored by 64850858
1 parent 11e8fad2

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

src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
@@ -114,9 +114,9 @@ public class PlayServiceImpl implements IPlayService { @@ -114,9 +114,9 @@ public class PlayServiceImpl implements IPlayService {
114 WVPResult wvpResult = (WVPResult)responseEntity.getBody(); 114 WVPResult wvpResult = (WVPResult)responseEntity.getBody();
115 if (wvpResult.getCode() == 0) { 115 if (wvpResult.getCode() == 0) {
116 StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData(); 116 StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData();
117 - String flvUrl = streamInfoForSuccess.getFlv(); 117 + String streamUrl = streamInfoForSuccess.getFmp4();
118 // 请求截图 118 // 请求截图
119 - zlmresTfulUtils.getSnap(flvUrl, 5, 1, path, fileName); 119 + zlmresTfulUtils.getSnap(streamUrl, 5, 1, path, fileName);
120 } 120 }
121 } 121 }
122 System.out.println(path); 122 System.out.println(path);