python-aidot-cameras 1.2.0__tar.gz → 1.3.1__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 (378) hide show
  1. {python_aidot_cameras-1.2.0/python_aidot_cameras.egg-info → python_aidot_cameras-1.3.1}/PKG-INFO +1 -1
  2. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/client.py +151 -7
  3. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/constants.py +9 -0
  4. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/controls.py +3 -1
  5. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/protocol.py +27 -0
  6. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/sd_listing.py +183 -10
  7. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/sdes_open.py +3 -32
  8. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/webrtc_open.py +3 -2
  9. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/pyproject.toml +1 -1
  10. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
  11. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/python_aidot_cameras.egg-info/SOURCES.txt +2 -0
  12. python_aidot_cameras-1.3.1/tests/test_event_notice_watch.py +110 -0
  13. python_aidot_cameras-1.3.1/tests/test_sd_thumbnails_and_delete.py +140 -0
  14. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/LICENSE +0 -0
  15. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/MANIFEST.in +0 -0
  16. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/README.md +0 -0
  17. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/__init__.py +0 -0
  18. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/__main__.py +0 -0
  19. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_log_redaction.py +0 -0
  20. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_private_file.py +0 -0
  21. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_upstream.py +0 -0
  22. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/__init__.py +0 -0
  23. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
  24. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
  25. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
  26. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
  27. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
  28. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
  29. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
  30. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
  31. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
  32. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
  33. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
  34. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
  35. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
  36. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/events.py +0 -0
  37. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
  38. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
  39. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
  40. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
  41. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
  42. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
  43. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
  44. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
  45. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
  46. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
  47. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
  48. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
  49. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
  50. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
  51. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
  52. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
  53. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
  54. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
  55. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
  56. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/__init__.py +0 -0
  57. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/aac_track.py +0 -0
  58. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/agc.py +0 -0
  59. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/go2rtc.py +0 -0
  60. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/h264_sps.py +0 -0
  61. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/health.py +0 -0
  62. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/hls_ts.py +0 -0
  63. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/hwaccel.py +0 -0
  64. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/lan_control.py +0 -0
  65. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/models.py +0 -0
  66. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/recording.py +0 -0
  67. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/rtp_h264.py +0 -0
  68. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/rtsp_publish.py +0 -0
  69. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/sd_events.py +0 -0
  70. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/sd_playback.py +0 -0
  71. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/sdes.py +0 -0
  72. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/ts_fanout.py +0 -0
  73. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/ts_tee.py +0 -0
  74. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/camera/webrtc.py +0 -0
  75. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/client.py +0 -0
  76. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/cloud_auth.py +0 -0
  77. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/const.py +0 -0
  78. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/credentials.py +0 -0
  79. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/crypto.py +0 -0
  80. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/device_client.py +0 -0
  81. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/discover.py +0 -0
  82. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/exceptions.py +0 -0
  83. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/g711.py +0 -0
  84. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/lan_retry.py +0 -0
  85. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/mqtt_config2.py +0 -0
  86. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/py.typed +0 -0
  87. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/aidot_cameras/settings.py +0 -0
  88. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
  89. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
  90. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/python_aidot_cameras.egg-info/requires.txt +0 -0
  91. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/python_aidot_cameras.egg-info/top_level.txt +0 -0
  92. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/setup.cfg +0 -0
  93. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_aac_track.py +0 -0
  94. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
  95. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
  96. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_aioice_compat.py +0 -0
  97. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_alarm_event.py +0 -0
  98. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_answer_pt_kinds.py +0 -0
  99. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_answer_sdp_video_pt.py +0 -0
  100. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_answer_section_selection.py +0 -0
  101. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_arrival_timestamps.py +0 -0
  102. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_audio_mux_offline.py +0 -0
  103. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_auth_error_routing.py +0 -0
  104. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_auto_alarm.py +0 -0
  105. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_auto_light_settings.py +0 -0
  106. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
  107. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_avio_header_single_layout.py +0 -0
  108. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_avio_request.py +0 -0
  109. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_avio_response_parse.py +0 -0
  110. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_avio_response_router.py +0 -0
  111. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_backoff.py +0 -0
  112. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_battery_cap_spans_sessions.py +0 -0
  113. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_battery_detection.py +0 -0
  114. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_battery_evidence_corroboration.py +0 -0
  115. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
  116. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_battery_wake_settles_before_the_command.py +0 -0
  117. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ble_gateway_is_gone.py +0 -0
  118. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_bridge_state_sentinels.py +0 -0
  119. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_busy_backoff.py +0 -0
  120. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_camera_closed_session.py +0 -0
  121. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_camera_power.py +0 -0
  122. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_camera_properties.py +0 -0
  123. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_canary_log_names_the_camera.py +0 -0
  124. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
  125. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_cloud_count.py +0 -0
  126. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_cloud_error_log_names_the_exception.py +0 -0
  127. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_cloud_error_severity.py +0 -0
  128. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_cloud_plan.py +0 -0
  129. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_constants_imports_resolve.py +0 -0
  130. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_control_verdicts.py +0 -0
  131. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_controls_ride_the_direct_session.py +0 -0
  132. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_declared_properties.py +0 -0
  133. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_deferred_hardening.py +0 -0
  134. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_detection_types.py +0 -0
  135. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_device_cmd_seq_match.py +0 -0
  136. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_device_login_guard.py +0 -0
  137. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_device_user_info_cache.py +0 -0
  138. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
  139. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_direct_ts_keyframe_signal.py +0 -0
  140. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_direct_ts_serve.py +0 -0
  141. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_direct_ts_serve_only_for_http.py +0 -0
  142. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dormant_camera_cleanup.py +0 -0
  143. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_drain_is_cancellable.py +0 -0
  144. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_mux_terminal_write.py +0 -0
  145. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
  146. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_open_pacer.py +0 -0
  147. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_pinning.py +0 -0
  148. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_recorder_wiring.py +0 -0
  149. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_refusal_after_the_echo.py +0 -0
  150. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_resolution_ack.py +0 -0
  151. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_serve_backoff.py +0 -0
  152. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_serve_decode_skip.py +0 -0
  153. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_serve_ice_wait.py +0 -0
  154. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_serve_open_timeout.py +0 -0
  155. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_skip_signaling_wait.py +0 -0
  156. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_stdout_producer.py +0 -0
  157. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_tap_states_no_reorder.py +0 -0
  158. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_ts_copy_recording.py +0 -0
  159. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_dtls_video_presence.py +0 -0
  160. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_egress_guard.py +0 -0
  161. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_env_seams.py +0 -0
  162. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_every_exception_is_exported.py +0 -0
  163. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_feature_probe_needs_a_live_session.py +0 -0
  164. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
  165. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
  166. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_first_media_abandon_rules.py +0 -0
  167. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_futile_keepalive.py +0 -0
  168. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_g711_law_conversion.py +0 -0
  169. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_gate_requires_a_decoded_frame.py +0 -0
  170. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_go2rtc.py +0 -0
  171. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_go2rtc_cli.py +0 -0
  172. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_h264_decode_rate_limit.py +0 -0
  173. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_h264_sps.py +0 -0
  174. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_health_line.py +0 -0
  175. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_health_line_counts_pictures.py +0 -0
  176. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_highport_nomination.py +0 -0
  177. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_hls_ts_end_to_end.py +0 -0
  178. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_hls_ts_wiring.py +0 -0
  179. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_hwaccel_probe.py +0 -0
  180. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ice_config_cache.py +0 -0
  181. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ice_credentials_match_the_app.py +0 -0
  182. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ice_peer_reflexive.py +0 -0
  183. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_idle_release_both_loops.py +0 -0
  184. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ipc_envelope_single_builder.py +0 -0
  185. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_keepalive_renew.py +0 -0
  186. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_keyframe_prompter.py +0 -0
  187. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_control.py +0 -0
  188. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_login_accessors.py +0 -0
  189. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
  190. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_retry_short_sessions.py +0 -0
  191. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
  192. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_retry_stops_on_close.py +0 -0
  193. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_lan_sweep_only_with_lights.py +0 -0
  194. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_late_repeats_are_dropped.py +0 -0
  195. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
  196. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_light_active_color_mode.py +0 -0
  197. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_live_session_carries_talk.py +0 -0
  198. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_live_stream_param.py +0 -0
  199. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_live_validate_policy.py +0 -0
  200. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_live_validate_token_refresh.py +0 -0
  201. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_live_video_canary.py +0 -0
  202. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_liveplay_echo_timeout.py +0 -0
  203. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_local_only_controls.py +0 -0
  204. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_log_hygiene.py +0 -0
  205. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_logging_caps.py +0 -0
  206. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_login_connect_deadline.py +0 -0
  207. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_login_reconnect_backoff.py +0 -0
  208. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_loop_break_ends_the_loop.py +0 -0
  209. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_media_counted_only_when_plaintext.py +0 -0
  210. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_media_path_is_reported.py +0 -0
  211. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_media_socket_rcvbuf.py +0 -0
  212. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_media_wait_floor.py +0 -0
  213. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_motion_poll.py +0 -0
  214. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mqtt_client_id_is_exact.py +0 -0
  215. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mqtt_config2.py +0 -0
  216. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mqtt_credential_refetch.py +0 -0
  217. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mqtt_credential_self_heal.py +0 -0
  218. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mqtt_password_not_persisted.py +0 -0
  219. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mqtt_thread_not_orphaned.py +0 -0
  220. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_mypy_new_findings.py +0 -0
  221. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_nack.py +0 -0
  222. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
  223. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_narrow_pc_ice.py +0 -0
  224. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_no_key_material_in_logs.py +0 -0
  225. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
  226. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_no_self_referential_go2rtc.py +0 -0
  227. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_no_unbounded_hex_dumps.py +0 -0
  228. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_no_undefined_names.py +0 -0
  229. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
  230. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_off_subnet_candidate.py +0 -0
  231. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
  232. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_offline_keepalive_pause.py +0 -0
  233. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_on_frame_is_an_av_frame.py +0 -0
  234. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_open_errors_are_aidot_errors.py +0 -0
  235. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_open_fail_logger.py +0 -0
  236. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_open_gate_delay.py +0 -0
  237. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_peer_id_client_type.py +0 -0
  238. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_peerid_reuse.py +0 -0
  239. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_persistent_mqtt.py +0 -0
  240. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_persistent_mqtt_robustness.py +0 -0
  241. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_phase_returns_reach_the_caller.py +0 -0
  242. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_phase_state_is_complete.py +0 -0
  243. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_plaintext_mqtt_refused.py +0 -0
  244. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_post_merge_hardening.py +0 -0
  245. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
  246. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_public_signature_matches_impl.py +0 -0
  247. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_publish_target_readiness.py +0 -0
  248. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_quality_campaign_in_session.py +0 -0
  249. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_reboot_action.py +0 -0
  250. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_recent_recordings.py +0 -0
  251. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_region_allowlist.py +0 -0
  252. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_remb.py +0 -0
  253. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
  254. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
  255. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_resent_frames_are_dropped.py +0 -0
  256. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_resolution_persists.py +0 -0
  257. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_restart_cycle.py +0 -0
  258. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_review_lan_retry_and_graces.py +0 -0
  259. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_rtp_h264.py +0 -0
  260. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_rtsp_publish.py +0 -0
  261. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_rtsp_publish_go2rtc.py +0 -0
  262. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_scripts_importable.py +0 -0
  263. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sctp_in_order.py +0 -0
  264. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sctp_init_ack_tsn.py +0 -0
  265. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sctp_reassembly.py +0 -0
  266. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sctp_sack.py +0 -0
  267. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_card_presence.py +0 -0
  268. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_event_decode.py +0 -0
  269. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_event_probe_payloads.py +0 -0
  270. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_listing.py +0 -0
  271. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback.py +0 -0
  272. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_clock.py +0 -0
  273. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_controls.py +0 -0
  274. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_dtls.py +0 -0
  275. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_end.py +0 -0
  276. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_entry.py +0 -0
  277. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_media_hold.py +0 -0
  278. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sd_playback_open.py +0 -0
  279. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_avio_dispatch.py +0 -0
  280. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_bridge_break_gate.py +0 -0
  281. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
  282. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_connection_mode.py +0 -0
  283. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_fast_liveplay.py +0 -0
  284. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
  285. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_first_media_stall_report.py +0 -0
  286. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_ice_teardown.py +0 -0
  287. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_idle_release.py +0 -0
  288. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_nack_bridge.py +0 -0
  289. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_offer_video_pin.py +0 -0
  290. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_open_cleanup.py +0 -0
  291. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
  292. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_open_yields_the_loop.py +0 -0
  293. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_pinned_codec_retry.py +0 -0
  294. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_sctp_abort.py +0 -0
  295. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_serve_audio.py +0 -0
  296. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_serve_cmd.py +0 -0
  297. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_serve_stderr_drain.py +0 -0
  298. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_sprop.py +0 -0
  299. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_talk.py +0 -0
  300. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_teardown_exit_log.py +0 -0
  301. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_terminal_ack.py +0 -0
  302. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_terminal_ack_latency.py +0 -0
  303. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
  304. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdes_watchdog.py +0 -0
  305. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdp_narrowing_properties.py +0 -0
  306. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sdp_payload_type_narrowing.py +0 -0
  307. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_security_hardening.py +0 -0
  308. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
  309. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serializable_login_info.py +0 -0
  310. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
  311. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_input_timeout.py +0 -0
  312. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_loop_releases_on_error.py +0 -0
  313. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_loss_tolerance.py +0 -0
  314. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_pt_respects_the_pin.py +0 -0
  315. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_relay.py +0 -0
  316. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
  317. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_session_mode_seq.py +0 -0
  318. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_session_stats.py +0 -0
  319. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_session_stop_twice.py +0 -0
  320. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_set_dev_attr_payload.py +0 -0
  321. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_settings_registry.py +0 -0
  322. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_shared_house_seam.py +0 -0
  323. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
  324. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_skip_guard.py +0 -0
  325. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sleep_camera.py +0 -0
  326. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_snapshot_cancellation.py +0 -0
  327. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_speak.py +0 -0
  328. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sprop_capture_gate.py +0 -0
  329. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sprop_staleness.py +0 -0
  330. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sprop_unstable_public.py +0 -0
  331. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
  332. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_srtp_rx_rekey.py +0 -0
  333. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_srtp_tx_key_note.py +0 -0
  334. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stable_terminal_id.py +0 -0
  335. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stall_nudge_policy.py +0 -0
  336. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
  337. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
  338. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
  339. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
  340. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stall_reports_reach_the_artifact.py +0 -0
  341. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_status_and_trace_channels.py +0 -0
  342. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stream_cap.py +0 -0
  343. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stream_drain_ownership.py +0 -0
  344. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stream_idle.py +0 -0
  345. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stream_settings.py +0 -0
  346. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stream_slot_cap.py +0 -0
  347. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stream_teardown.py +0 -0
  348. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_stun_attr_single_builder.py +0 -0
  349. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_swallowed_exception_names.py +0 -0
  350. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_talk.py +0 -0
  351. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
  352. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_tap_to_mux_end_to_end.py +0 -0
  353. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_terminal_ack.py +0 -0
  354. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_token_file_robustness.py +0 -0
  355. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_token_refresh.py +0 -0
  356. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_transport_failure_reporting.py +0 -0
  357. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ts_fanout.py +0 -0
  358. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_ts_tee.py +0 -0
  359. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_turn_create_permission.py +0 -0
  360. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_turn_target_shared.py +0 -0
  361. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_unbind_notice.py +0 -0
  362. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
  363. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_upstream_compat.py +0 -0
  364. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_upstream_seam_adapter.py +0 -0
  365. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_upstream_secrets_redacted.py +0 -0
  366. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_validator_shares_one_token.py +0 -0
  367. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_vendored_aiortc_integrity.py +0 -0
  368. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_video_presence_needs_a_keyframe.py +0 -0
  369. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_video_profile_log.py +0 -0
  370. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_video_pts_dts.py +0 -0
  371. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_video_ts_unwrap.py +0 -0
  372. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_viewer_check_throttle.py +0 -0
  373. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_viewer_presence.py +0 -0
  374. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_viewer_present_push_mode.py +0 -0
  375. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_wait_or_event.py +0 -0
  376. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_wake_gate_camera_evidence.py +0 -0
  377. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/tests/test_wake_readiness_retry.py +0 -0
  378. {python_aidot_cameras-1.2.0 → python_aidot_cameras-1.3.1}/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.2.0
