fix(go2rtc): use RTSP for HomeKit

This commit is contained in:
JJGadgets
2025-08-09 21:11:59 +08:00
parent 2655168999
commit dc23cf65e9
2 changed files with 29 additions and 1 deletions

View File

@@ -23,7 +23,8 @@ rtsp:
streams:
living_room_c220: onvif://${TAPO_C220_LIVING_ROOM_USERNAME}:${TAPO_C220_LIVING_ROOM_PASSWORD}@${TAPO_C220_LIVING_ROOM_HOST}:2020
living_room_c220_homekit: ffmpeg:living_room_c220#audio=opus # #video=h264 # no need to transcode video as C220 is already 2650x1440@15 H264
living_room_c220_rtsp: rtsp://${TAPO_C220_LIVING_ROOM_USERNAME}:${TAPO_C220_LIVING_ROOM_PASSWORD}@${TAPO_C220_LIVING_ROOM_HOST}:554/stream1
living_room_c220_homekit: ffmpeg:living_room_c220_rtsp#audio=opus#video=copy # #video=h264 # no need to transcode video as C220 is already 2650x1440@15 H264
homekit:
living_room_c220_homekit:

View File

@@ -0,0 +1,27 @@
---
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: iot
namespace: go2rtc
annotations:
description: VLAN tagging based on MAC handled by FortiSwitch NAC
spec:
config: |-
{
"cniVersion": "0.3.1",
"name": "iot",
"plugins": [
{
"type": "bridge",
"bridge": "br0",
"capabilities": { "ips": true, "mac": true },
"ipam": {
"type": "static",
"routes": [
{ "dst": "224.0.0.0/4", "gw": "${IP_ROUTER_VLAN_IOT}" }
]
}
}
]
}