From e21abeea37342974790c02e85ddb94198456df61 Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: Tue, 22 Jun 2021 16:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8fmp4=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=88=AA=E5=9B=BE=EF=BC=8C=E4=BB=A5=E9=81=BF=E5=85=8Dffmpeg?= =?UTF-8?q?=E4=B8=8D=E5=85=BC=E5=AE=B9h265=E7=9A=84flv=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E6=88=AA=E5=9B=BE=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java index 320cc260..6d0bbf1c 100644 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java @@ -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);