python-aidot-cameras 1.3.0__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. {python_aidot_cameras-1.3.0/python_aidot_cameras.egg-info → python_aidot_cameras-1.3.2}/PKG-INFO +1 -1
  2. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/client.py +52 -6
  3. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/constants.py +4 -5
  4. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/sd_listing.py +7 -91
  5. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/pyproject.toml +1 -1
  6. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
  7. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/python_aidot_cameras.egg-info/SOURCES.txt +1 -1
  8. python_aidot_cameras-1.3.2/tests/test_event_notice_watch.py +110 -0
  9. python_aidot_cameras-1.3.2/tests/test_sd_delete.py +85 -0
  10. python_aidot_cameras-1.3.0/tests/test_event_notice_watch.py +0 -70
  11. python_aidot_cameras-1.3.0/tests/test_sd_thumbnails_and_delete.py +0 -140
  12. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/LICENSE +0 -0
  13. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/MANIFEST.in +0 -0
  14. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/README.md +0 -0
  15. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/__init__.py +0 -0
  16. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/__main__.py +0 -0
  17. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_log_redaction.py +0 -0
  18. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_private_file.py +0 -0
  19. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_upstream.py +0 -0
  20. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/__init__.py +0 -0
  21. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
  22. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
  23. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
  24. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
  25. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
  26. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
  27. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
  28. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
  29. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
  30. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
  31. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
  32. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
  33. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
  34. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/events.py +0 -0
  35. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
  36. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
  37. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
  38. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
  39. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
  40. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
  41. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
  42. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
  43. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
  44. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
  45. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
  46. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
  47. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
  48. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
  49. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
  50. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
  51. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
  52. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
  53. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
  54. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/__init__.py +0 -0
  55. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/aac_track.py +0 -0
  56. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/agc.py +0 -0
  57. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/controls.py +0 -0
  58. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/go2rtc.py +0 -0
  59. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/h264_sps.py +0 -0
  60. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/health.py +0 -0
  61. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/hls_ts.py +0 -0
  62. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/hwaccel.py +0 -0
  63. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/lan_control.py +0 -0
  64. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/models.py +0 -0
  65. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/protocol.py +0 -0
  66. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/recording.py +0 -0
  67. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/rtp_h264.py +0 -0
  68. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/rtsp_publish.py +0 -0
  69. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/sd_events.py +0 -0
  70. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/sd_playback.py +0 -0
  71. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/sdes.py +0 -0
  72. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/sdes_open.py +0 -0
  73. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/ts_fanout.py +0 -0
  74. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/ts_tee.py +0 -0
  75. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/webrtc.py +0 -0
  76. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/camera/webrtc_open.py +0 -0
  77. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/client.py +0 -0
  78. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/cloud_auth.py +0 -0
  79. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/const.py +0 -0
  80. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/credentials.py +0 -0
  81. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/crypto.py +0 -0
  82. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/device_client.py +0 -0
  83. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/discover.py +0 -0
  84. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/exceptions.py +0 -0
  85. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/g711.py +0 -0
  86. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/lan_retry.py +0 -0
  87. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/mqtt_config2.py +0 -0
  88. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/py.typed +0 -0
  89. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/aidot_cameras/settings.py +0 -0
  90. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
  91. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
  92. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/python_aidot_cameras.egg-info/requires.txt +0 -0
  93. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/python_aidot_cameras.egg-info/top_level.txt +0 -0
  94. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/setup.cfg +0 -0
  95. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_aac_track.py +0 -0
  96. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
  97. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
  98. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_aioice_compat.py +0 -0
  99. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_alarm_event.py +0 -0
  100. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_answer_pt_kinds.py +0 -0
  101. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_answer_sdp_video_pt.py +0 -0
  102. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_answer_section_selection.py +0 -0
  103. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_arrival_timestamps.py +0 -0
  104. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_audio_mux_offline.py +0 -0
  105. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_auth_error_routing.py +0 -0
  106. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_auto_alarm.py +0 -0
  107. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_auto_light_settings.py +0 -0
  108. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
  109. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_avio_header_single_layout.py +0 -0
  110. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_avio_request.py +0 -0
  111. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_avio_response_parse.py +0 -0
  112. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_avio_response_router.py +0 -0
  113. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_backoff.py +0 -0
  114. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_battery_cap_spans_sessions.py +0 -0
  115. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_battery_detection.py +0 -0
  116. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_battery_evidence_corroboration.py +0 -0
  117. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
  118. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_battery_wake_settles_before_the_command.py +0 -0
  119. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ble_gateway_is_gone.py +0 -0
  120. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_bridge_state_sentinels.py +0 -0
  121. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_busy_backoff.py +0 -0
  122. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_camera_closed_session.py +0 -0
  123. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_camera_power.py +0 -0
  124. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_camera_properties.py +0 -0
  125. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_canary_log_names_the_camera.py +0 -0
  126. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
  127. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_cloud_count.py +0 -0
  128. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_cloud_error_log_names_the_exception.py +0 -0
  129. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_cloud_error_severity.py +0 -0
  130. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_cloud_plan.py +0 -0
  131. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_constants_imports_resolve.py +0 -0
  132. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_control_verdicts.py +0 -0
  133. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_controls_ride_the_direct_session.py +0 -0
  134. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_declared_properties.py +0 -0
  135. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_deferred_hardening.py +0 -0
  136. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_detection_types.py +0 -0
  137. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_device_cmd_seq_match.py +0 -0
  138. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_device_login_guard.py +0 -0
  139. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_device_user_info_cache.py +0 -0
  140. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
  141. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_direct_ts_keyframe_signal.py +0 -0
  142. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_direct_ts_serve.py +0 -0
  143. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_direct_ts_serve_only_for_http.py +0 -0
  144. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dormant_camera_cleanup.py +0 -0
  145. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_drain_is_cancellable.py +0 -0
  146. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_mux_terminal_write.py +0 -0
  147. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
  148. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_open_pacer.py +0 -0
  149. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_pinning.py +0 -0
  150. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_recorder_wiring.py +0 -0
  151. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_refusal_after_the_echo.py +0 -0
  152. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_resolution_ack.py +0 -0
  153. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_serve_backoff.py +0 -0
  154. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_serve_decode_skip.py +0 -0
  155. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_serve_ice_wait.py +0 -0
  156. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_serve_open_timeout.py +0 -0
  157. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_skip_signaling_wait.py +0 -0
  158. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_stdout_producer.py +0 -0
  159. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_tap_states_no_reorder.py +0 -0
  160. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_ts_copy_recording.py +0 -0
  161. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_dtls_video_presence.py +0 -0
  162. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_egress_guard.py +0 -0
  163. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_env_seams.py +0 -0
  164. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_every_exception_is_exported.py +0 -0
  165. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_feature_probe_needs_a_live_session.py +0 -0
  166. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
  167. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
  168. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_first_media_abandon_rules.py +0 -0
  169. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_futile_keepalive.py +0 -0
  170. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_g711_law_conversion.py +0 -0
  171. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_gate_requires_a_decoded_frame.py +0 -0
  172. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_go2rtc.py +0 -0
  173. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_go2rtc_cli.py +0 -0
  174. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_h264_decode_rate_limit.py +0 -0
  175. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_h264_sps.py +0 -0
  176. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_health_line.py +0 -0
  177. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_health_line_counts_pictures.py +0 -0
  178. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_highport_nomination.py +0 -0
  179. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_hls_ts_end_to_end.py +0 -0
  180. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_hls_ts_wiring.py +0 -0
  181. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_hwaccel_probe.py +0 -0
  182. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ice_config_cache.py +0 -0
  183. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ice_credentials_match_the_app.py +0 -0
  184. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ice_peer_reflexive.py +0 -0
  185. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_idle_release_both_loops.py +0 -0
  186. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ipc_envelope_single_builder.py +0 -0
  187. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_keepalive_renew.py +0 -0
  188. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_keyframe_prompter.py +0 -0
  189. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_control.py +0 -0
  190. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_login_accessors.py +0 -0
  191. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
  192. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_retry_short_sessions.py +0 -0
  193. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
  194. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_retry_stops_on_close.py +0 -0
  195. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_lan_sweep_only_with_lights.py +0 -0
  196. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_late_repeats_are_dropped.py +0 -0
  197. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
  198. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_light_active_color_mode.py +0 -0
  199. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_live_session_carries_talk.py +0 -0
  200. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_live_stream_param.py +0 -0
  201. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_live_validate_policy.py +0 -0
  202. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_live_validate_token_refresh.py +0 -0
  203. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_live_video_canary.py +0 -0
  204. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_liveplay_echo_timeout.py +0 -0
  205. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_local_only_controls.py +0 -0
  206. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_log_hygiene.py +0 -0
  207. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_logging_caps.py +0 -0
  208. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_login_connect_deadline.py +0 -0
  209. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_login_reconnect_backoff.py +0 -0
  210. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_loop_break_ends_the_loop.py +0 -0
  211. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_media_counted_only_when_plaintext.py +0 -0
  212. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_media_path_is_reported.py +0 -0
  213. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_media_socket_rcvbuf.py +0 -0
  214. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_media_wait_floor.py +0 -0
  215. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_motion_poll.py +0 -0
  216. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mqtt_client_id_is_exact.py +0 -0
  217. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mqtt_config2.py +0 -0
  218. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mqtt_credential_refetch.py +0 -0
  219. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mqtt_credential_self_heal.py +0 -0
  220. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mqtt_password_not_persisted.py +0 -0
  221. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mqtt_thread_not_orphaned.py +0 -0
  222. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_mypy_new_findings.py +0 -0
  223. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_nack.py +0 -0
  224. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
  225. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_narrow_pc_ice.py +0 -0
  226. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_no_key_material_in_logs.py +0 -0
  227. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
  228. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_no_self_referential_go2rtc.py +0 -0
  229. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_no_unbounded_hex_dumps.py +0 -0
  230. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_no_undefined_names.py +0 -0
  231. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
  232. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_off_subnet_candidate.py +0 -0
  233. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
  234. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_offline_keepalive_pause.py +0 -0
  235. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_on_frame_is_an_av_frame.py +0 -0
  236. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_open_errors_are_aidot_errors.py +0 -0
  237. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_open_fail_logger.py +0 -0
  238. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_open_gate_delay.py +0 -0
  239. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_peer_id_client_type.py +0 -0
  240. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_peerid_reuse.py +0 -0
  241. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_persistent_mqtt.py +0 -0
  242. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_persistent_mqtt_robustness.py +0 -0
  243. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_phase_returns_reach_the_caller.py +0 -0
  244. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_phase_state_is_complete.py +0 -0
  245. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_plaintext_mqtt_refused.py +0 -0
  246. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_post_merge_hardening.py +0 -0
  247. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
  248. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_public_signature_matches_impl.py +0 -0
  249. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_publish_target_readiness.py +0 -0
  250. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_quality_campaign_in_session.py +0 -0
  251. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_reboot_action.py +0 -0
  252. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_recent_recordings.py +0 -0
  253. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_region_allowlist.py +0 -0
  254. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_remb.py +0 -0
  255. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
  256. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
  257. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_resent_frames_are_dropped.py +0 -0
  258. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_resolution_persists.py +0 -0
  259. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_restart_cycle.py +0 -0
  260. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_review_lan_retry_and_graces.py +0 -0
  261. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_rtp_h264.py +0 -0
  262. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_rtsp_publish.py +0 -0
  263. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_rtsp_publish_go2rtc.py +0 -0
  264. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_scripts_importable.py +0 -0
  265. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sctp_in_order.py +0 -0
  266. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sctp_init_ack_tsn.py +0 -0
  267. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sctp_reassembly.py +0 -0
  268. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sctp_sack.py +0 -0
  269. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_card_presence.py +0 -0
  270. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_event_decode.py +0 -0
  271. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_event_probe_payloads.py +0 -0
  272. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_listing.py +0 -0
  273. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback.py +0 -0
  274. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_clock.py +0 -0
  275. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_controls.py +0 -0
  276. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_dtls.py +0 -0
  277. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_end.py +0 -0
  278. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_entry.py +0 -0
  279. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_media_hold.py +0 -0
  280. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sd_playback_open.py +0 -0
  281. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_avio_dispatch.py +0 -0
  282. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_bridge_break_gate.py +0 -0
  283. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
  284. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_connection_mode.py +0 -0
  285. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_fast_liveplay.py +0 -0
  286. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
  287. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_first_media_stall_report.py +0 -0
  288. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_ice_teardown.py +0 -0
  289. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_idle_release.py +0 -0
  290. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_nack_bridge.py +0 -0
  291. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_offer_video_pin.py +0 -0
  292. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_open_cleanup.py +0 -0
  293. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
  294. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_open_yields_the_loop.py +0 -0
  295. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_pinned_codec_retry.py +0 -0
  296. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_sctp_abort.py +0 -0
  297. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_serve_audio.py +0 -0
  298. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_serve_cmd.py +0 -0
  299. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_serve_stderr_drain.py +0 -0
  300. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_sprop.py +0 -0
  301. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_talk.py +0 -0
  302. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_teardown_exit_log.py +0 -0
  303. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_terminal_ack.py +0 -0
  304. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_terminal_ack_latency.py +0 -0
  305. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
  306. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdes_watchdog.py +0 -0
  307. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdp_narrowing_properties.py +0 -0
  308. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sdp_payload_type_narrowing.py +0 -0
  309. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_security_hardening.py +0 -0
  310. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
  311. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serializable_login_info.py +0 -0
  312. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
  313. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_input_timeout.py +0 -0
  314. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_loop_releases_on_error.py +0 -0
  315. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_loss_tolerance.py +0 -0
  316. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_pt_respects_the_pin.py +0 -0
  317. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_relay.py +0 -0
  318. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
  319. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_session_mode_seq.py +0 -0
  320. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_session_stats.py +0 -0
  321. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_session_stop_twice.py +0 -0
  322. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_set_dev_attr_payload.py +0 -0
  323. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_settings_registry.py +0 -0
  324. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_shared_house_seam.py +0 -0
  325. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
  326. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_skip_guard.py +0 -0
  327. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sleep_camera.py +0 -0
  328. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_snapshot_cancellation.py +0 -0
  329. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_speak.py +0 -0
  330. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sprop_capture_gate.py +0 -0
  331. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sprop_staleness.py +0 -0
  332. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sprop_unstable_public.py +0 -0
  333. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
  334. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_srtp_rx_rekey.py +0 -0
  335. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_srtp_tx_key_note.py +0 -0
  336. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stable_terminal_id.py +0 -0
  337. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stall_nudge_policy.py +0 -0
  338. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
  339. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
  340. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
  341. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
  342. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stall_reports_reach_the_artifact.py +0 -0
  343. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_status_and_trace_channels.py +0 -0
  344. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stream_cap.py +0 -0
  345. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stream_drain_ownership.py +0 -0
  346. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stream_idle.py +0 -0
  347. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stream_settings.py +0 -0
  348. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stream_slot_cap.py +0 -0
  349. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stream_teardown.py +0 -0
  350. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_stun_attr_single_builder.py +0 -0
  351. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_swallowed_exception_names.py +0 -0
  352. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_talk.py +0 -0
  353. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
  354. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_tap_to_mux_end_to_end.py +0 -0
  355. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_terminal_ack.py +0 -0
  356. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_token_file_robustness.py +0 -0
  357. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_token_refresh.py +0 -0
  358. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_transport_failure_reporting.py +0 -0
  359. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ts_fanout.py +0 -0
  360. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_ts_tee.py +0 -0
  361. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_turn_create_permission.py +0 -0
  362. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_turn_target_shared.py +0 -0
  363. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_unbind_notice.py +0 -0
  364. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
  365. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_upstream_compat.py +0 -0
  366. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_upstream_seam_adapter.py +0 -0
  367. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_upstream_secrets_redacted.py +0 -0
  368. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_validator_shares_one_token.py +0 -0
  369. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_vendored_aiortc_integrity.py +0 -0
  370. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_video_presence_needs_a_keyframe.py +0 -0
  371. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_video_profile_log.py +0 -0
  372. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_video_pts_dts.py +0 -0
  373. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_video_ts_unwrap.py +0 -0
  374. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_viewer_check_throttle.py +0 -0
  375. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_viewer_presence.py +0 -0
  376. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_viewer_present_push_mode.py +0 -0
  377. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_wait_or_event.py +0 -0
  378. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_wake_gate_camera_evidence.py +0 -0
  379. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_wake_readiness_retry.py +0 -0
  380. {python_aidot_cameras-1.3.0 → python_aidot_cameras-1.3.2}/tests/test_webrtc_answer_race.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-aidot-cameras
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
5
5
  Author-email: cbrightly <chris.brightly@gmail.com>
