Skip to content

Commit 7854d67

Browse files
add Zauberzeug camera vendor
1 parent b99d999 commit 7854d67

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
@@ -8,6 +8,7 @@ class VendorType(Enum):
88
REOLINK = 4
99
UNIARCH = 5
1010
ANJOY = 6
11+
ZAUBERZEUG = 7
1112
OTHER = -1
1213

1314

@@ -22,6 +23,8 @@ def mac_to_vendor(mac: str) -> VendorType:
2223
return VendorType.UNIARCH
2324
if mac.startswith('f0:00:06'):
2425
return VendorType.ANJOY
26+
if mac.startswith('7a:7a:21'):
27+
return VendorType.ZAUBERZEUG
2528
return VendorType.OTHER
2629

2730

@@ -37,4 +40,6 @@ def mac_to_url(mac: str, ip: str, substream: int = 0) -> str | None:
3740
return f'rtsp://admin:Admin_adm1n@{ip}/media/video{2 if substream else 1}'
3841
if vendor == VendorType.ANJOY:
3942
return f'rtsp://admin:123456@{ip}/h264/ch{2 if substream else 1}'
43+
if vendor == VendorType.ZAUBERZEUG:
44+
return f'rtsp://root:Adminadmin@{ip}/stream={substream}'
4045
return None

0 commit comments

Comments
 (0)