ab27a042c1
- Introduced HKSV configuration options in homekit.go, allowing for motion detection and doorbell features. - Implemented API endpoints for triggering motion detection and doorbell events. - Enhanced server.go to handle HKSV sessions and manage motion detection states. - Created new accessory types for HKSV and doorbell in accessory.go. - Added support for audio recording configurations in ch207.go. - Defined new services for motion detection and doorbell in services_hksv.go. - Implemented opack encoding/decoding for HDS protocol in opack.go and protocol.go. - Updated OpenAPI documentation to reflect new endpoints and features. - Extended schema.json to include HKSV configuration options.
33 lines
860 B
Go
33 lines
860 B
Go
package camera
|
|
|
|
const TypeSupportedAudioRecordingConfiguration = "207"
|
|
|
|
//goland:noinspection ALL
|
|
const (
|
|
AudioRecordingCodecTypeAACELD = 2
|
|
AudioRecordingCodecTypeAACLC = 3
|
|
|
|
AudioRecordingSampleRate8Khz = 0
|
|
AudioRecordingSampleRate16Khz = 1
|
|
AudioRecordingSampleRate24Khz = 2
|
|
AudioRecordingSampleRate32Khz = 3
|
|
AudioRecordingSampleRate44Khz = 4
|
|
AudioRecordingSampleRate48Khz = 5
|
|
)
|
|
|
|
type SupportedAudioRecordingConfiguration struct {
|
|
CodecConfigs []AudioRecordingCodecConfiguration `tlv8:"1"`
|
|
}
|
|
|
|
type AudioRecordingCodecConfiguration struct {
|
|
CodecType byte `tlv8:"1"`
|
|
CodecParams []AudioRecordingCodecParameters `tlv8:"2"`
|
|
}
|
|
|
|
type AudioRecordingCodecParameters struct {
|
|
Channels uint8 `tlv8:"1"`
|
|
BitrateMode []byte `tlv8:"2"`
|
|
SampleRate []byte `tlv8:"3"`
|
|
MaxAudioBitrate []uint32 `tlv8:"4"`
|
|
}
|