Skip to content

Commit b99d999

Browse files
add anjoy to vendor list
1 parent 39ad0c3 commit b99d999

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rosys/vision/rtsp_camera/vendors.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class VendorType(Enum):
77
AXIS = 3
88
REOLINK = 4
99
UNIARCH = 5
10+
ANJOY = 6
1011
OTHER = -1
1112

1213

@@ -19,6 +20,8 @@ def mac_to_vendor(mac: str) -> VendorType:
1920
return VendorType.REOLINK
2021
if mac.startswith('6c:f1:7e'):
2122
return VendorType.UNIARCH
23+
if mac.startswith('f0:00:06'):
24+
return VendorType.ANJOY
2225
return VendorType.OTHER
2326

2427

@@ -32,4 +35,6 @@ def mac_to_url(mac: str, ip: str, substream: int = 0) -> str | None:
3235
return f'rtsp://admin:Adminadmin@{ip}/Preview_01_{"sub" if substream else "main"}'
3336
if vendor == VendorType.UNIARCH:
3437
return f'rtsp://admin:Admin_adm1n@{ip}/media/video{2 if substream else 1}'
38+
if vendor == VendorType.ANJOY:
39+
return f'rtsp://admin:123456@{ip}/h264/ch{2 if substream else 1}'
3540
return None

0 commit comments

Comments
 (0)