ikalchev / HAP-python

A python implementation of the HomeKit Accessory Protocol (HAP)
Other
607 stars 116 forks source link

Add Support For Camera 2-way Audio #446

Open shmuelzon opened 11 months ago

shmuelzon commented 11 months ago

Hey,

I was wondering what it might take to add initial support for 2-way audio on camera devices. While sniffing the network traffic, I do see that my phone sends an RTP stream back to HAP-python when the talk button is pressed but I don't know how I can get the properties of that stream in advance, mainly which port, codec and encryption is used.

I'd be happy to just get a callback/notification with this information for starters and then I can run ffmpeg or something to push it to the relevant destination. If there's anything I can do to help, please let me know but I will need some pointers for where to start/look.

Thanks in advance!