Skip to content

Commit

Permalink
Correction on flow of events (#4)
Browse files Browse the repository at this point in the history
The data stream is not opened until a motion service reports activity. I'm unsure if this lazy load was a change from the original behavior when the spec was written, but that is how it works now.
  • Loading branch information
koush authored Jan 26, 2022
1 parent f9fb86d commit f1d9bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ or `-70412` (`NOT_ALLOWED_IN_CURRENT_STATE`, if the `reason` doesn't match the c
In this section I will give a brief overlook on how an activity will be recorded using secure-video.

* The secure-video camera gets paired.
* All available Home Hubs will open an HomeKit Data Stream Connection to the accessory
* The user sets the current [camera state](#active-states) to `Stream & Allow Recording`
* The configuration of the camera will be set up:
* The accessory will receive a write request on the
Expand All @@ -419,6 +418,7 @@ In this section I will give a brief overlook on how an activity will be recorded
set to true (and all other active characteristics getting updated according to the [camera state](#active-states))
* If the camera is set to detect motion it will continuously check the video stream for any movement as usual.
If recording is enabled, the camera will fill the pre buffer with mp4 fragments according to the First-In-Last-Out principle.
* When the motion service reports activity, all available Home Hubs will open an HomeKit Data Stream Connection to the accessory
* If the camera detects motion (analogous for doorbell button presses) if will set the `Motion Detected` characteristic
of the `Motion Sensor` to true
* After that, a home hub will initiate a bulk send session over HDS and sends a [`dataSend` `start` request](#41-start)
Expand Down

0 comments on commit f1d9bf7

Please sign in to comment.