koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
3.9k stars 237 forks source link

Homekit camera close recording tweaks #1486

Closed longzheng closed 1 month ago

longzheng commented 1 month ago

Fix r?.throw because the generator is already closed/finished by the time it runs, so it never triggers the catch()

Added console.log to print a more friendly error message (only include error code is if it's >0)

Moved !isOpen() check. HAP requests last fragment even though it's already closed the recording stream. Now the fragment request is ignored entirely (rather than just skipping the yield).