Add Remote Video Monitoring to Property Management Software
Описание и применение
Добавление удалённого видеонаблюдения в систему управления недвижимостью: интеграция камер как ресурсов, ограниченных правами доступа, с API для живого просмотра, скриншотов и прикрепления к заявкам на обслуживание.
Задача
Property managers need to view lobby cameras directly within the existing PMS without switching to a separate app.
Результат
Implemented property-scoped live camera access with ACL, live streaming, screenshot capture, and work‑order attachment integration, all within the existing PMS stack.
Рабочий процесс
- Create property_cameras table linked to properties
- Ensure property_managers ACL is clean before adding player
- Add API endpoints: GET /properties/:pid/cameras, POST /properties/:pid/cameras/:cid/live, POST /properties/:pid/cameras/:cid/screenshot, POST /properties/:pid/cameras/:cid/playback
- Implement live session start via media.startLive and audit logging
- Add capability checks for playback, ptz, talk
- Integrate screenshot upload to work_order_attachments with property_id denormalization
- Render camera selector and player on property page; dispose on unmount or pagehide
- Handle mobile pause on background
- Limit UI to essential cameras (e.g., gate, package room) in v1
Доказательства
I add live security camera video as a property-scoped resource, not as a new product.
property_managers(user_id, property_id, role) is the ACL.
- Дата записи: 2026-09-15T02:16:22.556Z