@@ -12,7 +12,7 @@ func NewAccessory(manuf, model, name, serial, firmware string) *hap.Accessory {
12
12
hap .ServiceAccessoryInformation (manuf , model , name , serial , firmware ),
13
13
ServiceCameraRTPStreamManagement (),
14
14
//hap.ServiceHAPProtocolInformation(),
15
- // ServiceMicrophone(),
15
+ ServiceMicrophone (),
16
16
},
17
17
}
18
18
acc .InitIID ()
@@ -30,17 +30,17 @@ func ServiceMicrophone() *hap.Service {
30
30
Perms : hap .EVPRPW ,
31
31
//Descr: "Mute",
32
32
},
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
+ // },
44
44
},
45
45
}
46
46
}
@@ -62,7 +62,7 @@ func ServiceCameraRTPStreamManagement() *hap.Service {
62
62
VideoAttrs : []VideoAttrs {
63
63
{Width : 1920 , Height : 1080 , Framerate : 30 },
64
64
{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
66
66
},
67
67
},
68
68
},
0 commit comments