3
+ Version: 1.3.1
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
@@ -66,7 +66,7 @@ from .sdes import (
66
66
  SdesSession,
67
67
  ) # re-exported (split into sdes.py); also the SDES return type
68
68
  from .controls import _CameraControlsMixin, control_session
69
- from .sd_listing import _CameraSdMixin
69
+ from .sd_listing import _CameraSdExtrasMixin, _CameraSdMixin
70
70
  from .sd_playback import _CameraSdPlaybackMixin
71
71
  from .webrtc_open import _WebRTCOpenMixin
72
72
  from .sdes_open import _SdesOpenMixin
@@ -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``?
@@ -2025,7 +2051,11 @@ async def _dtls_serve_loop_serve_cycle(
2025
2051
  exc_info=True,
2026
2052
  )
2027
2053
  ps.wfile = None
2028
- ps.mux_thread.join(timeout=2.0)
2054
+ # Off the loop: a mux thread stuck in a write would otherwise hold
2055
+ # every coroutine in the process for up to two seconds.
2056
+ await asyncio.get_running_loop().run_in_executor(
2057
+ None, ps.mux_thread.join, 2.0
2058
+ )
2029
2059
  ps.mux_thread = ps.stop_flag = None
2030
2060
  if _mode == "stdout" and _mux_ended and _mux_state.get("failed"):
