]> www.vanbest.org Git - motioneye-debian/commitdiff
RTSP netams: the TCP option is now the first (and preferred) one
authorCalin Crisan <ccrisan@gmail.com>
Wed, 20 Jul 2016 17:58:20 +0000 (20:58 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Wed, 20 Jul 2016 17:58:20 +0000 (20:58 +0300)
motioneye/utils.py

index 36ffbb0aa97be32c4820bd11b7263f2481470c45..dd8af6776532483e314b7a8e89372af5fbbe013b 100644 (file)
@@ -555,12 +555,12 @@ def test_rtsp_url(data, callback):
         else:
             identifier = ''
 
-        if 'udp' in rtsp_support:
-            cameras.append({'id': 'udp', 'name': '%sRTSP/UDP Camera' % identifier})
-        
         if 'tcp' in rtsp_support:
             cameras.append({'id': 'tcp', 'name': '%sRTSP/TCP Camera' % identifier})
 
+        if 'udp' in rtsp_support:
+            cameras.append({'id': 'udp', 'name': '%sRTSP/UDP Camera' % identifier})
+        
         callback(cameras)
 
     def handle_error(e):