Skip to content

Commit 788afb7

Browse files
committed
Fix HomeKit server support on iOS 26 #1843
1 parent cd7fa5d commit 788afb7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pkg/hap/camera/accessory.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func NewAccessory(manuf, model, name, serial, firmware string) *hap.Accessory {
1212
hap.ServiceAccessoryInformation(manuf, model, name, serial, firmware),
1313
ServiceCameraRTPStreamManagement(),
1414
//hap.ServiceHAPProtocolInformation(),
15-
//ServiceMicrophone(),
15+
ServiceMicrophone(),
1616
},
1717
}
1818
acc.InitIID()
@@ -30,17 +30,17 @@ func ServiceMicrophone() *hap.Service {
3030
Perms: hap.EVPRPW,
3131
//Descr: "Mute",
3232
},
33-
{
34-
Type: "119",
35-
Format: hap.FormatUInt8,
36-
Value: 100,
37-
Perms: hap.EVPRPW,
38-
//Descr: "Volume",
39-
//Unit: hap.UnitPercentage,
40-
//MinValue: 0,
41-
//MaxValue: 100,
42-
//MinStep: 1,
43-
},
33+
//{
34+
// Type: "119",
35+
// Format: hap.FormatUInt8,
36+
// Value: 100,
37+
// Perms: hap.EVPRPW,
38+
// //Descr: "Volume",
39+
// //Unit: hap.UnitPercentage,
40+
// //MinValue: 0,
41+
// //MaxValue: 100,
42+
// //MinStep: 1,
43+
//},
4444
},
4545
}
4646
}
@@ -62,7 +62,7 @@ func ServiceCameraRTPStreamManagement() *hap.Service {
6262
VideoAttrs: []VideoAttrs{
6363
{Width: 1920, Height: 1080, Framerate: 30},
6464
{Width: 1280, Height: 720, Framerate: 30}, // important for iPhones
65-
{Width: 320, Height: 240, Framerate: 15}, // apple watch
65+
{Width: 320, Height: 240, Framerate: 15}, // apple watch
6666
},
6767
},
6868
},

0 commit comments

Comments
 (0)