2031
2061
  # Whoever read our stdout has gone (go2rtc kills an exec
@@ -2082,7 +2112,11 @@ async def _dtls_serve_loop_serve_cycle(
2082
2112
  # itself raised, join() raises "cannot join thread before it
2083
2113
  # is started", which would replace the real exception AND skip
2084
2114
  # the session stop below, leaking the camera's session.
2085
- ps.mux_thread.join(timeout=2.0)
2115
+ # Off the loop: a mux thread stuck in a write would otherwise hold
2116
+ # every coroutine in the process for up to two seconds.
2117
+ await asyncio.get_running_loop().run_in_executor(
2118
+ None, ps.mux_thread.join, 2.0
2119
+ )
2086
2120
  self._stream_session = None
2087
2121
  try:
2088
2122
  await ps.session.stop()
@@ -2697,6 +2731,7 @@ def _call_guarded(callback) -> None:
2697
2731
  class CameraMixin(
2698
2732
  _CameraControlsMixin,
2699
2733
  _CameraSdMixin,
2734
+ _CameraSdExtrasMixin,
2700
2735
  _CameraSdPlaybackMixin,
2701
2736
  _WebRTCOpenMixin,
2702
2737
  _SdesOpenMixin,
@@ -4148,7 +4183,10 @@ class CameraMixin(
4148
4183
  try:
4149
4184
  _, _wst = await self._persistent_request(_wake_items, [], 2.0)
4150
4185
  _connected = _wst.get("error") != _NO_PERSISTENT_MQTT
4151
- if _connected:
4186
+ if _mqtt_publish_delivered(_wst):
4187
+ # Only a wake the broker took counts as the camera woken;
4188
+ # a connect timeout or a failed publish must not stop the
4189
+ # next command from waking it again.
4152
4190
  self._last_wake_mono = _time.monotonic()
4153
4191
  except Exception:
4154
4192
  # A failed wake must not stop the command: on a camera that is
@@ -4294,6 +4332,9 @@ class CameraMixin(
4294
4332
  if lan is not None:
4295
4333
  try:
4296
4334
  if await lan.async_set_attributes({attr: value}):
4335
+ # The same optimistic state the cloud path records below,
4336
+ # so a switch does not snap back until the next poll.
4337
+ self.status.update_from_camera_attributes({attr: value})
4297
4338
  return True
4298
4339
  except Exception as _exc:
4299
4340
  _LOGGER.debug(
@@ -5114,10 +5155,11 @@ class CameraMixin(
5114
5155
  body = await _fetch() # retry once with the refreshed token
5115
5156
 
5116
5157
  _LOGGER.debug(
5117
- "getEventVideoUrl raw for %s uuid=%s: %s",
5158
+ "getEventVideoUrl code=%s for %s uuid=%s: %d url(s)",
5159
+ body.get("code"),
5118
5160
  self.device_id,
5119
5161
  event_uuid,
5120
- body,
5162
+ len((body.get("data") or {}).get("eventUrlList") or []),
5121
5163
  )
5122
5164
 
5123
5165
  if body.get("code") != 200:
@@ -5569,6 +5611,11 @@ class CameraMixin(
5569
5611
  return
5570
5612
  self._motion_active = True
5571
5613
  self._motion_seen = {}
5614
+ # The poke the event watch sets (poke_motion_poll): made here so a
5615
+ # notice that lands before the first wait is not lost, cleared at the
5616
+ # start of each poll so one that lands during a poll runs the next.
5617
+ self._motion_poke = asyncio.Event()
5618
+ self._motion_last_poll = 0.0
5572
5619
  self._motion_task = asyncio.ensure_future(self._motion_poll_loop(lookback_s))
5573
5620
 
5574
5621
  async def async_watch_unbind(self, callback: "Callable[[], None]") -> bool:
@@ -5631,6 +5678,89 @@ class CameraMixin(
5631
5678
  self._unbind_watch = (pm, pm.add_handler(_handler))
5632
5679
  return True
5633
5680
 
5681
+ async def async_watch_events(self, callback: "Callable[[], None]") -> bool:
5682
+ """Call ``callback()`` on the loop when the cloud announces an event
5683
+ for this camera on the account's topics (``devEventNotif`` or
5684
+ ``eventNotify``), so a consumer can poll the event list at once
5685
+ instead of at its next interval. Whether these cameras announce their
5686
+ events there is not yet measured; the watch costs nothing if they do
5687
+ not. Returns False when there is no MQTT session to listen on.
5688
+ """
5689
+ pm = await self._get_persistent_mqtt()
5690
+ if pm is None:
5691
+ return False
5692
+ device_id = self.device_id
5693
+ loop = asyncio.get_running_loop()
5694
+ seen_names: set[str] = set()
5695
+ last_poke = [float("-inf")]
5696
+
5697
+ def _handler(topic, payload) -> None:
5698
+ text = str(payload)[:600]
5699
+ if "devEventNotif" not in text and "eventNotify" not in text:
5700
+ return
5701
+ try:
5702
+ msg = json.loads(payload)
5703
+ except Exception:
5704
+ return
5705
+ if (msg.get("method") or "") not in ("devEventNotif", "eventNotify"):
5706
+ return
5707
+ inner = msg.get("payload") if isinstance(msg.get("payload"), dict) else {}
5708
+ src = str(msg.get("srcAddr") or "")
5709
+ dev = (
5710
+ inner.get("devId")
5711
+ or inner.get("deviceId")
5712
+ or msg.get("devId")
5713
+ or (src.rsplit(".", 1)[-1] if src else None)
5714
+ )
5715
+ if dev and dev != device_id:
5716
+ return
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
5741
+ loop.call_soon_threadsafe(_call_guarded, callback)
5742
+
5743
+ await self.async_stop_watching_events()
5744
+ await pm.subscribe([f"iot/v1/c/{self.user_id}/#"])
5745
+ self._event_watch = (pm, pm.add_handler(_handler))
5746
+ return True
5747
+
5748
+ async def async_stop_watching_events(self) -> None:
5749
+ """Stop the ``async_watch_events`` listener, if any."""
5750
+ watch = getattr(self, "_event_watch", None)
5751
+ if watch is None:
5752
+ return
5753
+ self._event_watch = None
5754
+ pm, handler = watch
5755
+ pm.remove_handler(handler)
5756
+
5757
+ def poke_motion_poll(self) -> None:
5758
+ """Ask the motion poll loop to poll now rather than at its next
5759
+ interval; a no-op when it is not running."""
5760
+ ev = getattr(self, "_motion_poke", None)
5761
+ if ev is not None:
5762
+ ev.set()
5763
+
5634
5764
  async def async_stop_watching_unbind(self) -> None:
5635
5765
  """Stop the ``async_watch_unbind`` listener, if any. Touches only the
5636
5766
  connection the handler was added to; never builds one."""
@@ -5664,6 +5794,10 @@ class CameraMixin(
5664
5794
 
5665
5795
  primed = False
5666
5796
  while self._motion_active:
5797
+ poke = getattr(self, "_motion_poke", None)
5798
+ if poke is not None:
5799
+ poke.clear()
5800
+ self._motion_last_poll = asyncio.get_running_loop().time()
5667
5801
  try:
5668
5802
  now = int(_time.time() * 1000)
5669
5803
  items = await self.async_get_cloud_recordings(
@@ -5694,7 +5828,17 @@ class CameraMixin(
5694
5828
  except Exception as exc:
5695
5829
  _LOGGER.debug("motion poll error for %s: %s", self.device_id, exc)
5696
5830
  try:
5697
- await asyncio.sleep(self._motion_interval)
5831
+ # Interruptible: an event notice (poke_motion_poll) ends the
5832
+ # wait early so the poll runs now. Not cleared here: a poke
5833
+ # that landed during the poll above must end this wait at
5834
+ # once; the clear is at the top of the loop, before a poll.
5835
+ if poke is None:
5836
+ await asyncio.sleep(self._motion_interval)
5837
+ else:
5838
+ try:
5839
+ await asyncio.wait_for(poke.wait(), self._motion_interval)
5840
+ except TimeoutError:
5841
+ pass
5698
5842
  except asyncio.CancelledError:
5699
5843
  return
5700
5844
 
@@ -166,6 +166,15 @@ IOTYPE_USER_IPCAM_SPEAKERSTART = 0x350 # 848
166
166
  IOTYPE_USER_IPCAM_SPEAKERSTOP = 0x351 # 849
167
167
  #: The SPEAKERSTART ack on the WebRTC transports; 0x352 is the TUTK one.
168
168
  IOTYPE_USER_IPCAM_SPEAKERSTART_WEB_RTC_RESP = 0x353 # 851
169
+ #: Delete card recordings (the app's deleteRecord): 0x4b7 asks, 0x4b8 answers
170
+ #: with one byte, 0 for done.
171
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ = 0x4B7
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
169
178
  IOTYPE_USER_IPCAM_HASLISTEVENT_REQ = 0x4B5
170
179
  IOTYPE_USER_IPCAM_HASLISTEVENT_RESP = 0x4B6
171
180
  IOTYPE_USER_IPCAM_PTZ_COMMAND = 0x1001 # 4097
@@ -696,11 +696,13 @@ class _CameraControlsMixin:
696
696
  # same session; the second must not send the command twice.
697
697
  if getattr(self, "_resolution_applied_to", None) is session:
698
698
  return
699
- self._resolution_applied_to = session
700
699
  try:
701
700
  if session._avio_cmd(
702
701
  IOTYPE_USER_IPCAM_SETSTREAMCTRL_REQ, struct.pack("<IB3x", 0, q)
703
702
  ):
703
+ # Latched only once the command left: a channel not yet up
704
+ # gets it again at the next prepare.
705
+ self._resolution_applied_to = session
704
706
  _LOGGER.debug("re-applied remembered resolution %s", quality)
705
707
  except Exception:
706
708
  _LOGGER.debug("could not re-apply resolution %s", quality, exc_info=True)
@@ -3328,3 +3328,30 @@ def mask_sdp_secrets(sdp: str) -> str:
3328
3328
  break
3329
3329
  out.append(ln)
3330
3330
  return "".join(out)
3331
+
3332
+
3333
+ def dispatch_avio_frames(responses, payload) -> bool:
3334
+ """Offer every AVIO frame in one inbound control message to ``responses``.
3335
+
3336
+ One SCTP message can carry more than one frame: a 12-byte SESSION_MODE
3337
+ notify has been seen arriving with a reply batched behind it in a
3338
+ 140-byte chunk. Reading only the first loses the reply, which presents as
3339
+ the camera intermittently not answering. Both transports' control
3340
+ channels go through here. True if something waiting was answered; never
3341
+ raises and never blocks (it runs inline on the receive path).
3342
+ """
3343
+ if responses is None or not payload:
3344
+ return False
3345
+ answered = False
3346
+ try:
3347
+ view = memoryview(payload)
3348
+ while len(view) >= AVIO_HDR_LEN:
3349
+ frame = parse_avio_response(bytes(view))
3350
+ if frame is None:
3351
+ break
3352
+ if responses.dispatch(bytes(view)):
3353
+ answered = True
3354
+ view = view[AVIO_HDR_LEN + len(frame.payload) :]
3355
+ except Exception:
3356
+ return answered
3357
+ return answered
@@ -12,11 +12,20 @@ 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
17
+ import struct
16
18
  import time
17
19
  from datetime import datetime, UTC
18
20
  from typing import Any, List, Optional
19
21
 
22
+ from .constants import (
23
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
24
+ IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
25
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
26
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
27
+ )
28
+ from .controls import _session_is_live as _control_session_is_live
20
29
  from .sd_events import (
21
30
  HASLISTEVENT_REQ_CMD,
22
31
  HASLISTEVENT_RESP_CMD,
@@ -160,17 +169,15 @@ def _plausible(record: Any, lo: float, hi: float) -> bool:
160
169
 
161
170
 
162
171
  def _session_is_live(session: Any) -> bool:
163
- """Is this session object one that could still carry a request?
164
-
165
- Only SDES sessions publish ``is_alive``, so a session already torn down is
166
- caught on that transport and not on DTLS. That asymmetry is fine here and
167
- must stay fine at every caller: this is a cheap early-out, never the thing
168
- that keeps a dead channel from being reported as an empty card. ``answered``
169
- does that, on every transport.
170
- """
171
- if session is None:
172
+ """Is this session one that could still carry a request? One rule for
173
+ both transports (controls._session_is_live): not stopped, and its peer
174
+ connection, where it has one, neither closed nor failed. An SDES session
175
+ also publishes ``is_alive``. A cheap early-out, never the thing that
176
+ keeps a dead channel from being reported as an empty card: ``answered``
177
+ does that."""
178
+ if session is None or getattr(session, "is_alive", True) is False:
172
179
  return False
173
- return getattr(session, "is_alive", True) is not False
180
+ return _control_session_is_live(session)
174
181
 
175
182
 
176
183
  class _CameraSdMixin:
@@ -420,3 +427,169 @@ class _CameraSdMixin:
420
427
  start_ts=start_ts,
421
428
  end_ts=end_ts,
422
429
  )
430
+
431
+
432
+ # --------------------------------------------------------------------------- #
433
+ # Thumbnails and deletion of card recordings
434
+ # --------------------------------------------------------------------------- #
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_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
+
455
+ def _record_stime(record: Any) -> bytes:
456
+ """A record's start as the TUTK STimeDay the delete request carries."""
457
+ from .sd_playback import _java_day_of_week
458
+
459
+ return struct.pack(
460
+ "<HBBBBBB",
461
+ record.year,
462
+ record.month,
463
+ record.day,
464
+ _java_day_of_week(record.year, record.month, record.day),
465
+ record.hour,
466
+ record.minute,
467
+ record.second,
468
+ )
469
+
470
+
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
+ def sd_delete_request(
491
+ records: "list", *, delete_type: int = 0, event_type: int = 0
492
+ ) -> bytes:
493
+ """The 0x4b7 payload, as the app's deleteRecord builds it: u32 channel 0,
494
+ u32 count, u8 0, u8 1, u8 count, u8 delete type, i16 event type, then per
495
+ recording its STimeDay (8 bytes) and its index (i16). The app sends delete
496
+ type 0 and the list page's event type."""
497
+ n = len(records)
498
+ out = struct.pack("<IIBBBBh", 0, n, 0, 1, n & 0xFF, delete_type & 0xFF, event_type)
499
+ for i, r in enumerate(records):
500
+ out += _record_stime(r) + struct.pack("<h", i)
501
+ return out
502
+
503
+
504
+ class _CameraSdExtrasMixin:
505
+ """Thumbnails and deletion for card recordings; mixed into CameraMixin."""
506
+
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
556
+
557
+ async def async_delete_sd_recordings(
558
+ self,
559
+ records: "list",
560
+ *,
561
+ session: Any = None,
562
+ timeout: float = 8.0,
563
+ ) -> "Optional[bool]":
564
+ """Delete ``records`` from the card. True when the camera said done,
565
+ False when it refused, None when there was no live session to ask
566
+ through or it did not answer. Destructive and unconfirmed by the
567
+ camera beyond its one status byte; callers should ask the user first.
568
+ """
569
+ if session is None:
570
+ session = getattr(self, "_stream_session", None)
571
+ if not records or not _session_is_live(session):
572
+ return None
573
+ event_type = int(getattr(records[0], "event", 0)) if len(records) == 1 else 0
574
+ try:
575
+ reply = await session.async_avio_request(
576
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
577
+ sd_delete_request(records, event_type=event_type),
578
+ response_cmd=IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
579
+ timeout=timeout,
580
+ )
581
+ except Exception as exc:
582
+ _LOGGER.debug(
583
+ "SD delete failed for %s: %s", getattr(self, "device_id", "?"), exc
584
+ )
585
+ return None
586
+ if reply is None:
587
+ return None
588
+ ok = bool(reply.payload) and reply.payload[0] == 0
589
+ _LOGGER.info(
590
+ "camera %s: delete of %d card recording(s) %s",
591
+ getattr(self, "device_id", "?"),
592
+ len(records),
593
+ "done" if ok else "refused (%r)" % bytes(reply.payload[:4]),
594
+ )
595
+ return ok
@@ -55,11 +55,11 @@ from .rtsp_publish import (
55
55
  is_publishable_url,
56
56
  )
57
57
  from .protocol import (
58
+ dispatch_avio_frames,
58
59
  ipc_envelope,
59
60
  avio_frame,
60
61
  avio_header,
61
62
  mask_sdp_secrets,
62
- AVIO_HDR_LEN,
63
63
  REMB_TARGET_BPS,
64
64
  AvioResponseRouter,
65
65
  NackTracker,
@@ -530,37 +530,8 @@ def _sctp_parse_init_ack(pkt: bytes, state: dict) -> Optional[bytes]:
530
530
 
531
531
 
532
532
  def _dispatch_sctp_avio(responses, payload) -> bool:
533
- """Offer an inbound SCTP DATA payload to the AVIO response router.
534
-
535
- This is where the camera's replies actually arrive on SDES: an encrypted
536
- SCTP DATA chunk (PPID 53) on the same channel we send LIVING, the heartbeat
537
- and SPEAKERSTART on - not the TUTK-audio framing the audio forward path
538
- watches. Wiring only the latter is why a camera that answered SPEAKERSTART
539
- in moments looked silent.
540
-
541
- True if it answered something we were waiting for. Never raises and never
542
- blocks: it runs inline on the bridge receive loop, where a bad frame must
543
- not be able to take the media path down with it.
544
- """
545
- if responses is None or not payload:
546
- return False
547
- answered = False
548
- try:
549
- view = memoryview(payload)
550
- while len(view) >= AVIO_HDR_LEN:
551
- frame = parse_avio_response(bytes(view))
552
- if frame is None:
553
- break
554
- if responses.dispatch(bytes(view)):
555
- answered = True
556
- # One chunk can carry more than one frame: 5377 declares a 12-byte
557
- # payload and has been seen arriving in a 140-byte chunk. Reading
558
- # only the first would lose a reply batched behind a notify, which
559
- # presents as the camera intermittently not answering.
560
- view = view[AVIO_HDR_LEN + len(frame.payload) :]
561
- except Exception:
562
- return answered
563
- return answered
533
+ """SDES control frames: see :func:`protocol.dispatch_avio_frames`."""
534
+ return dispatch_avio_frames(responses, payload)
564
535
 
565
536
 
566
537
  def _widen_media_rcvbuf(sock, kind: str, device_id: str = "?") -> int:
@@ -45,6 +45,7 @@ from .constants import (
45
45
  from .sdes_open import _answer_sdp_can_nominate
46
46
  from .webrtc import WebRTCSession, dtls_send_avio
47
47
  from .protocol import (
48
+ dispatch_avio_frames,
48
49
  ipc_envelope,
49
50
  mask_sdp_secrets,
50
51
  AvioResponseRouter,
@@ -2929,7 +2930,7 @@ async def _dtls_open_peer_connection_setup(self, ps: _DtlsOpenState) -> None:
2929
2930
  def _on_remote_dc_message(message) -> None:
2930
2931
  try:
2931
2932
  if isinstance(message, (bytes, bytearray)):
2932
- ps._avio_responses.dispatch(bytes(message))
2933
+ dispatch_avio_frames(ps._avio_responses, bytes(message))
2933
2934
  ps._trace(
2934
2935
  f"DC[remote:{channel.label}] RX {len(message)}B"
2935
2936
  f" cmd={_avio_cmd_id(message)}"
@@ -3018,7 +3019,7 @@ async def _dtls_open_peer_connection_setup(self, ps: _DtlsOpenState) -> None:
3018
3019
  def _on_kvs_dc_message(message) -> None:
3019
3020
  try:
3020
3021
  if isinstance(message, (bytes, bytearray)):
3021
- ps._avio_responses.dispatch(bytes(message))
3022
+ dispatch_avio_frames(ps._avio_responses, bytes(message))
3022
3023
  ps._trace(
3023
3024
  f"DC[{_dc_label}] RX {len(message)}B"
3024
3025
  f" cmd={_avio_cmd_id(message)}"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-aidot-cameras"
7
- version = "1.2.0"
7
+ version = "1.3.1"
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.2.0
3
+ Version: 1.3.1
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
@@ -155,6 +155,7 @@ tests/test_dtls_ts_copy_recording.py
155
155
  tests/test_dtls_video_presence.py
156
156
  tests/test_egress_guard.py
157
157
  tests/test_env_seams.py
158
+ tests/test_event_notice_watch.py
158
159
  tests/test_every_exception_is_exported.py
159
160
  tests/test_feature_probe_needs_a_live_session.py
160
161
  tests/test_ffmpeg_rx_sdp_single_template.py
@@ -272,6 +273,7 @@ tests/test_sd_playback_end.py
272
273
  tests/test_sd_playback_entry.py
273
274
  tests/test_sd_playback_media_hold.py
274
275
  tests/test_sd_playback_open.py
276
+ tests/test_sd_thumbnails_and_delete.py
275
277
  tests/test_sdes_avio_dispatch.py
276
278
  tests/test_sdes_bridge_break_gate.py
277
279
  tests/test_sdes_bridge_starts_without_the_answer.py