6
6
  License-Expression: MIT
@@ -1322,6 +1322,32 @@ def _get_stream_slots() -> "asyncio.Semaphore":
1322
1322
  _KEEPALIVE_WINDOW_S = 25
1323
1323
  _KEEPALIVE_RENEW_S = 10
1324
1324
 
1325
+ # An event notice pokes the motion poll at most this often (the cloud's live
1326
+ # session heartbeat arrives every 5 s; a detection is rarer than that).
1327
+ _EVENT_POKE_MIN_GAP_S = 10.0
1328
+ _EVENT_DETECTION_WORDS = (
1329
+ "motion",
1330
+ "human",
1331
+ "person",
1332
+ "pet",
1333
+ "sound",
1334
+ "alarm",
1335
+ "detect",
1336
+ "vehicle",
1337
+ "ring",
1338
+ "doorbell",
1339
+ "pir",
1340
+ "cry",
1341
+ )
1342
+
1343
+
1344
+ def _event_name_is_detection(name: str) -> bool:
1345
+ """Whether an event notice's name says a detection happened (the names
1346
+ the cloud uses are not documented; the periodic live heartbeat does not
1347
+ match any of these words)."""
1348
+ low = name.lower()
1349
+ return any(w in low for w in _EVENT_DETECTION_WORDS)
1350
+
1325
1351
 
