soft5566 2 years ago
parent
commit
962117918e

+ 1 - 1
src/main/java/com/ch/jiaoxuelou_houtai/controller/VideoController.java

@@ -389,7 +389,7 @@ public class VideoController {
         String url = baseUrl + "/stream/addStreamSource";
         String url = baseUrl + "/stream/addStreamSource";
         // 调用方法
         // 调用方法
         try {
         try {
-            JSONObject openAddress = null;
+            JSONObject openAddress;
             openAddress = videoService.openStreaming(url, jsonObject.toString(), headers);
             openAddress = videoService.openStreaming(url, jsonObject.toString(), headers);
             if (openAddress.isEmpty()) {
             if (openAddress.isEmpty()) {
                 return ResponseResult.failed("获取视频流地址失败!");
                 return ResponseResult.failed("获取视频流地址失败!");