Fix HomeKit server support on iOS 26 #1843

This commit is contained in:
Alex X
2025-09-18 23:08:33 +03:00
parent cd7fa5d09c
commit 788afb7189
+13 -13
View File
@@ -12,7 +12,7 @@ func NewAccessory(manuf, model, name, serial, firmware string) *hap.Accessory {
hap.ServiceAccessoryInformation(manuf, model, name, serial, firmware), hap.ServiceAccessoryInformation(manuf, model, name, serial, firmware),
ServiceCameraRTPStreamManagement(), ServiceCameraRTPStreamManagement(),
//hap.ServiceHAPProtocolInformation(), //hap.ServiceHAPProtocolInformation(),
//ServiceMicrophone(), ServiceMicrophone(),
}, },
} }
acc.InitIID() acc.InitIID()
@@ -30,17 +30,17 @@ func ServiceMicrophone() *hap.Service {
Perms: hap.EVPRPW, Perms: hap.EVPRPW,
//Descr: "Mute", //Descr: "Mute",
}, },
{ //{
Type: "119", // Type: "119",
Format: hap.FormatUInt8, // Format: hap.FormatUInt8,
Value: 100, // Value: 100,
Perms: hap.EVPRPW, // Perms: hap.EVPRPW,
//Descr: "Volume", // //Descr: "Volume",
//Unit: hap.UnitPercentage, // //Unit: hap.UnitPercentage,
//MinValue: 0, // //MinValue: 0,
//MaxValue: 100, // //MaxValue: 100,
//MinStep: 1, // //MinStep: 1,
}, //},
}, },
} }
} }
@@ -62,7 +62,7 @@ func ServiceCameraRTPStreamManagement() *hap.Service {
VideoAttrs: []VideoAttrs{ VideoAttrs: []VideoAttrs{
{Width: 1920, Height: 1080, Framerate: 30}, {Width: 1920, Height: 1080, Framerate: 30},
{Width: 1280, Height: 720, Framerate: 30}, // important for iPhones {Width: 1280, Height: 720, Framerate: 30}, // important for iPhones
{Width: 320, Height: 240, Framerate: 15}, // apple watch {Width: 320, Height: 240, Framerate: 15}, // apple watch
}, },
}, },
}, },