1326
1352
  def _ack_matches_seq(msg, seq):
1327
1353
  """Is ``msg`` the device's answer to the command we sent as ``seq``?
@@ -5665,6 +5691,8 @@ class CameraMixin(
5665
5691
  return False
5666
5692
  device_id = self.device_id
5667
5693
  loop = asyncio.get_running_loop()
5694
+ seen_names: set[str] = set()
5695
+ last_poke = [float("-inf")]
5668
5696
 
5669
5697
  def _handler(topic, payload) -> None:
5670
5698
  text = str(payload)[:600]
@@ -5686,12 +5714,30 @@ class CameraMixin(
5686
5714
  )
5687
5715
  if dev and dev != device_id:
5688
5716
  return
5689
- _LOGGER.info(
5690
- "camera %s: event notice %s (keys %s)",
5691
- device_id,
5692
- msg.get("method"),
5693
- sorted(inner.keys())[:8],
5694
- )
5717
+ name = str(
5718
+ inner.get("event") or inner.get("eventType") or inner.get("type") or ""
5719
+ )[:40]
5720
+ # Measured 2026-11-11: during a live view the cloud sends a
5721
+ # devEventNotif for the camera every 5 s (a session heartbeat,
5722
+ # not a detection), and the app itself reads devEventNotif only
5723
+ # for a lights feature. So a notice pokes the poll only when its
5724
+ # name says detection, and each new name is logged once so the
5725
+ # vocabulary can be read off an INFO log.
5726
+ if name not in seen_names:
5727
+ seen_names.add(name)
5728
+ _LOGGER.info(
5729
+ "camera %s: event notice %s event=%r (keys %s)",
5730
+ device_id,
5731
+ msg.get("method"),
5732
+ name,
5733
+ sorted(inner.keys())[:8],
5734
+ )
5735
+ if not _event_name_is_detection(name):
5736
+ return
5737
+ now = time.monotonic()
5738
+ if now - last_poke[0] < _EVENT_POKE_MIN_GAP_S:
5739
+ return
5740
+ last_poke[0] = now
5695
5741
  loop.call_soon_threadsafe(_call_guarded, callback)
5696
5742
 
5697
5743
  await self.async_stop_watching_events()
@@ -170,11 +170,10 @@ IOTYPE_USER_IPCAM_SPEAKERSTART_WEB_RTC_RESP = 0x353 # 851
170
170
  #: with one byte, 0 for done.
171
171
  IOTYPE_USER_IPCAM_DELLISTEVENT_REQ = 0x4B7
172
172
  IOTYPE_USER_IPCAM_DELLISTEVENT_RESP = 0x4B8
173
- #: Thumbnails of card recordings (the app's getThumbnais, sent as its
174
- #: "custom command"): 0x4b9 asks for a list of recordings, 0x4ba brings one
175
- #: picture per reply.
176
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ = 0x4B9
177
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP = 0x4BA
173
+ # Card thumbnails (the app's getThumbnais, 0x4b9/0x4ba "custom command") are
174
+ # NOT implemented: the camera streams the picture back over a separate native
175
+ # TUTK AV channel (avClientStartEx -> avRecvFrameData2), which this library's
176
+ # WebRTC/SDES bridge cannot open or read. See docs/PROTOCOL-INVENTORY.md.
178
177
  IOTYPE_USER_IPCAM_HASLISTEVENT_REQ = 0x4B5
179
178
  IOTYPE_USER_IPCAM_HASLISTEVENT_RESP = 0x4B6
180
179
  IOTYPE_USER_IPCAM_PTZ_COMMAND = 0x1001 # 4097
@@ -12,7 +12,6 @@ are all ordinary, and each of them has to arrive in a media browser as an empty
12
12
  list rather than as a traceback.
13
13
  """
14
14
 
15
- import calendar
16
15
  import logging
17
16
  import struct
18
17
  import time
@@ -22,8 +21,6 @@ from typing import Any, List, Optional
22
21
  from .constants import (
23
22
  IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
24
23
  IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
25
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
26
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
27
24
  )
28
25
  from .controls import _session_is_live as _control_session_is_live
29
26
  from .sd_events import (
@@ -430,27 +427,9 @@ class _CameraSdMixin:
430
427
 
431
428
 
432
429
  # --------------------------------------------------------------------------- #
433
- # Thumbnails and deletion of card recordings
430
+ # Deletion of card recordings
434
431
  # --------------------------------------------------------------------------- #
435
432
 
436
- #: The thumbnail request names recordings by their start as epoch
437
- #: milliseconds (the app's Long per recording); the reply carries the request
438
- #: channel, the time back, and the picture.
439
- _THUMB_HEADER = struct.Struct("<Iq")
440
-
441
-
442
- def _record_epoch_ms(record: Any) -> int:
443
- """A record's UTC start as epoch milliseconds."""
444
- fields = (
445
- record.year,
446
- record.month,
447
- record.day,
448
- record.hour,
449
- record.minute,
450
- record.second,
451
- )
452
- return calendar.timegm((*fields, 0, 0, 0)) * 1000
453
-
454
433
 
455
434
  def _record_stime(record: Any) -> bytes:
456
435
  """A record's start as the TUTK STimeDay the delete request carries."""
@@ -468,25 +447,6 @@ def _record_stime(record: Any) -> bytes:
468
447
  )
