Commit 0acf13445a2e3120f3d3599238401c9f2885d711
改为fmp4截图
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
| @@ -115,9 +115,9 @@ public class PlayServiceImpl implements IPlayService { | @@ -115,9 +115,9 @@ public class PlayServiceImpl implements IPlayService { | ||
| 115 | WVPResult wvpResult = (WVPResult)responseEntity.getBody(); | 115 | WVPResult wvpResult = (WVPResult)responseEntity.getBody(); |
| 116 | if (wvpResult.getCode() == 0) { | 116 | if (wvpResult.getCode() == 0) { |
| 117 | StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData(); | 117 | StreamInfo streamInfoForSuccess = (StreamInfo)wvpResult.getData(); |
| 118 | - String flvUrl = streamInfoForSuccess.getFlv(); | 118 | + String streamUrl = streamInfoForSuccess.getFmp4(); |
| 119 | // 请求截图 | 119 | // 请求截图 |
| 120 | - zlmresTfulUtils.getSnap(flvUrl, 15, 1, path, fileName); | 120 | + zlmresTfulUtils.getSnap(streamUrl, 15, 1, path, fileName); |
| 121 | } | 121 | } |
| 122 | } | 122 | } |
| 123 | System.out.println(path); | 123 | System.out.println(path); |