etwmc / Personal-HomeKit-HAP

This project will provide source code to build a HomeKit support accessories.
MIT License
236 stars 85 forks source link

Is there an example of setting up a ip camera? #67

Open tstiman opened 7 years ago

tstiman commented 7 years ago

I use raspberry pi platform and raspberry pi camera and usb microphone to achieve homekit camera, now know ffmpeg instruction related to the use of images (h.264) and sound (aac-eld), but do not know how to achieve on the homekit

etwmc commented 7 years ago

It would requires a user-based query support (i.e. if two devices ask for the value for the same characteristic, it can return different values. ) Currently, this version of PHK doesn't support it yet (really busy with my machine learning project. ), but the next version is in the other project, WiFi-Radar HAP, which is based upon the user-based query support. I would write the code for the IP camera pretty soon (I figured out which IP cam I would get. So I just need to figure out the highest performance way to handle the encryption of SRTP. ), but if you have time and understanding of the HomeKit protocol on getting encryption info (I think KahosT has it in his NJS implement), I guess you can implement it in the meantime. (Or just wait a few weeks. I just need to spend some time on the packet analysis)

tstiman commented 7 years ago

Since I need C ++ to do this, I am trying to modify it with the NJS version of KahosT, but have modified a couple of weeks to encounter a lot of problems. I think I need to spend a lot of time understanding the specs. If you have completed the code, Tell me, or I'll tell you when I'm done. thank you.