Rtsp camera support for iOS 10
Closed this issue · 5 comments
Hello,
I'm trying to get my foscam camera Foscam C1 / Foscam C2 camera to work with HomeKit iOS 10 beta as RTSP camera using the new ServiceTypes and Characteristics in iOS 10.
Please refer to the New HomeKitTyoes.js file here:
https://github.com/pdlove/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js
/**
* Service "Camera Control"
*/
Service.CameraControl = function(displayName, subtype) {
Service.call(this, displayName, '00000111-0000-1000-8000-0026BB765291', subtype);
// Required Characteristics
this.addCharacteristic(Characteristic.On);
// Optional Characteristics
this.addOptionalCharacteristic(Characteristic.CurrentHorizontalTiltAngle);
this.addOptionalCharacteristic(Characteristic.CurrentVerticalTiltAngle);
this.addOptionalCharacteristic(Characteristic.TargetHorizontalTiltAngle);
this.addOptionalCharacteristic(Characteristic.TargetVerticalTiltAngle);
this.addOptionalCharacteristic(Characteristic.NightVision);
this.addOptionalCharacteristic(Characteristic.OpticalZoom);
this.addOptionalCharacteristic(Characteristic.DigitalZoom);
this.addOptionalCharacteristic(Characteristic.ImageRotation);
this.addOptionalCharacteristic(Characteristic.ImageMirroring);
this.addOptionalCharacteristic(Characteristic.Name);
};
inherits(Service.CameraControl, Service);
/**
* Service "Camera RTP Stream Management"
*/
Service.CameraRTPStreamManagement = function(displayName, subtype) {
Service.call(this, displayName, '00000110-0000-1000-8000-0026BB765291', subtype);
// Required Characteristics
this.addCharacteristic(Characteristic.SupportedVideoStreamConfiguration);
this.addCharacteristic(Characteristic.SupportedAudioStreamConfiguration);
this.addCharacteristic(Characteristic.SupportedRTPConfiguration);
this.addCharacteristic(Characteristic.SelectedStreamConfiguration);
this.addCharacteristic(Characteristic.StreamingStatus);
this.addCharacteristic(Characteristic.SetupEndpoints);
// Optional Characteristics
this.addOptionalCharacteristic(Characteristic.Name);
};
inherits(Service.CameraRTPStreamManagement, Service);
Any ideas or some help?
I'm very unfamiliar with the foscam api and RTSP camera coding in general.
Just trying to get a coding template ready for the iOS 10 release next month... Well in a few weeks really 😊
Now that iOS 10 is out of Beta I'm super looking forward to this if anyone has made any progress.
No news yet unfortunately. This plugin is quite old now and doesn't seem to work for me at all.
I suggest looking at homebridge-foscam2 and perhaps posting your request there.
Ah, thank you - didn't even notice there was a homebridge-foscam2
Hope they get it working soon, or if they don't I may take a crack at it in a week or so.
please try: https://github.com/luisiam/homebridge-foscamcamera
This repo can be considered deprecated