Browse Source

添加RTSP取流日志

wangxi 1 year ago
parent
commit
58d329a585

+ 6 - 6
Assets/Scripts/Http/HttpHandler.cs

@@ -35,7 +35,7 @@ public class HttpHandler : MonoBehaviour
                 get_text = webRequest.downloadHandler.text;
                 //Debug.Log(webRequest.downloadHandler.text);
             }
-            LogHandle.LogInfo(get_text);
+            //LogHandle.LogInfo(get_text);
         }
     }
 
@@ -55,7 +55,7 @@ public class HttpHandler : MonoBehaviour
                 post_text = webRequest.downloadHandler.text;
                 //Debug.Log(webRequest.downloadHandler.text);
             }
-            LogHandle.LogInfo(post_text);
+            //LogHandle.LogInfo(post_text);
         }
     }
 
@@ -75,7 +75,7 @@ public class HttpHandler : MonoBehaviour
                 action(get_text);
                 //Debug.Log(webRequest.downloadHandler.text);
             }
-            LogHandle.LogInfo(get_text);
+            //LogHandle.LogInfo(get_text);
         }
     }
     public static IEnumerator Get(string url, string name,Action<string,string> action)
@@ -96,7 +96,7 @@ public class HttpHandler : MonoBehaviour
             }
             //Debug.Log(url + "  " + name);
             //LogHandle.LogInfo(url+"  "+name);
-            LogHandle.LogInfo(get_text);
+            //LogHandle.LogInfo(get_text);
         }
     }
     [Obsolete]
@@ -124,7 +124,7 @@ public class HttpHandler : MonoBehaviour
                 //Debug.Log(webRequest.downloadHandler.text);
                 action(post_text);
             }
-            LogHandle.LogInfo(post_text);
+            //LogHandle.LogInfo(post_text);
         }
     }
     [Obsolete]
@@ -152,7 +152,7 @@ public class HttpHandler : MonoBehaviour
                 //Debug.Log(webRequest.downloadHandler.text);
                 action(post_text,id);
             }
-            LogHandle.LogInfo(post_text);
+            //LogHandle.LogInfo(post_text);
         }
     }
 }

+ 1 - 1
Assets/StreamingAssets/Config.ini

@@ -2,7 +2,7 @@
 ip=192.168.81.32
 port=8090
 substationname=万水泉南变电所
-isLog=false
+isLog=true
 nvr_username=admin
 nvr_password=yunda123
 closeTime=180

+ 1 - 1
Assets/UniversalMediaPlayer/Scripts/UniversalMediaPlayer.cs

@@ -1064,7 +1064,7 @@ namespace UMP
                     _path = rtsp + MainCameraController.ip + "/cam/realmonitor?channel="+ MainCameraController.devNo + "&subtype=1";
                 }
             }
-
+            LogHandle.LogInfo(_path);
             //_path = rtsp + rtsp_id;
             //}
             if (_videoPathPreparingEnum != null)