-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPCamera #95
Comments
That's a good question actually. It seems we don't have the proper accessories / services / characteristics to do that. Those types are generated from a framework, but on my machine (latest Catalina), those types aren't present or we're not looking in the right place. |
Actually there are some in the framework, but I couldn't understand why they are not imported by hap-update. I created them manually, I see the video window on homekit, but I have problems starting the video. Maybe I don't correctly insert the bytes (tlv8). |
This is an example of what is found in "plain-metadata.config" and which is not imported: |
We only emit the characteristics that are actually in use by a service. You can remove HAP/Sources/HAPUpdate/Inspector.swift Line 458 in 82f6811
However you still wouldn't have a pre-made accessory and service, as those are not listed in that framework. Can you share what your configuration looks like so far, to get them listed in the Home app? |
Great Bouke! The test implementation is attached to the message. |
ok, I have removed camera-rtp-stream-management from blacklistAppServices
..and now I have Service and Characteristics into Generated.swift After I modified the file "CharacteristicValueType" in this way:
and now I'm at the point of before :) But it's much cleaner |
Out of curiosity; what does your code look like now to initialize the camera accessory? |
this: And intercept "resource" in router func, for send camera snapshot to controller: |
But maybe I make some mistakes, because the controller should send me a response to the configuration of the Camera, but I don't see. If you want I can send the project, but it is compiled only on iOS. |
@Brunz Did you ever get this to work? |
Hi @joshsnelling , I implemented all the missing piece of protocol but I was unable to send the video in the correct format. I have also tried using ffmpeg for iOS to configure RTS streaming, but there are too many properties to configure and I am not an expert. |
@Brunz Hi! Any progress with camera accessory implementation? |
Could you create an IPCamera type accessory? I didn't understand how to do it
The text was updated successfully, but these errors were encountered: