python-aidot-cameras 1.3.2__tar.gz → 1.3.3__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 (379) hide show
  1. {python_aidot_cameras-1.3.2/python_aidot_cameras.egg-info → python_aidot_cameras-1.3.3}/PKG-INFO +1 -1
  2. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/constants.py +5 -4
  3. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/sd_listing.py +99 -7
  4. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/pyproject.toml +9 -1
  5. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
  6. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/python_aidot_cameras.egg-info/SOURCES.txt +1 -1
  7. python_aidot_cameras-1.3.3/tests/test_sd_thumbnails_and_delete.py +140 -0
  8. python_aidot_cameras-1.3.2/tests/test_sd_delete.py +0 -85
  9. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/LICENSE +0 -0
  10. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/MANIFEST.in +0 -0
  11. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/README.md +0 -0
  12. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/__init__.py +0 -0
  13. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/__main__.py +0 -0
  14. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_log_redaction.py +0 -0
  15. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_private_file.py +0 -0
  16. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_upstream.py +0 -0
  17. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/__init__.py +0 -0
  18. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
  19. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
  20. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
  21. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
  22. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
  23. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
  24. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
  25. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
  26. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
  27. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
  28. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
  29. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
  30. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
  31. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/events.py +0 -0
  32. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
  33. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
  34. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
  35. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
  36. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
  37. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
  38. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
  39. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
  40. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
  41. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
  42. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
  43. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
  44. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
  45. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
  46. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
  47. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
  48. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
  49. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
  50. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
  51. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/__init__.py +0 -0
  52. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/aac_track.py +0 -0
  53. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/agc.py +0 -0
  54. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/client.py +0 -0
  55. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/controls.py +0 -0
  56. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/go2rtc.py +0 -0
  57. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/h264_sps.py +0 -0
  58. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/health.py +0 -0
  59. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/hls_ts.py +0 -0
  60. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/hwaccel.py +0 -0
  61. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/lan_control.py +0 -0
  62. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/models.py +0 -0
  63. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/protocol.py +0 -0
  64. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/recording.py +0 -0
  65. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/rtp_h264.py +0 -0
  66. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/rtsp_publish.py +0 -0
  67. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/sd_events.py +0 -0
  68. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/sd_playback.py +0 -0
  69. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/sdes.py +0 -0
  70. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/sdes_open.py +0 -0
  71. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/ts_fanout.py +0 -0
  72. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/ts_tee.py +0 -0
  73. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/webrtc.py +0 -0
  74. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/camera/webrtc_open.py +0 -0
  75. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/client.py +0 -0
  76. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/cloud_auth.py +0 -0
  77. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/const.py +0 -0
  78. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/credentials.py +0 -0
  79. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/crypto.py +0 -0
  80. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/device_client.py +0 -0
  81. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/discover.py +0 -0
  82. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/exceptions.py +0 -0
  83. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/g711.py +0 -0
  84. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/lan_retry.py +0 -0
  85. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/mqtt_config2.py +0 -0
  86. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/py.typed +0 -0
  87. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/aidot_cameras/settings.py +0 -0
  88. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
  89. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
  90. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/python_aidot_cameras.egg-info/requires.txt +0 -0
  91. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/python_aidot_cameras.egg-info/top_level.txt +0 -0
  92. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/setup.cfg +0 -0
  93. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_aac_track.py +0 -0
  94. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
  95. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
  96. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_aioice_compat.py +0 -0
  97. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_alarm_event.py +0 -0
  98. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_answer_pt_kinds.py +0 -0
  99. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_answer_sdp_video_pt.py +0 -0
  100. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_answer_section_selection.py +0 -0
  101. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_arrival_timestamps.py +0 -0
  102. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_audio_mux_offline.py +0 -0
  103. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_auth_error_routing.py +0 -0
  104. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_auto_alarm.py +0 -0
  105. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_auto_light_settings.py +0 -0
  106. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
  107. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_avio_header_single_layout.py +0 -0
  108. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_avio_request.py +0 -0
  109. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_avio_response_parse.py +0 -0
  110. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_avio_response_router.py +0 -0
  111. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_backoff.py +0 -0
  112. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_battery_cap_spans_sessions.py +0 -0
  113. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_battery_detection.py +0 -0
  114. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_battery_evidence_corroboration.py +0 -0
  115. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
  116. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_battery_wake_settles_before_the_command.py +0 -0
  117. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ble_gateway_is_gone.py +0 -0
  118. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_bridge_state_sentinels.py +0 -0
  119. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_busy_backoff.py +0 -0
  120. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_camera_closed_session.py +0 -0
  121. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_camera_power.py +0 -0
  122. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_camera_properties.py +0 -0
  123. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_canary_log_names_the_camera.py +0 -0
  124. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
  125. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_cloud_count.py +0 -0
  126. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_cloud_error_log_names_the_exception.py +0 -0
  127. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_cloud_error_severity.py +0 -0
  128. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_cloud_plan.py +0 -0
  129. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_constants_imports_resolve.py +0 -0
  130. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_control_verdicts.py +0 -0
  131. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_controls_ride_the_direct_session.py +0 -0
  132. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_declared_properties.py +0 -0
  133. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_deferred_hardening.py +0 -0
  134. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_detection_types.py +0 -0
  135. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_device_cmd_seq_match.py +0 -0
  136. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_device_login_guard.py +0 -0
  137. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_device_user_info_cache.py +0 -0
  138. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
  139. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_direct_ts_keyframe_signal.py +0 -0
  140. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_direct_ts_serve.py +0 -0
  141. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_direct_ts_serve_only_for_http.py +0 -0
  142. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dormant_camera_cleanup.py +0 -0
  143. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_drain_is_cancellable.py +0 -0
  144. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_mux_terminal_write.py +0 -0
  145. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
  146. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_open_pacer.py +0 -0
  147. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_pinning.py +0 -0
  148. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_recorder_wiring.py +0 -0
  149. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_refusal_after_the_echo.py +0 -0
  150. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_resolution_ack.py +0 -0
  151. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_serve_backoff.py +0 -0
  152. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_serve_decode_skip.py +0 -0
  153. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_serve_ice_wait.py +0 -0
  154. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_serve_open_timeout.py +0 -0
  155. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_skip_signaling_wait.py +0 -0
  156. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_stdout_producer.py +0 -0
  157. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_tap_states_no_reorder.py +0 -0
  158. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_ts_copy_recording.py +0 -0
  159. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_dtls_video_presence.py +0 -0
  160. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_egress_guard.py +0 -0
  161. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_env_seams.py +0 -0
  162. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_event_notice_watch.py +0 -0
  163. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_every_exception_is_exported.py +0 -0
  164. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_feature_probe_needs_a_live_session.py +0 -0
  165. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
  166. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
  167. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_first_media_abandon_rules.py +0 -0
  168. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_futile_keepalive.py +0 -0
  169. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_g711_law_conversion.py +0 -0
  170. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_gate_requires_a_decoded_frame.py +0 -0
  171. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_go2rtc.py +0 -0
  172. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_go2rtc_cli.py +0 -0
  173. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_h264_decode_rate_limit.py +0 -0
  174. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_h264_sps.py +0 -0
  175. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_health_line.py +0 -0
  176. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_health_line_counts_pictures.py +0 -0
  177. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_highport_nomination.py +0 -0
  178. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_hls_ts_end_to_end.py +0 -0
  179. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_hls_ts_wiring.py +0 -0
  180. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_hwaccel_probe.py +0 -0
  181. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ice_config_cache.py +0 -0
  182. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ice_credentials_match_the_app.py +0 -0
  183. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ice_peer_reflexive.py +0 -0
  184. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_idle_release_both_loops.py +0 -0
  185. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ipc_envelope_single_builder.py +0 -0
  186. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_keepalive_renew.py +0 -0
  187. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_keyframe_prompter.py +0 -0
  188. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_control.py +0 -0
  189. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_login_accessors.py +0 -0
  190. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
  191. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_retry_short_sessions.py +0 -0
  192. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
  193. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_retry_stops_on_close.py +0 -0
  194. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_lan_sweep_only_with_lights.py +0 -0
  195. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_late_repeats_are_dropped.py +0 -0
  196. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
  197. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_light_active_color_mode.py +0 -0
  198. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_live_session_carries_talk.py +0 -0
  199. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_live_stream_param.py +0 -0
  200. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_live_validate_policy.py +0 -0
  201. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_live_validate_token_refresh.py +0 -0
  202. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_live_video_canary.py +0 -0
  203. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_liveplay_echo_timeout.py +0 -0
  204. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_local_only_controls.py +0 -0
  205. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_log_hygiene.py +0 -0
  206. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_logging_caps.py +0 -0
  207. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_login_connect_deadline.py +0 -0
  208. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_login_reconnect_backoff.py +0 -0
  209. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_loop_break_ends_the_loop.py +0 -0
  210. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_media_counted_only_when_plaintext.py +0 -0
  211. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_media_path_is_reported.py +0 -0
  212. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_media_socket_rcvbuf.py +0 -0
  213. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_media_wait_floor.py +0 -0
  214. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_motion_poll.py +0 -0
  215. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mqtt_client_id_is_exact.py +0 -0
  216. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mqtt_config2.py +0 -0
  217. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mqtt_credential_refetch.py +0 -0
  218. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mqtt_credential_self_heal.py +0 -0
  219. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mqtt_password_not_persisted.py +0 -0
  220. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mqtt_thread_not_orphaned.py +0 -0
  221. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_mypy_new_findings.py +0 -0
  222. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_nack.py +0 -0
  223. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
  224. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_narrow_pc_ice.py +0 -0
  225. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_no_key_material_in_logs.py +0 -0
  226. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
  227. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_no_self_referential_go2rtc.py +0 -0
  228. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_no_unbounded_hex_dumps.py +0 -0
  229. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_no_undefined_names.py +0 -0
  230. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
  231. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_off_subnet_candidate.py +0 -0
  232. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
  233. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_offline_keepalive_pause.py +0 -0
  234. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_on_frame_is_an_av_frame.py +0 -0
  235. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_open_errors_are_aidot_errors.py +0 -0
  236. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_open_fail_logger.py +0 -0
  237. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_open_gate_delay.py +0 -0
  238. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_peer_id_client_type.py +0 -0
  239. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_peerid_reuse.py +0 -0
  240. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_persistent_mqtt.py +0 -0
  241. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_persistent_mqtt_robustness.py +0 -0
  242. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_phase_returns_reach_the_caller.py +0 -0
  243. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_phase_state_is_complete.py +0 -0
  244. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_plaintext_mqtt_refused.py +0 -0
  245. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_post_merge_hardening.py +0 -0
  246. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
  247. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_public_signature_matches_impl.py +0 -0
  248. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_publish_target_readiness.py +0 -0
  249. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_quality_campaign_in_session.py +0 -0
  250. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_reboot_action.py +0 -0
  251. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_recent_recordings.py +0 -0
  252. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_region_allowlist.py +0 -0
  253. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_remb.py +0 -0
  254. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
  255. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
  256. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_resent_frames_are_dropped.py +0 -0
  257. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_resolution_persists.py +0 -0
  258. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_restart_cycle.py +0 -0
  259. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_review_lan_retry_and_graces.py +0 -0
  260. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_rtp_h264.py +0 -0
  261. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_rtsp_publish.py +0 -0
  262. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_rtsp_publish_go2rtc.py +0 -0
  263. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_scripts_importable.py +0 -0
  264. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sctp_in_order.py +0 -0
  265. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sctp_init_ack_tsn.py +0 -0
  266. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sctp_reassembly.py +0 -0
  267. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sctp_sack.py +0 -0
  268. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_card_presence.py +0 -0
  269. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_event_decode.py +0 -0
  270. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_event_probe_payloads.py +0 -0
  271. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_listing.py +0 -0
  272. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback.py +0 -0
  273. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_clock.py +0 -0
  274. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_controls.py +0 -0
  275. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_dtls.py +0 -0
  276. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_end.py +0 -0
  277. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_entry.py +0 -0
  278. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_media_hold.py +0 -0
  279. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sd_playback_open.py +0 -0
  280. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_avio_dispatch.py +0 -0
  281. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_bridge_break_gate.py +0 -0
  282. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
  283. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_connection_mode.py +0 -0
  284. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_fast_liveplay.py +0 -0
  285. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
  286. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_first_media_stall_report.py +0 -0
  287. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_ice_teardown.py +0 -0
  288. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_idle_release.py +0 -0
  289. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_nack_bridge.py +0 -0
  290. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_offer_video_pin.py +0 -0
  291. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_open_cleanup.py +0 -0
  292. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
  293. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_open_yields_the_loop.py +0 -0
  294. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_pinned_codec_retry.py +0 -0
  295. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_sctp_abort.py +0 -0
  296. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_serve_audio.py +0 -0
  297. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_serve_cmd.py +0 -0
  298. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_serve_stderr_drain.py +0 -0
  299. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_sprop.py +0 -0
  300. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_talk.py +0 -0
  301. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_teardown_exit_log.py +0 -0
  302. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_terminal_ack.py +0 -0
  303. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_terminal_ack_latency.py +0 -0
  304. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
  305. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdes_watchdog.py +0 -0
  306. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdp_narrowing_properties.py +0 -0
  307. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sdp_payload_type_narrowing.py +0 -0
  308. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_security_hardening.py +0 -0
  309. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
  310. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serializable_login_info.py +0 -0
  311. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
  312. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_input_timeout.py +0 -0
  313. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_loop_releases_on_error.py +0 -0
  314. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_loss_tolerance.py +0 -0
  315. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_pt_respects_the_pin.py +0 -0
  316. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_relay.py +0 -0
  317. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
  318. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_session_mode_seq.py +0 -0
  319. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_session_stats.py +0 -0
  320. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_session_stop_twice.py +0 -0
  321. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_set_dev_attr_payload.py +0 -0
  322. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_settings_registry.py +0 -0
  323. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_shared_house_seam.py +0 -0
  324. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
  325. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_skip_guard.py +0 -0
  326. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sleep_camera.py +0 -0
  327. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_snapshot_cancellation.py +0 -0
  328. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_speak.py +0 -0
  329. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sprop_capture_gate.py +0 -0
  330. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sprop_staleness.py +0 -0
  331. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sprop_unstable_public.py +0 -0
  332. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
  333. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_srtp_rx_rekey.py +0 -0
  334. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_srtp_tx_key_note.py +0 -0
  335. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stable_terminal_id.py +0 -0
  336. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stall_nudge_policy.py +0 -0
  337. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
  338. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
  339. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
  340. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
  341. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stall_reports_reach_the_artifact.py +0 -0
  342. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_status_and_trace_channels.py +0 -0
  343. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stream_cap.py +0 -0
  344. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stream_drain_ownership.py +0 -0
  345. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stream_idle.py +0 -0
  346. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stream_settings.py +0 -0
  347. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stream_slot_cap.py +0 -0
  348. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stream_teardown.py +0 -0
  349. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_stun_attr_single_builder.py +0 -0
  350. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_swallowed_exception_names.py +0 -0
  351. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_talk.py +0 -0
  352. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
  353. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_tap_to_mux_end_to_end.py +0 -0
  354. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_terminal_ack.py +0 -0
  355. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_token_file_robustness.py +0 -0
  356. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_token_refresh.py +0 -0
  357. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_transport_failure_reporting.py +0 -0
  358. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ts_fanout.py +0 -0
  359. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_ts_tee.py +0 -0
  360. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_turn_create_permission.py +0 -0
  361. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_turn_target_shared.py +0 -0
  362. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_unbind_notice.py +0 -0
  363. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
  364. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_upstream_compat.py +0 -0
  365. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_upstream_seam_adapter.py +0 -0
  366. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_upstream_secrets_redacted.py +0 -0
  367. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_validator_shares_one_token.py +0 -0
  368. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_vendored_aiortc_integrity.py +0 -0
  369. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_video_presence_needs_a_keyframe.py +0 -0
  370. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_video_profile_log.py +0 -0
  371. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_video_pts_dts.py +0 -0
  372. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_video_ts_unwrap.py +0 -0
  373. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_viewer_check_throttle.py +0 -0
  374. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_viewer_presence.py +0 -0
  375. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_viewer_present_push_mode.py +0 -0
  376. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_wait_or_event.py +0 -0
  377. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_wake_gate_camera_evidence.py +0 -0
  378. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/tests/test_wake_readiness_retry.py +0 -0
  379. {python_aidot_cameras-1.3.2 → python_aidot_cameras-1.3.3}/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.2
3
+ Version: 1.3.3
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
@@ -170,10 +170,11 @@ 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
- # 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.
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
177
178
  IOTYPE_USER_IPCAM_HASLISTEVENT_REQ = 0x4B5
178
179
  IOTYPE_USER_IPCAM_HASLISTEVENT_RESP = 0x4B6
179
180
  IOTYPE_USER_IPCAM_PTZ_COMMAND = 0x1001 # 4097
@@ -12,6 +12,7 @@ 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
15
16
  import logging
16
17
  import struct
17
18
  import time
@@ -21,6 +22,8 @@ from typing import Any, List, Optional
21
22
  from .constants import (
22
23
  IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
23
24
  IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
25
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
26
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
24
27
  )
25
28
  from .controls import _session_is_live as _control_session_is_live
26
29
  from .sd_events import (
@@ -427,9 +430,35 @@ class _CameraSdMixin:
427
430
 
428
431
 
429
432
  # --------------------------------------------------------------------------- #
430
- # Deletion of card recordings
433
+ # Thumbnails and deletion of card recordings
431
434
  # --------------------------------------------------------------------------- #
432
435
 
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_s(record: Any) -> int:
443
+ """A record's UTC start as epoch SECONDS.
444
+
445
+ The camera matches a thumbnail request against a recording by this value,
446
+ and the app sends epoch seconds (it divides the record's millisecond time
447
+ by 1000 - KVSWebRTCChannel.getThumbnais / SDEventsPresenter). Sending
448
+ milliseconds matches nothing and the camera returns no picture; this cost
449
+ the feature its first ship (2.41.0). Measured live 2026-11-13: seconds
450
+ returns the JPEGs, milliseconds returns empty replies.
451
+ """
452
+ fields = (
453
+ record.year,
454
+ record.month,
455
+ record.day,
456
+ record.hour,
457
+ record.minute,
458
+ record.second,
459
+ )
460
+ return calendar.timegm((*fields, 0, 0, 0))
461
+
433
462
 
434
463
  def _record_stime(record: Any) -> bytes:
435
464
  """A record's start as the TUTK STimeDay the delete request carries."""
@@ -447,6 +476,25 @@ def _record_stime(record: Any) -> bytes:
447
476
  )
448
477
 
449
478
 
479
+ def sd_thumbnail_request(records: "list", channel: int) -> bytes:
480
+ """The 0x4b9 payload: request channel (u32 LE) then each recording's start
481
+ as epoch SECONDS (i64 LE), as the app's getThumbnais builds it."""
482
+ out = struct.pack("<I", channel)
483
+ for r in records:
484
+ out += struct.pack("<q", _record_epoch_s(r))
485
+ return out
486
+
487
+
488
+ def parse_sd_thumbnail(payload: bytes) -> "Optional[tuple[int, int, bytes]]":
489
+ """A 0x4ba reply as (request channel, start epoch seconds, picture bytes), or
490
+ None when it is too short to be one. Read as the app reads it: 4 bytes,
491
+ 8 bytes, then everything else is the picture."""
492
+ if len(payload) < _THUMB_HEADER.size:
493
+ return None
494
+ channel, when = _THUMB_HEADER.unpack_from(payload, 0)
495
+ return channel, when, bytes(payload[_THUMB_HEADER.size :])
496
+
497
+
450
498
  def sd_delete_request(
451
499
  records: "list", *, delete_type: int = 0, event_type: int = 0
452
500
  ) -> bytes:
@@ -462,13 +510,57 @@ def sd_delete_request(
462
510
 
463
511
 
464
512
  class _CameraSdExtrasMixin:
465
- """Deletion for card recordings; mixed into CameraMixin.
513
+ """Thumbnails and deletion for card recordings; mixed into CameraMixin."""
466
514
 
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
- """
515
+ async def async_get_sd_thumbnails(
516
+ self,
517
+ records: "list",
518
+ *,
519
+ session: Any = None,
520
+ timeout: float = 8.0,
521
+ more_timeout: float = 3.0,
522
+ ) -> "dict[Any, bytes]":
523
+ """Pictures for ``records`` (SdEvent), keyed by record, from the camera
524
+ over a live session.
525
+
526
+ The app asks for these from its live screen, which already holds the
527
+ session; a caller here does the same, passing the session or relying
528
+ on the one the serve loop holds. Each reply carries one picture and
529
+ the recording's start it belongs to; a recording the camera has no
530
+ picture for simply gets no reply. Returns what came back, possibly
531
+ nothing: an empty dict means no pictures, not a failure.
532
+ """
533
+ if session is None:
534
+ session = getattr(self, "_stream_session", None)
535
+ if not records or not _session_is_live(session):
536
+ return {}
537
+ by_s = {_record_epoch_s(r): r for r in records}
538
+ channel = (getattr(self, "_sd_thumb_channel", 0) % 1000) + 1
539
+ self._sd_thumb_channel = channel
540
+ try:
541
+ replies = await session.async_avio_request_all(
542
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
543
+ sd_thumbnail_request(records, channel),
544
+ response_cmd=IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
545
+ timeout=timeout,
546
+ more_timeout=more_timeout,
547
+ max_replies=len(records),
548
+ )
549
+ except Exception as exc:
550
+ _LOGGER.debug(
551
+ "SD thumbnails failed for %s: %s", getattr(self, "device_id", "?"), exc
552
+ )
553
+ return {}
554
+ out: "dict[Any, bytes]" = {}
555
+ for reply in replies:
556
+ parsed = parse_sd_thumbnail(reply.payload)
557
+ if parsed is None:
558
+ continue
559
+ _ch, when, picture = parsed
560
+ record = by_s.get(when)
561
+ if record is not None and picture:
562
+ out[record] = picture
563
+ return out
472
564
 
473
565
  async def async_delete_sd_recordings(
474
566
  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.2"
7
+ version = "1.3.3"
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"
@@ -147,6 +147,14 @@ asyncio_default_fixture_loop_scope = "function"
147
147
  # keep it out of the coverage report so the numbers reflect our own code.
148
148
  omit = ["aidot_cameras/_vendor/*"]
149
149
 
150
+ [tool.coverage.report]
151
+ precision = 2
152
+ # Floor at the current unit-tier coverage so it can only go up: a real
153
+ # regression (a deleted test, or new code without a test) drops below this and
154
+ # fails CI and the publish run. Raise it when coverage rises; never lower it to
155
+ # make a red build pass. This gates both ci.yml and publish.yml.
156
+ fail_under = 67
157
+
150
158
  [tool.ruff]
151
159
  target-version = "py311"
152
160
  line-length = 88
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-aidot-cameras
3
- Version: 1.3.2
3
+ Version: 1.3.3
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,7 +262,6 @@ 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
266
265
  tests/test_sd_event_decode.py
267
266
  tests/test_sd_event_probe_payloads.py
268
267
  tests/test_sd_listing.py
@@ -274,6 +273,7 @@ tests/test_sd_playback_end.py
274
273
  tests/test_sd_playback_entry.py
275
274
  tests/test_sd_playback_media_hold.py
276
275
  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,140 @@
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 seconds; 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_s,
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_seconds_in_utc():
34
+ assert _record_epoch_s(REC) == 1794233107 # 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_s(REC)
42
+ assert struct.unpack_from("<q", req, 12)[0] == _record_epoch_s(REC2)
43
+
44
+
45
+ def test_a_thumbnail_reply_is_channel_time_and_picture():
46
+ payload = struct.pack("<Iq", 7, _record_epoch_s(REC)) + b"\xff\xd8JPEG"
47
+ assert parse_sd_thumbnail(payload) == (7, _record_epoch_s(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_s(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
@@ -1,85 +0,0 @@
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