469
448
 
470
449
 
471
- def sd_thumbnail_request(records: "list", channel: int) -> bytes:
472
- """The 0x4b9 payload: request channel (u32 LE) then each recording's start
473
- as epoch ms (i64 LE), as the app's getThumbnais builds it."""
474
- out = struct.pack("<I", channel)
475
- for r in records:
476
- out += struct.pack("<q", _record_epoch_ms(r))
477
- return out
478
-
479
-
480
- def parse_sd_thumbnail(payload: bytes) -> "Optional[tuple[int, int, bytes]]":
481
- """A 0x4ba reply as (request channel, start epoch ms, picture bytes), or
482
- None when it is too short to be one. Read as the app reads it: 4 bytes,
483
- 8 bytes, then everything else is the picture."""
484
- if len(payload) < _THUMB_HEADER.size:
485
- return None
486
- channel, when = _THUMB_HEADER.unpack_from(payload, 0)
487
- return channel, when, bytes(payload[_THUMB_HEADER.size :])
488
-
489
-
490
450
  def sd_delete_request(
491
451
  records: "list", *, delete_type: int = 0, event_type: int = 0
492
452
  ) -> bytes:
@@ -502,57 +462,13 @@ def sd_delete_request(
502
462
 
503
463
 
504
464
  class _CameraSdExtrasMixin:
505
- """Thumbnails and deletion for card recordings; mixed into CameraMixin."""
465
+ """Deletion for card recordings; mixed into CameraMixin.
506
466
 
507
- async def async_get_sd_thumbnails(
508
- self,
509
- records: "list",
510
- *,
511
- session: Any = None,
512
- timeout: float = 8.0,
513
- more_timeout: float = 3.0,
514
- ) -> "dict[Any, bytes]":
515
- """Pictures for ``records`` (SdEvent), keyed by record, from the camera
516
- over a live session.
517
-
518
- The app asks for these from its live screen, which already holds the
519
- session; a caller here does the same, passing the session or relying
520
- on the one the serve loop holds. Each reply carries one picture and
521
- the recording's start it belongs to; a recording the camera has no
522
- picture for simply gets no reply. Returns what came back, possibly
523
- nothing: an empty dict means no pictures, not a failure.
524
- """
525
- if session is None:
526
- session = getattr(self, "_stream_session", None)
527
- if not records or not _session_is_live(session):
528
- return {}
529
- by_ms = {_record_epoch_ms(r): r for r in records}
530
- channel = (getattr(self, "_sd_thumb_channel", 0) % 1000) + 1
531
- self._sd_thumb_channel = channel
532
- try:
533
- replies = await session.async_avio_request_all(
534
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
535
- sd_thumbnail_request(records, channel),
536
- response_cmd=IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
537
- timeout=timeout,
538
- more_timeout=more_timeout,
539
- max_replies=len(records),
540
- )
541
- except Exception as exc:
542
- _LOGGER.debug(
543
- "SD thumbnails failed for %s: %s", getattr(self, "device_id", "?"), exc
544
- )
545
- return {}
546
- out: "dict[Any, bytes]" = {}
547
- for reply in replies:
548
- parsed = parse_sd_thumbnail(reply.payload)
549
- if parsed is None:
550
- continue
551
- _ch, when, picture = parsed
552
- record = by_ms.get(when)
553
- if record is not None and picture:
554
- out[record] = picture
555
- return out
467
+ Thumbnails are not here: the app fetches card thumbnails over a separate
468
+ native TUTK AV channel (avClientStartEx -> avRecvFrameData2), which this
469
+ library's WebRTC/SDES bridge has no equivalent for, so there is no way to
470
+ receive the image. See docs/PROTOCOL-INVENTORY.md.
471
+ """
556
472
 
557
473
  async def async_delete_sd_recordings(
558
474
  self,
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-aidot-cameras"
7
- version = "1.3.0"
7
+ version = "1.3.2"
8
8
  description = "Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-aidot-cameras
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
5
5
  Author-email: cbrightly <chris.brightly@gmail.com>
6
6
  License-Expression: MIT
@@ -262,6 +262,7 @@ tests/test_sctp_init_ack_tsn.py
262
262
  tests/test_sctp_reassembly.py
263
263
  tests/test_sctp_sack.py
264
264
  tests/test_sd_card_presence.py
265
+ tests/test_sd_delete.py
265
266
  tests/test_sd_event_decode.py
266
267
  tests/test_sd_event_probe_payloads.py
267
268
  tests/test_sd_listing.py
@@ -273,7 +274,6 @@ tests/test_sd_playback_end.py
273
274
  tests/test_sd_playback_entry.py
274
275
  tests/test_sd_playback_media_hold.py
275
276
  tests/test_sd_playback_open.py
276
- tests/test_sd_thumbnails_and_delete.py
277
277
  tests/test_sdes_avio_dispatch.py
278
278
  tests/test_sdes_bridge_break_gate.py
279
279
  tests/test_sdes_bridge_starts_without_the_answer.py
@@ -0,0 +1,110 @@
1
+ """The cloud's event notices (devEventNotif / eventNotify) poke the motion poll."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import json
7
+
8
+
9
+ class _Pm:
10
+ def __init__(self) -> None:
11
+ self.handlers: list = []
12
+
13
+ def add_handler(self, cb):
14
+ self.handlers.append(cb)
15
+ return cb
16
+
17
+ def remove_handler(self, cb):
18
+ self.handlers.remove(cb)
19
+
20
+ async def subscribe(self, topics):
21
+ pass
22
+
23
+ def deliver(self, method, **payload):
24
+ for h in list(self.handlers):
25
+ h(
26
+ "iot/v1/c/u1/device/" + method,
27
+ json.dumps({"method": method, "payload": payload}),
28
+ )
29
+
30
+
31
+ def _cam(make_camera_device_client, pm):
32
+ cam = make_camera_device_client("A000088")
33
+
34
+ async def _pm():
35
+ return pm
36
+
37
+ cam._get_persistent_mqtt = _pm
38
+ return cam
39
+
40
+
41
+ def test_a_detection_notice_calls_back_and_a_heartbeat_does_not(
42
+ make_camera_device_client,
43
+ ):
44
+ pm = _Pm()
45
+ cam = _cam(make_camera_device_client, pm)
46
+ calls = []
47
+
48
+ async def go():
49
+ assert await cam.async_watch_events(lambda: calls.append(1)) is True
50
+ # The live view's 5 s heartbeat (measured 2026-11-11): no poke.
51
+ pm.deliver(
52
+ "devEventNotif", devId=cam.device_id, event="liveStatus", arguments={}
53
+ )
54
+ pm.deliver(
55
+ "devEventNotif", devId=cam.device_id, event="liveStatus", arguments={}
56
+ )
57
+ assert calls == []
58
+ pm.deliver("devEventNotif", devId=cam.device_id, event="motionDetect")
59
+ pm.deliver("eventNotify", devId="someone-else", event="motionDetect")
60
+ pm.deliver("setDevAttrNotif", devId=cam.device_id, attr={})
61
+ await asyncio.sleep(0.01)
62
+
63
+ asyncio.run(go())
64
+ assert calls == [1]
65
+
66
+
67
+ def test_detection_pokes_are_debounced(make_camera_device_client, monkeypatch):
68
+ from aidot_cameras.camera import client as client_mod
69
+
70
+ # A small real gap, not a frozen clock: asyncio keeps time with monotonic too.
71
+ monkeypatch.setattr(client_mod, "_EVENT_POKE_MIN_GAP_S", 0.2)
72
+ pm = _Pm()
73
+ cam = _cam(make_camera_device_client, pm)
74
+ calls = []
75
+
76
+ async def go():
77
+ await cam.async_watch_events(lambda: calls.append(1))
78
+ pm.deliver("devEventNotif", devId=cam.device_id, event="humanDetect")
79
+ pm.deliver("devEventNotif", devId=cam.device_id, event="humanDetect")
80
+ await asyncio.sleep(0.3)
81
+ pm.deliver("devEventNotif", devId=cam.device_id, event="humanDetect")
82
+ await asyncio.sleep(0.01)
83
+
84
+ asyncio.run(go())
85
+ assert calls == [1, 1]
86
+
87
+
88
+ def test_detection_names():
89
+ from aidot_cameras.camera.client import _event_name_is_detection
90
+
91
+ for name in ("motionDetect", "HUMAN_DETECTED", "petDetect", "soundAlarm", "pir"):
92
+ assert _event_name_is_detection(name), name
93
+ for name in ("liveStatus", "rhythmsClose", "", "keepAlive", "online"):
94
+ assert not _event_name_is_detection(name), name
95
+
96
+
97
+ def test_poke_wakes_the_motion_poll_wait(make_camera_device_client):
98
+ cam = make_camera_device_client("A000088")
99
+
100
+ async def go():
101
+ cam._motion_poke = asyncio.Event()
102
+ cam.poke_motion_poll()
103
+ await asyncio.wait_for(cam._motion_poke.wait(), 0.5)
104
+
105
+ asyncio.run(go())
106
+
107
+
108
+ def test_poke_without_a_running_poll_is_harmless(make_camera_device_client):
109
+ cam = make_camera_device_client("A000088")
110
+ cam.poke_motion_poll()
@@ -0,0 +1,85 @@
1
+ """Deletion of card recordings (0x4b7/0x4b8).
2
+
3
+ The delete request is the fixed 14-byte head the official app's deleteRecord
4
+ builds, then each recording's STimeDay and index; the reply is one byte, 0 for
5
+ done. (Card thumbnails are not implemented - the camera streams the picture
6
+ over a separate native TUTK AV channel this library's WebRTC/SDES bridge cannot
7
+ read; see docs/PROTOCOL-INVENTORY.md.)
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import asyncio
13
+ import struct
14
+ from types import SimpleNamespace
15
+
16
+ from aidot_cameras.camera.constants import (
17
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
18
+ IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
19
+ )
20
+ from aidot_cameras.camera.sd_events import SdEvent
21
+ from aidot_cameras.camera.sd_listing import sd_delete_request
22
+
23
+ REC = SdEvent(2026, 11, 9, 14, 5, 7, channel=0, event=2, status=0)
24
+ REC2 = SdEvent(2026, 11, 9, 20, 5, 0, channel=0, event=1, status=0)
25
+
26
+
27
+ def test_the_delete_request_layout():
28
+ req = sd_delete_request([REC, REC2], event_type=2)
29
+ assert len(req) == 14 + 10 * 2
30
+ assert struct.unpack_from("<IIBBBBh", req, 0) == (0, 2, 0, 1, 2, 0, 2)
31
+ # Each record: STimeDay (year, month, day, Java weekday, h, m, s) + index.
32
+ y, mo, d, wd, h, mi, s = struct.unpack_from("<HBBBBBB", req, 14)
33
+ assert (y, mo, d, h, mi, s) == (2026, 11, 9, 14, 5, 7)
34
+ assert wd == 2 # a Monday: Calendar.DAY_OF_WEEK, Sunday = 1
35
+ assert struct.unpack_from("<h", req, 22)[0] == 0
36
+ assert struct.unpack_from("<h", req, 32)[0] == 1
37
+
38
+
39
+ class _Session:
40
+ def __init__(self, delete_reply=None):
41
+ self.sent = []
42
+ self._delete_reply = delete_reply
43
+
44
+ async def async_avio_request(self, cmd, payload, *, response_cmd, timeout):
45
+ self.sent.append((cmd, payload))
46
+ assert response_cmd == IOTYPE_USER_IPCAM_DELLISTEVENT_RESP
47
+ return (
48
+ None
49
+ if self._delete_reply is None
50
+ else SimpleNamespace(payload=self._delete_reply)
51
+ )
52
+
53
+
54
+ def test_delete_reports_done_refused_or_silence(make_camera_device_client):
55
+ cam = make_camera_device_client("A000088")
56
+ assert (
57
+ asyncio.run(
58
+ cam.async_delete_sd_recordings(
59
+ [REC], session=_Session(delete_reply=b"\x00")
60
+ )
61
+ )
62
+ is True
63
+ )
64
+ assert (
65
+ asyncio.run(
66
+ cam.async_delete_sd_recordings(
67
+ [REC], session=_Session(delete_reply=b"\x01")
68
+ )
69
+ )
70
+ is False
71
+ )
72
+ assert (
73
+ asyncio.run(cam.async_delete_sd_recordings([REC], session=_Session())) is None
74
+ )
75
+ cam._stream_session = None
76
+ assert asyncio.run(cam.async_delete_sd_recordings([REC])) is None
77
+
78
+
79
+ def test_a_single_delete_carries_the_records_event_type(make_camera_device_client):
80
+ cam = make_camera_device_client("A000088")
81
+ sess = _Session(delete_reply=b"\x00")
82
+ asyncio.run(cam.async_delete_sd_recordings([REC], session=sess))
83
+ cmd, payload = sess.sent[0]
84
+ assert cmd == IOTYPE_USER_IPCAM_DELLISTEVENT_REQ
85
+ assert struct.unpack_from("<IIBBBBh", payload, 0)[6] == REC.event
@@ -1,70 +0,0 @@
1
- """The cloud's event notices (devEventNotif / eventNotify) poke the motion poll."""
2
-
3
- from __future__ import annotations
4
-
5
- import asyncio
6
- import json
7
-
8
-
9
- class _Pm:
10
- def __init__(self) -> None:
11
- self.handlers: list = []
12
-
13
- def add_handler(self, cb):
14
- self.handlers.append(cb)
15
- return cb
16
-
17
- def remove_handler(self, cb):
18
- self.handlers.remove(cb)
19
-
20
- async def subscribe(self, topics):
21
- pass
22
-
23
- def deliver(self, method, **payload):
24
- for h in list(self.handlers):
25
- h(
26
- "iot/v1/c/u1/device/" + method,
27
- json.dumps({"method": method, "payload": payload}),
28
- )
29
-
30
-
31
- def _cam(make_camera_device_client, pm):
32
- cam = make_camera_device_client("A000088")
33
-
34
- async def _pm():
35
- return pm
36
-
37
- cam._get_persistent_mqtt = _pm
38
- return cam
39
-
40
-
41
- def test_our_event_notice_calls_back(make_camera_device_client):
42
- pm = _Pm()
43
- cam = _cam(make_camera_device_client, pm)
44
- calls = []
45
-
46
- async def go():
47
- assert await cam.async_watch_events(lambda: calls.append(1)) is True
48
- pm.deliver("devEventNotif", devId=cam.device_id, eventType=1)
49
- pm.deliver("eventNotify", devId="someone-else")
50
- pm.deliver("setDevAttrNotif", devId=cam.device_id, attr={})
51
- await asyncio.sleep(0.01)
52
-
53
- asyncio.run(go())
54
- assert calls == [1]
55
-
56
-
57
- def test_poke_wakes_the_motion_poll_wait(make_camera_device_client):
58
- cam = make_camera_device_client("A000088")
59
-
60
- async def go():
61
- cam._motion_poke = asyncio.Event()
62
- cam.poke_motion_poll()
63
- await asyncio.wait_for(cam._motion_poke.wait(), 0.5)
64
-
65
- asyncio.run(go())
66
-
67
-
68
- def test_poke_without_a_running_poll_is_harmless(make_camera_device_client):
69
- cam = make_camera_device_client("A000088")
70
- cam.poke_motion_poll()
@@ -1,140 +0,0 @@
1
- """Card recording thumbnails (0x4b9/0x4ba) and deletion (0x4b7/0x4b8).
2
-
3
- Layouts as the official app builds and reads them: the thumbnail request is a
4
- request channel then each recording's start as epoch ms; each reply is that
5
- channel, the start, and the picture. The delete request is a fixed 14-byte
6
- head then each recording's STimeDay and index.
7
- """
8
-
9
- from __future__ import annotations
10
-
11
- import asyncio
12
- import struct
13
- from types import SimpleNamespace
14
-
15
- from aidot_cameras.camera.constants import (
16
- IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
17
- IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
18
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
19
- IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
20
- )
21
- from aidot_cameras.camera.sd_events import SdEvent
22
- from aidot_cameras.camera.sd_listing import (
23
- _record_epoch_ms,
24
- parse_sd_thumbnail,
25
- sd_delete_request,
26
- sd_thumbnail_request,
27
- )
28
-
29
- REC = SdEvent(2026, 11, 9, 14, 5, 7, channel=0, event=2, status=0)
30
- REC2 = SdEvent(2026, 11, 9, 20, 5, 0, channel=0, event=1, status=0)
31
-
32
-
33
- def test_the_record_start_is_epoch_ms_in_utc():
34
- assert _record_epoch_ms(REC) == 1794233107000 # 2026-11-09T14:05:07Z
35
-
36
-
37
- def test_the_thumbnail_request_is_channel_then_starts():
38
- req = sd_thumbnail_request([REC, REC2], 7)
39
- assert len(req) == 4 + 8 * 2
40
- assert struct.unpack_from("<I", req, 0)[0] == 7
41
- assert struct.unpack_from("<q", req, 4)[0] == _record_epoch_ms(REC)
42
- assert struct.unpack_from("<q", req, 12)[0] == _record_epoch_ms(REC2)
43
-
44
-
45
- def test_a_thumbnail_reply_is_channel_time_and_picture():
46
- payload = struct.pack("<Iq", 7, _record_epoch_ms(REC)) + b"\xff\xd8JPEG"
47
- assert parse_sd_thumbnail(payload) == (7, _record_epoch_ms(REC), b"\xff\xd8JPEG")
48
- assert parse_sd_thumbnail(b"\x00" * 11) is None
49
-
50
-
51
- def test_the_delete_request_layout():
52
- req = sd_delete_request([REC, REC2], event_type=2)
53
- assert len(req) == 14 + 10 * 2
54
- assert struct.unpack_from("<IIBBBBh", req, 0) == (0, 2, 0, 1, 2, 0, 2)
55
- # Each record: STimeDay (year, month, day, Java weekday, h, m, s) + index.
56
- y, mo, d, wd, h, mi, s = struct.unpack_from("<HBBBBBB", req, 14)
57
- assert (y, mo, d, h, mi, s) == (2026, 11, 9, 14, 5, 7)
58
- assert wd == 2 # a Monday: Calendar.DAY_OF_WEEK, Sunday = 1
59
- assert struct.unpack_from("<h", req, 22)[0] == 0
60
- assert struct.unpack_from("<h", req, 32)[0] == 1
61
-
62
-
63
- class _Session:
64
- def __init__(self, thumbs=None, delete_reply=None):
65
- self.sent = []
66
- self._thumbs = thumbs or {}
67
- self._delete_reply = delete_reply
68
-
69
- async def async_avio_request_all(self, cmd, payload, *, response_cmd, **kw):
70
- self.sent.append((cmd, payload))
71
- assert response_cmd == IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP
72
- ch = struct.unpack_from("<I", payload, 0)[0]
73
- n = (len(payload) - 4) // 8
74
- out = []
75
- for i in range(n):
76
- when = struct.unpack_from("<q", payload, 4 + 8 * i)[0]
77
- if when in self._thumbs:
78
- out.append(
79
- SimpleNamespace(
80
- payload=struct.pack("<Iq", ch, when) + self._thumbs[when]
81
- )
82
- )
83
- return out
84
-
85
- async def async_avio_request(self, cmd, payload, *, response_cmd, timeout):
86
- self.sent.append((cmd, payload))
87
- assert response_cmd == IOTYPE_USER_IPCAM_DELLISTEVENT_RESP
88
- return (
89
- None
90
- if self._delete_reply is None
91
- else SimpleNamespace(payload=self._delete_reply)
92
- )
93
-
94
-
95
- def test_thumbnails_come_back_keyed_by_record(make_camera_device_client):
96
- cam = make_camera_device_client("A000088")
97
- sess = _Session(thumbs={_record_epoch_ms(REC): b"\xff\xd8one"})
98
- out = asyncio.run(cam.async_get_sd_thumbnails([REC, REC2], session=sess))
99
- assert out == {REC: b"\xff\xd8one"} # REC2 had no picture
100
- assert sess.sent[0][0] == IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ
101
-
102
-
103
- def test_thumbnails_need_a_live_session(make_camera_device_client):
104
- cam = make_camera_device_client("A000088")
105
- cam._stream_session = None
106
- assert asyncio.run(cam.async_get_sd_thumbnails([REC])) == {}
107
-
108
-
109
- def test_delete_reports_done_refused_or_silence(make_camera_device_client):
110
- cam = make_camera_device_client("A000088")
111
- assert (
112
- asyncio.run(
113
- cam.async_delete_sd_recordings(
114
- [REC], session=_Session(delete_reply=b"\x00")
115
- )
116
- )
117
- is True
118
- )
119
- assert (
120
- asyncio.run(
121
- cam.async_delete_sd_recordings(
122
- [REC], session=_Session(delete_reply=b"\x01")
123
- )
124
- )
125
- is False
126
- )
127
- assert (
128
- asyncio.run(cam.async_delete_sd_recordings([REC], session=_Session())) is None
129
- )
130
- cam._stream_session = None
131
- assert asyncio.run(cam.async_delete_sd_recordings([REC])) is None
132
-
133
-
134
- def test_a_single_delete_carries_the_records_event_type(make_camera_device_client):
135
- cam = make_camera_device_client("A000088")
136
- sess = _Session(delete_reply=b"\x00")
137
- asyncio.run(cam.async_delete_sd_recordings([REC], session=sess))
138
- cmd, payload = sess.sent[0]
139
- assert cmd == IOTYPE_USER_IPCAM_DELLISTEVENT_REQ
140
- assert struct.unpack_from("<IIBBBBh", payload, 0)[6] == REC.event