python-aidot-cameras 1.4.1__tar.gz → 1.5.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 (398) hide show
  1. {python_aidot_cameras-1.4.1/python_aidot_cameras.egg-info → python_aidot_cameras-1.5.1}/PKG-INFO +49 -12
  2. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/README.md +48 -11
  3. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/__init__.py +5 -0
  4. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/client.py +256 -13
  5. python_aidot_cameras-1.5.1/aidot_cameras/camera/dtls_pins.py +269 -0
  6. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/protocol.py +41 -0
  7. python_aidot_cameras-1.5.1/aidot_cameras/camera/recording.py +370 -0
  8. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/sdes_open.py +120 -16
  9. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/stream_health.py +4 -0
  10. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/webrtc.py +7 -0
  11. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/webrtc_open.py +336 -122
  12. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/client.py +11 -0
  13. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/device_client.py +5 -0
  14. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/exceptions.py +12 -0
  15. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/settings.py +6 -0
  16. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/pyproject.toml +1 -1
  17. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1/python_aidot_cameras.egg-info}/PKG-INFO +49 -12
  18. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/python_aidot_cameras.egg-info/SOURCES.txt +9 -0
  19. python_aidot_cameras-1.5.1/tests/test_busy_yield_when_unwatched.py +200 -0
  20. python_aidot_cameras-1.5.1/tests/test_dtls_learned_pin.py +533 -0
  21. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_recorder_wiring.py +4 -2
  22. python_aidot_cameras-1.5.1/tests/test_dtls_version_cap.py +126 -0
  23. python_aidot_cameras-1.5.1/tests/test_live_validate_counts_and_devices.py +64 -0
  24. python_aidot_cameras-1.5.1/tests/test_mp4_copy_recording.py +590 -0
  25. python_aidot_cameras-1.5.1/tests/test_mqtt_url_failure_severity.py +289 -0
  26. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_media_hold.py +2 -1
  27. python_aidot_cameras-1.5.1/tests/test_sdes_bind_wait.py +71 -0
  28. python_aidot_cameras-1.5.1/tests/test_sdes_superseded_open.py +76 -0
  29. python_aidot_cameras-1.4.1/aidot_cameras/camera/recording.py +0 -141
  30. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/LICENSE +0 -0
  31. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/MANIFEST.in +0 -0
  32. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/__main__.py +0 -0
  33. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_bg_tasks.py +0 -0
  34. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_log_redaction.py +0 -0
  35. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_private_file.py +0 -0
  36. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_upstream.py +0 -0
  37. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/__init__.py +0 -0
  38. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
  39. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
  40. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
  41. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
  42. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
  43. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
  44. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
  45. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
  46. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
  47. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
  48. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
  49. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
  50. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
  51. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/events.py +0 -0
  52. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
  53. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
  54. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
  55. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
  56. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
  57. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
  58. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
  59. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
  60. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
  61. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
  62. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
  63. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
  64. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
  65. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
  66. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
  67. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
  68. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
  69. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
  70. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
  71. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/__init__.py +0 -0
  72. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/_seq.py +0 -0
  73. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/aac_track.py +0 -0
  74. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/agc.py +0 -0
  75. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/constants.py +0 -0
  76. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/controls.py +0 -0
  77. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/go2rtc.py +0 -0
  78. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/h264_sps.py +0 -0
  79. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/health.py +0 -0
  80. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/hls_ts.py +0 -0
  81. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/hwaccel.py +0 -0
  82. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/lan_control.py +0 -0
  83. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/models.py +0 -0
  84. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/rtp_h264.py +0 -0
  85. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/rtsp_publish.py +0 -0
  86. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/sd_events.py +0 -0
  87. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/sd_listing.py +0 -0
  88. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/sd_playback.py +0 -0
  89. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/sdes.py +0 -0
  90. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/ts_fanout.py +0 -0
  91. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/camera/ts_tee.py +0 -0
  92. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/cloud_auth.py +0 -0
  93. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/const.py +0 -0
  94. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/credentials.py +0 -0
  95. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/crypto.py +0 -0
  96. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/discover.py +0 -0
  97. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/g711.py +0 -0
  98. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/lan_retry.py +0 -0
  99. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/mqtt_config2.py +0 -0
  100. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/aidot_cameras/py.typed +0 -0
  101. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
  102. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
  103. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/python_aidot_cameras.egg-info/requires.txt +0 -0
  104. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/python_aidot_cameras.egg-info/top_level.txt +0 -0
  105. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/setup.cfg +0 -0
  106. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_aac_track.py +0 -0
  107. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
  108. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
  109. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_aioice_compat.py +0 -0
  110. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_alarm_event.py +0 -0
  111. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_answer_pt_kinds.py +0 -0
  112. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_answer_sdp_video_pt.py +0 -0
  113. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_answer_section_selection.py +0 -0
  114. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_arrival_timestamps.py +0 -0
  115. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_audio_mux_offline.py +0 -0
  116. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_auth_error_routing.py +0 -0
  117. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_auto_alarm.py +0 -0
  118. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_auto_light_settings.py +0 -0
  119. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
  120. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_avio_header_single_layout.py +0 -0
  121. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_avio_request.py +0 -0
  122. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_avio_response_parse.py +0 -0
  123. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_avio_response_router.py +0 -0
  124. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_backoff.py +0 -0
  125. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_battery_cap_spans_sessions.py +0 -0
  126. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_battery_detection.py +0 -0
  127. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_battery_evidence_corroboration.py +0 -0
  128. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
  129. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_battery_wake_settles_before_the_command.py +0 -0
  130. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ble_gateway_is_gone.py +0 -0
  131. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_bridge_state_sentinels.py +0 -0
  132. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_busy_backoff.py +0 -0
  133. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_camera_closed_session.py +0 -0
  134. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_camera_power.py +0 -0
  135. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_camera_properties.py +0 -0
  136. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_canary_log_names_the_camera.py +0 -0
  137. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
  138. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_cloud_count.py +0 -0
  139. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_cloud_error_log_names_the_exception.py +0 -0
  140. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_cloud_error_severity.py +0 -0
  141. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_cloud_plan.py +0 -0
  142. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_constants_imports_resolve.py +0 -0
  143. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_control_verdicts.py +0 -0
  144. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_controls_ride_the_direct_session.py +0 -0
  145. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_credentials.py +0 -0
  146. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_crypto.py +0 -0
  147. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_declared_properties.py +0 -0
  148. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_deferred_hardening.py +0 -0
  149. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_detection_types.py +0 -0
  150. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_device_cmd_seq_match.py +0 -0
  151. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_device_login_guard.py +0 -0
  152. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_device_user_info_cache.py +0 -0
  153. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
  154. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_direct_ts_keyframe_signal.py +0 -0
  155. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_direct_ts_serve.py +0 -0
  156. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_direct_ts_serve_only_for_http.py +0 -0
  157. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_discover.py +0 -0
  158. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dormant_camera_cleanup.py +0 -0
  159. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_drain_is_cancellable.py +0 -0
  160. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_mux_terminal_write.py +0 -0
  161. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
  162. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_open_pacer.py +0 -0
  163. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_pinning.py +0 -0
  164. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_refusal_after_the_echo.py +0 -0
  165. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_resolution_ack.py +0 -0
  166. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_serve_backoff.py +0 -0
  167. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_serve_decode_skip.py +0 -0
  168. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_serve_ice_wait.py +0 -0
  169. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_serve_open_timeout.py +0 -0
  170. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_skip_signaling_wait.py +0 -0
  171. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_stdout_producer.py +0 -0
  172. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_tap_states_no_reorder.py +0 -0
  173. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_ts_copy_recording.py +0 -0
  174. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_dtls_video_presence.py +0 -0
  175. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_egress_guard.py +0 -0
  176. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_env_seams.py +0 -0
  177. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_event_notice_watch.py +0 -0
  178. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_every_exception_is_exported.py +0 -0
  179. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_feature_probe_needs_a_live_session.py +0 -0
  180. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
  181. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
  182. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_firmware_info.py +0 -0
  183. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_first_media_abandon_rules.py +0 -0
  184. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_futile_keepalive.py +0 -0
  185. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_g711_law_conversion.py +0 -0
  186. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_gate_requires_a_decoded_frame.py +0 -0
  187. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_go2rtc.py +0 -0
  188. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_go2rtc_cli.py +0 -0
  189. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_h264_decode_rate_limit.py +0 -0
  190. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_h264_sps.py +0 -0
  191. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_health_line.py +0 -0
  192. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_health_line_counts_pictures.py +0 -0
  193. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_highport_nomination.py +0 -0
  194. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_hls_ts_end_to_end.py +0 -0
  195. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_hls_ts_wiring.py +0 -0
  196. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_hot_path_rewrites_match_reference.py +0 -0
  197. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_hwaccel_probe.py +0 -0
  198. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ice_config_cache.py +0 -0
  199. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ice_credentials_match_the_app.py +0 -0
  200. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ice_peer_reflexive.py +0 -0
  201. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_idle_release_both_loops.py +0 -0
  202. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ipc_envelope_single_builder.py +0 -0
  203. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_keepalive_renew.py +0 -0
  204. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_keyframe_prompter.py +0 -0
  205. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_control.py +0 -0
  206. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_control_framing.py +0 -0
  207. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_login_accessors.py +0 -0
  208. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
  209. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_retry_short_sessions.py +0 -0
  210. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
  211. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_retry_stops_on_close.py +0 -0
  212. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_lan_sweep_only_with_lights.py +0 -0
  213. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_late_repeats_are_dropped.py +0 -0
  214. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
  215. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_light_active_color_mode.py +0 -0
  216. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_live_session_carries_talk.py +0 -0
  217. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_live_stream_param.py +0 -0
  218. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_live_validate_policy.py +0 -0
  219. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_live_validate_token_refresh.py +0 -0
  220. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_live_video_canary.py +0 -0
  221. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_liveplay_echo_timeout.py +0 -0
  222. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_local_only_controls.py +0 -0
  223. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_log_hygiene.py +0 -0
  224. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_logging_caps.py +0 -0
  225. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_login_connect_deadline.py +0 -0
  226. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_login_reconnect_backoff.py +0 -0
  227. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_loop_break_ends_the_loop.py +0 -0
  228. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_media_counted_only_when_plaintext.py +0 -0
  229. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_media_path_is_reported.py +0 -0
  230. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_media_socket_rcvbuf.py +0 -0
  231. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_media_wait_floor.py +0 -0
  232. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_motion_poll.py +0 -0
  233. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mqtt_client_id_is_exact.py +0 -0
  234. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mqtt_config2.py +0 -0
  235. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mqtt_credential_refetch.py +0 -0
  236. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mqtt_credential_self_heal.py +0 -0
  237. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mqtt_password_not_persisted.py +0 -0
  238. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mqtt_thread_not_orphaned.py +0 -0
  239. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_mypy_new_findings.py +0 -0
  240. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_nack.py +0 -0
  241. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
  242. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_narrow_pc_ice.py +0 -0
  243. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_no_key_material_in_logs.py +0 -0
  244. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
  245. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_no_self_referential_go2rtc.py +0 -0
  246. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_no_unbounded_hex_dumps.py +0 -0
  247. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_no_undefined_names.py +0 -0
  248. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
  249. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_off_subnet_candidate.py +0 -0
  250. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
  251. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_offline_keepalive_pause.py +0 -0
  252. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_on_frame_is_an_av_frame.py +0 -0
  253. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_open_errors_are_aidot_errors.py +0 -0
  254. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_open_fail_logger.py +0 -0
  255. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_open_gate_delay.py +0 -0
  256. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_peer_id_client_type.py +0 -0
  257. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_peerid_reuse.py +0 -0
  258. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_persistent_mqtt.py +0 -0
  259. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_persistent_mqtt_robustness.py +0 -0
  260. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_phase_returns_reach_the_caller.py +0 -0
  261. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_phase_state_is_complete.py +0 -0
  262. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_plaintext_mqtt_refused.py +0 -0
  263. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_post_merge_hardening.py +0 -0
  264. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
  265. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_public_signature_matches_impl.py +0 -0
  266. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_publish_target_readiness.py +0 -0
  267. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_quality_campaign_in_session.py +0 -0
  268. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_reboot_action.py +0 -0
  269. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_recent_recordings.py +0 -0
  270. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_region_allowlist.py +0 -0
  271. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_remb.py +0 -0
  272. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
  273. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
  274. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_resent_frames_are_dropped.py +0 -0
  275. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_resolution_persists.py +0 -0
  276. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_restart_cycle.py +0 -0
  277. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_review_lan_retry_and_graces.py +0 -0
  278. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_rtp_h264.py +0 -0
  279. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_rtsp_publish.py +0 -0
  280. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_rtsp_publish_go2rtc.py +0 -0
  281. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_scripts_importable.py +0 -0
  282. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sctp_in_order.py +0 -0
  283. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sctp_init_ack_tsn.py +0 -0
  284. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sctp_reassembly.py +0 -0
  285. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sctp_sack.py +0 -0
  286. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_card_presence.py +0 -0
  287. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_event_decode.py +0 -0
  288. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_event_probe_payloads.py +0 -0
  289. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_listing.py +0 -0
  290. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback.py +0 -0
  291. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_clock.py +0 -0
  292. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_controls.py +0 -0
  293. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_dtls.py +0 -0
  294. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_end.py +0 -0
  295. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_entry.py +0 -0
  296. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_playback_open.py +0 -0
  297. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sd_thumbnails_and_delete.py +0 -0
  298. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_avio_dispatch.py +0 -0
  299. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_bridge_break_gate.py +0 -0
  300. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
  301. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_connection_mode.py +0 -0
  302. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_fast_liveplay.py +0 -0
  303. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
  304. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_first_media_stall_report.py +0 -0
  305. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_ice_teardown.py +0 -0
  306. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_idle_release.py +0 -0
  307. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_nack_bridge.py +0 -0
  308. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_offer_video_pin.py +0 -0
  309. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_open_cleanup.py +0 -0
  310. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
  311. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_open_yields_the_loop.py +0 -0
  312. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_pinned_codec_retry.py +0 -0
  313. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_sctp_abort.py +0 -0
  314. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_serve_audio.py +0 -0
  315. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_serve_cmd.py +0 -0
  316. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_serve_stderr_drain.py +0 -0
  317. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_sprop.py +0 -0
  318. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_talk.py +0 -0
  319. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_teardown_exit_log.py +0 -0
  320. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_terminal_ack.py +0 -0
  321. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_terminal_ack_latency.py +0 -0
  322. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
  323. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdes_watchdog.py +0 -0
  324. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdp_narrowing_properties.py +0 -0
  325. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sdp_payload_type_narrowing.py +0 -0
  326. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_security_hardening.py +0 -0
  327. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
  328. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serializable_login_info.py +0 -0
  329. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
  330. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_input_timeout.py +0 -0
  331. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_loop_releases_on_error.py +0 -0
  332. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_loss_tolerance.py +0 -0
  333. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_pt_respects_the_pin.py +0 -0
  334. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_relay.py +0 -0
  335. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
  336. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_session_mode_seq.py +0 -0
  337. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_session_stats.py +0 -0
  338. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_session_stop_twice.py +0 -0
  339. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_set_dev_attr_payload.py +0 -0
  340. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_settings_registry.py +0 -0
  341. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_shared_house_seam.py +0 -0
  342. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
  343. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_skip_guard.py +0 -0
  344. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sleep_camera.py +0 -0
  345. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_snapshot_cancellation.py +0 -0
  346. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_speak.py +0 -0
  347. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sprop_capture_gate.py +0 -0
  348. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sprop_staleness.py +0 -0
  349. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sprop_unstable_public.py +0 -0
  350. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
  351. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_srtp_rx_rekey.py +0 -0
  352. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_srtp_tx_key_note.py +0 -0
  353. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stable_terminal_id.py +0 -0
  354. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stall_nudge_policy.py +0 -0
  355. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
  356. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
  357. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
  358. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
  359. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stall_reports_reach_the_artifact.py +0 -0
  360. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_status_and_trace_channels.py +0 -0
  361. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_cap.py +0 -0
  362. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_drain_ownership.py +0 -0
  363. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_health.py +0 -0
  364. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_idle.py +0 -0
  365. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_settings.py +0 -0
  366. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_slot_cap.py +0 -0
  367. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stream_teardown.py +0 -0
  368. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_stun_attr_single_builder.py +0 -0
  369. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_swallowed_exception_names.py +0 -0
  370. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_talk.py +0 -0
  371. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
  372. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_tap_to_mux_end_to_end.py +0 -0
  373. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_terminal_ack.py +0 -0
  374. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_token_file_robustness.py +0 -0
  375. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_token_refresh.py +0 -0
  376. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_transport_failure_reporting.py +0 -0
  377. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ts_fanout.py +0 -0
  378. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_ts_tee.py +0 -0
  379. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_turn_create_permission.py +0 -0
  380. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_turn_target_shared.py +0 -0
  381. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_unbind_notice.py +0 -0
  382. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
  383. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_upstream_compat.py +0 -0
  384. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_upstream_seam_adapter.py +0 -0
  385. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_upstream_secrets_redacted.py +0 -0
  386. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_validator_shares_one_token.py +0 -0
  387. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_vendored_aiortc_integrity.py +0 -0
  388. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_video_presence_needs_a_keyframe.py +0 -0
  389. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_video_profile_log.py +0 -0
  390. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_video_pts_dts.py +0 -0
  391. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_video_ts_unwrap.py +0 -0
  392. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_viewer_check_throttle.py +0 -0
  393. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_viewer_presence.py +0 -0
  394. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_viewer_present_push_mode.py +0 -0
  395. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_wait_or_event.py +0 -0
  396. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_wake_gate_camera_evidence.py +0 -0
  397. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.1}/tests/test_wake_readiness_retry.py +0 -0
  398. {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.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.4.1
3
+ Version: 1.5.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
@@ -166,6 +166,13 @@ session = await device_client.async_open_webrtc_stream(
166
166
  await session.stop()
167
167
  ```
168
168
 
169
+ `.ts` and `.mp4` (also `.m4v`, `.mov`) recordings copy the camera's own video and
170
+ audio without re-encoding. On a DTLS camera an `.mp4` is recorded as an
171
+ MPEG-TS beside it (`<path>.ts`, never over an existing file) and becomes a
172
+ faststart MP4 when the session stops, after the camera is released (the `.ts`
173
+ is kept if that step fails); SDES cameras write it directly with ffmpeg. Other
174
+ containers re-encode and can drop frames.
175
+
169
176
  `on_frame` receives a PyAV `av.VideoFrame` and is **DTLS-only**: SDES cameras
170
177
  (A001513, A001064) are decoded out of process, so it never fires for them and
171
178
  no error is raised.
@@ -474,16 +481,46 @@ when one is left permissive. `AIDOT_ALLOW_PLAINTEXT_MQTT` and
474
481
  | `AIDOT_EXTRA_REGIONS` | Comma-separated account regions to accept beyond `us`, `eu` and `jp`; an unknown region is refused with `AidotUnknownRegion`. Each entry must be a hostname label. | unset |
475
482
  | `AIDOT_ALLOW_LAN_SERVE` | Silence the warning when decrypted media is served on a non-loopback bind (e.g. `0.0.0.0`), where any LAN host can read it. | unset (warn) |
476
483
  | `AIDOT_CRED_KEY_FILE` | Fernet key file for stored credentials; point it outside the config dir. Default credentials path only (ignored with an explicit `creds_path`). | `$XDG_CONFIG_HOME/aidot/.key` (else `~/.config/aidot/.key`) |
477
- | `AIDOT_DTLS_PINNED_FP` | Pin DTLS cameras' certificate to this `sha-256` fingerprint (case and `:` ignored). Set, any other certificate, or none, fails the handshake. | unset (not independently verified; warns) |
484
+ | `AIDOT_DTLS_PINNED_FP` | Pin every DTLS camera's certificate to this one `sha-256` fingerprint (case and `:` ignored). Set, any other certificate, or none, fails the handshake. Wins over the per-camera pins below. | unset (per-camera pins) |
485
+ | `AIDOT_DTLS_PIN_LEARN` | Learn each DTLS camera's certificate and pin it (see below). `0` turns learning off: certificates are then accepted unverified, with a warning, unless `AIDOT_DTLS_PINNED_FP` is set. | `1` (on) |
478
486
  | `AIDOT_SDES_HOLEPUNCH_HOST` | NAT hole-punch target when the cloud supplies no TURN entry. Unset uses a hardcoded vendor TURN host; empty disables that fallback. | unset (vendor host + warn) |
479
487
 
480
- **Without `AIDOT_DTLS_PINNED_FP`, a DTLS camera's (A000088's) certificate is
481
- not independently verified.** The camera echoes our own fingerprint back, or
482
- sends an empty one, in which case whatever it presents is accepted with a
483
- warning; a fingerprint it does send arrives over the same cloud signaling. The
484
- media is encrypted but not authenticated against something standing in for the
485
- camera. With a pin, every DTLS open checks the presented certificate and fails
486
- closed, logging the fingerprint on a mismatch. The pin applies to every DTLS
487
- camera the process opens, so it suits a one-camera process (the CLI) or
488
- cameras that share a certificate. SDES cameras key their media through
489
- signaling and have no certificate to check.
488
+ **A DTLS camera's (A000088's) certificate cannot be checked against signaling.**
489
+ The camera echoes our own fingerprint back, or sends an empty one, and any
490
+ fingerprint it does send arrives over the same cloud signaling. So the library
491
+ pins each camera's certificate on first use instead:
492
+
493
+ - The first certificate a camera presents is recorded. Once the same
494
+ certificate has been presented on 3 handshakes in a row, it is pinned, and
495
+ from then on any other certificate, or none, fails the handshake: the open
496
+ raises `AidotDtlsPinMismatch` and `stream_health.last_end_reason` reads
497
+ `dtls_pin_mismatch`. The log names the camera and the first 8 hex digits of
498
+ each fingerprint.
499
+ - A certificate that changes before it is pinned replaces the recorded one and
500
+ learning starts again, so a camera that makes a new certificate for every
501
+ session is never locked out; it streams unverified, as before, with one
502
+ warning.
503
+ - After a camera is reset or replaced, call
504
+ `CameraDeviceClient.forget_dtls_pin()` and its next open learns the new
505
+ certificate. `CameraDeviceClient.dtls_pin` shows the current record.
506
+ - Pins live in the client's `dtls_pin_store`. By default that is in memory and
507
+ lasts as long as the `CameraClient`; pass
508
+ `CameraClient(..., dtls_pin_store=...)` to keep them across restarts (see
509
+ below).
510
+
511
+ Until a camera's pin is learned, and on a camera whose certificate keeps
512
+ changing, its media is encrypted but not authenticated against something
513
+ standing in for the camera. `AIDOT_DTLS_PINNED_FP` checks every DTLS camera
514
+ against one fingerprint from the first open, so it suits a one-camera process
515
+ (the CLI) or cameras that share a certificate. SDES cameras key their media
516
+ through signaling and have no certificate to check.
517
+
518
+ A pin store is any object with three synchronous methods, called from inside
519
+ the handshake: `get(device_id)` returns the record last stored for that
520
+ camera or `None`, `set(device_id, record)` stores one, and `delete(device_id)`
521
+ drops it. A record is a small JSON-safe dict; store it as it comes. A host
522
+ with asynchronous storage keeps the records in memory and schedules its own
523
+ save from `set` and `delete`. `MemoryDtlsPinStore(records)` is the default
524
+ and can be seeded with records saved earlier; its `as_dict()` returns them
525
+ all. A store that fails to read or write is logged and treated as empty, so a
526
+ storage error never stops a stream.
@@ -116,6 +116,13 @@ session = await device_client.async_open_webrtc_stream(
116
116
  await session.stop()
117
117
  ```
118
118
 
119
+ `.ts` and `.mp4` (also `.m4v`, `.mov`) recordings copy the camera's own video and
120
+ audio without re-encoding. On a DTLS camera an `.mp4` is recorded as an
121
+ MPEG-TS beside it (`<path>.ts`, never over an existing file) and becomes a
122
+ faststart MP4 when the session stops, after the camera is released (the `.ts`
123
+ is kept if that step fails); SDES cameras write it directly with ffmpeg. Other
124
+ containers re-encode and can drop frames.
125
+
119
126
  `on_frame` receives a PyAV `av.VideoFrame` and is **DTLS-only**: SDES cameras
120
127
  (A001513, A001064) are decoded out of process, so it never fires for them and
121
128
  no error is raised.
@@ -424,16 +431,46 @@ when one is left permissive. `AIDOT_ALLOW_PLAINTEXT_MQTT` and
424
431
  | `AIDOT_EXTRA_REGIONS` | Comma-separated account regions to accept beyond `us`, `eu` and `jp`; an unknown region is refused with `AidotUnknownRegion`. Each entry must be a hostname label. | unset |
425
432
  | `AIDOT_ALLOW_LAN_SERVE` | Silence the warning when decrypted media is served on a non-loopback bind (e.g. `0.0.0.0`), where any LAN host can read it. | unset (warn) |
426
433
  | `AIDOT_CRED_KEY_FILE` | Fernet key file for stored credentials; point it outside the config dir. Default credentials path only (ignored with an explicit `creds_path`). | `$XDG_CONFIG_HOME/aidot/.key` (else `~/.config/aidot/.key`) |
427
- | `AIDOT_DTLS_PINNED_FP` | Pin DTLS cameras' certificate to this `sha-256` fingerprint (case and `:` ignored). Set, any other certificate, or none, fails the handshake. | unset (not independently verified; warns) |
434
+ | `AIDOT_DTLS_PINNED_FP` | Pin every DTLS camera's certificate to this one `sha-256` fingerprint (case and `:` ignored). Set, any other certificate, or none, fails the handshake. Wins over the per-camera pins below. | unset (per-camera pins) |
435
+ | `AIDOT_DTLS_PIN_LEARN` | Learn each DTLS camera's certificate and pin it (see below). `0` turns learning off: certificates are then accepted unverified, with a warning, unless `AIDOT_DTLS_PINNED_FP` is set. | `1` (on) |
428
436
  | `AIDOT_SDES_HOLEPUNCH_HOST` | NAT hole-punch target when the cloud supplies no TURN entry. Unset uses a hardcoded vendor TURN host; empty disables that fallback. | unset (vendor host + warn) |
429
437
 
430
- **Without `AIDOT_DTLS_PINNED_FP`, a DTLS camera's (A000088's) certificate is
431
- not independently verified.** The camera echoes our own fingerprint back, or
432
- sends an empty one, in which case whatever it presents is accepted with a
433
- warning; a fingerprint it does send arrives over the same cloud signaling. The
434
- media is encrypted but not authenticated against something standing in for the
435
- camera. With a pin, every DTLS open checks the presented certificate and fails
436
- closed, logging the fingerprint on a mismatch. The pin applies to every DTLS
437
- camera the process opens, so it suits a one-camera process (the CLI) or
438
- cameras that share a certificate. SDES cameras key their media through
439
- signaling and have no certificate to check.
438
+ **A DTLS camera's (A000088's) certificate cannot be checked against signaling.**
439
+ The camera echoes our own fingerprint back, or sends an empty one, and any
440
+ fingerprint it does send arrives over the same cloud signaling. So the library
441
+ pins each camera's certificate on first use instead:
442
+
443
+ - The first certificate a camera presents is recorded. Once the same
444
+ certificate has been presented on 3 handshakes in a row, it is pinned, and
445
+ from then on any other certificate, or none, fails the handshake: the open
446
+ raises `AidotDtlsPinMismatch` and `stream_health.last_end_reason` reads
447
+ `dtls_pin_mismatch`. The log names the camera and the first 8 hex digits of
448
+ each fingerprint.
449
+ - A certificate that changes before it is pinned replaces the recorded one and
450
+ learning starts again, so a camera that makes a new certificate for every
451
+ session is never locked out; it streams unverified, as before, with one
452
+ warning.
453
+ - After a camera is reset or replaced, call
454
+ `CameraDeviceClient.forget_dtls_pin()` and its next open learns the new
455
+ certificate. `CameraDeviceClient.dtls_pin` shows the current record.
456
+ - Pins live in the client's `dtls_pin_store`. By default that is in memory and
457
+ lasts as long as the `CameraClient`; pass
458
+ `CameraClient(..., dtls_pin_store=...)` to keep them across restarts (see
459
+ below).
460
+
461
+ Until a camera's pin is learned, and on a camera whose certificate keeps
462
+ changing, its media is encrypted but not authenticated against something
463
+ standing in for the camera. `AIDOT_DTLS_PINNED_FP` checks every DTLS camera
464
+ against one fingerprint from the first open, so it suits a one-camera process
465
+ (the CLI) or cameras that share a certificate. SDES cameras key their media
466
+ through signaling and have no certificate to check.
467
+
468
+ A pin store is any object with three synchronous methods, called from inside
469
+ the handshake: `get(device_id)` returns the record last stored for that
470
+ camera or `None`, `set(device_id, record)` stores one, and `delete(device_id)`
471
+ drops it. A record is a small JSON-safe dict; store it as it comes. A host
472
+ with asynchronous storage keeps the records in memory and schedules its own
473
+ save from `set` and `delete`. `MemoryDtlsPinStore(records)` is the default
474
+ and can be seeded with records saved earlier; its `as_dict()` returns them
475
+ all. A store that fails to read or write is logged and treated as empty, so a
476
+ storage error never stops a stream.
@@ -20,6 +20,7 @@ from .settings import StreamSettings
20
20
  # not drag in av or aiortc, so a plain (non-[webrtc]) install still imports.
21
21
  from .camera.models import CameraDeviceInformation, CameraStatusData
22
22
  from .camera.sdes import SdesSession
23
+ from .camera.dtls_pins import DtlsPinStore, MemoryDtlsPinStore
23
24
  from .camera.stream_health import StreamHealth
24
25
  from .camera.webrtc import WebRTCSession
25
26
  from .discover import CameraDiscover, Discover
@@ -30,6 +31,7 @@ from .exceptions import (
30
31
  AidotCameraNoMedia,
31
32
  AidotCameraNotReady,
32
33
  AidotCameraWrongCodec,
34
+ AidotDtlsPinMismatch,
33
35
  AidotError,
34
36
  AidotFfmpegMissing,
35
37
  AidotIceNotEstablished,
@@ -172,6 +174,7 @@ __all__ = [
172
174
  "AidotCameraNotReady",
173
175
  "AidotCameraWrongCodec",
174
176
  "AidotClient",
177
+ "AidotDtlsPinMismatch",
175
178
  "AidotError",
176
179
  "AidotFfmpegMissing",
177
180
  "AidotIceNotEstablished",
@@ -196,9 +199,11 @@ __all__ = [
196
199
  "DeviceInformation",
197
200
  "DeviceStatusData",
198
201
  "Discover",
202
+ "DtlsPinStore",
199
203
  "HTTPError",
200
204
  "InvalidHost",
201
205
  "InvalidURL",
206
+ "MemoryDtlsPinStore",
202
207
  "RtspPublishError",
203
208
  "SdesSession",
204
209
  "StreamHealth",
@@ -19,6 +19,7 @@ from ..exceptions import (
19
19
  AidotCameraNoMedia,
20
20
  AidotCameraNotReady,
21
21
  AidotCameraWrongCodec,
22
+ AidotDtlsPinMismatch,
22
23
  AidotIceNotEstablished,
23
24
  )
24
25
  from ..const import APP_ID as _AIDOT_APP_ID
@@ -98,6 +99,7 @@ from .protocol import ( # noqa: F401 - used here and/or by the webrtc_open mixi
98
99
  _grab_free_port,
99
100
  _tcp_table_has_established_on_port,
100
101
  _idle_release_due,
102
+ _busy_yield_due,
101
103
  _battery_cap_spans_sessions_due,
102
104
  _battery_unknown_release_s,
103
105
  _stream_startup_grace_s,
@@ -161,6 +163,26 @@ def _is_transient_cloud_error(exc: BaseException) -> bool:
161
163
  return isinstance(exc, tuple(transient))
162
164
 
163
165
 
166
+ #: How long _async_get_mqtt_url may keep failing transiently (DNS, connect,
167
+ #: timeout) before its log escalates from WARNING to ERROR. A box-side DNS blip
168
+ #: clears in seconds; a minute of it is an outage worth an ERROR.
169
+ _MQTT_URL_TRANSIENT_GRACE_S = 60.0
170
+ #: ...and only once that many failures in a row have been seen: two separate
171
+ #: blips on a camera released between them (nothing retried) are not an
172
+ #: outage, while a real outage keeps its callers retrying and gets there.
173
+ _MQTT_URL_RUN_MIN_FAILURES = 3
174
+
175
+
176
+ def _mqtt_url_run_gap_s() -> float:
177
+ """Transient failures further apart than this are separate runs, not one
178
+ long outage: only a success ends a run otherwise, and a camera nobody
179
+ opens again (idle release, offline pause) would carry its last failure
180
+ for hours. Half again the slowest open retry - the serve pacer's cap or
181
+ the offline probe interval, whichever is longer - so an outage retried at
182
+ that pace stays one run."""
183
+ return 1.5 * max(_DTLS_RETRY_CAP_S, float(_OFFLINE_PROBE_S or 0))
184
+
185
+
164
186
  # Offline keepalive pause (see CameraMixin._backoff_or_offline_pause): while the
165
187
  # cloud explicitly reports a device offline, failed-open retries re-check the
166
188
  # flag every RECHECK seconds and only probe a real open every PROBE seconds,
@@ -1619,6 +1641,11 @@ class _DtlsServeLoopState:
1619
1641
  # prepare_session, serve_cycle
1620
1642
  _viewer_seen_dtls: "Any" = dataclasses.field(init=False)
1621
1643
  _grace_dtls: "Any" = dataclasses.field(init=False) # prepare_session
1644
+ # the loop, serve_cycle, open_attempt: the last time a viewer was known
1645
+ # present in any session of this keepalive (its start until one was), and
1646
+ # whether one ever was. Read by a busy refusal (_busy_and_unwatched).
1647
+ _last_known_viewer: "Any" = dataclasses.field(init=False)
1648
+ _ever_viewed: "Any" = dataclasses.field(init=False)
1622
1649
 
1623
1650
 
1624
1651
  def _open_failure_reason(exc: BaseException) -> str:
@@ -1631,9 +1658,50 @@ def _open_failure_reason(exc: BaseException) -> str:
1631
1658
  return _sh.END_WRONG_CODEC
1632
1659
  if isinstance(exc, AidotCameraNoMedia):
1633
1660
  return _sh.END_NO_MEDIA
1661
+ if isinstance(exc, AidotDtlsPinMismatch):
1662
+ return _sh.END_DTLS_PIN_MISMATCH
1634
1663
  return _sh.END_OPEN_FAILED
1635
1664
 
1636
1665
 
1666
+ async def _busy_and_unwatched(
1667
+ self, serve_url: Any, last_known_viewer: float, ever_viewed: bool, now: float
1668
+ ) -> "tuple[bool, bool]":
1669
+ """Whether a busy refusal should end this keepalive (``_busy_yield_due``),
1670
+ and whether a viewer was found watching.
1671
+
1672
+ Called when the camera refused an open as busy: its viewers are all taken
1673
+ by something else. Asks whether anyone here is watching only when a
1674
+ release window is set, so a camera kept warm for good (window <= 0)
1675
+ retries exactly as before with no extra queries, and a stdout serve
1676
+ (go2rtc owns its lifecycle, no serve port) is never asked.
1677
+ ``last_known_viewer`` is on the clock ``now`` is read from. A viewer found
1678
+ here counts for the keepalive as one found while serving does, so the
1679
+ caller records it.
1680
+ """
1681
+ idle = self._resolve_idle_secs()
1682
+ if idle <= 0:
1683
+ return False, False
1684
+ port = _sdes_serve_port(serve_url)
1685
+ if port is None:
1686
+ return False, False
1687
+ present = await self._viewer_present(port)
1688
+ if present:
1689
+ return False, True
1690
+ return (
1691
+ _busy_yield_due(
1692
+ present,
1693
+ last_known_viewer,
1694
+ now,
1695
+ idle,
1696
+ battery=bool(getattr(self, "is_battery_camera", False)),
1697
+ unknown_cap_s=_battery_unknown_release_s(),
1698
+ viewer_seen=ever_viewed,
1699
+ startup_grace_s=_stream_startup_grace_s(),
1700
+ ),
1701
+ False,
1702
+ )
1703
+
1704
+
1637
1705
  def _backoff_wait_s(dev: Any, delay: float) -> float:
1638
1706
  """The longest ``_backoff_or_offline_pause(delay)`` will wait: ``delay``,
1639
1707
  or the offline probe interval when it will hold for the camera to come
@@ -1694,6 +1762,29 @@ async def _dtls_serve_loop_open_attempt(
1694
1762
  except asyncio.CancelledError:
1695
1763
  return _PhaseReturn(None)
1696
1764
  except Exception as exc:
1765
+ # A busy refusal with nobody here watching ends the keepalive instead
1766
+ # of a retry that would take the camera back from the viewer that
1767
+ # has it (the AiDot app, an Alexa screen) the moment it lets go.
1768
+ if isinstance(exc, AidotCameraBusy):
1769
+ _now = ps.loop.time()
1770
+ try:
1771
+ _yield, _watched = await _busy_and_unwatched(
1772
+ self, ps.serve_url, ps._last_known_viewer, ps._ever_viewed, _now
1773
+ )
1774
+ except asyncio.CancelledError:
1775
+ return _PhaseReturn(None)
1776
+ if _watched:
1777
+ ps._last_known_viewer = _now
1778
+ ps._ever_viewed = True
1779
+ if _yield:
1780
+ _LOGGER.info(
1781
+ "DTLS serve: %s is busy (%s) and nobody here is watching"
1782
+ " - letting it go until the next view",
1783
+ self.device_id,
1784
+ exc,
1785
+ )
1786
+ await self._go_dormant(release_url=True, why="busy with no viewer")
1787
+ return _PhaseReturn(None)
1697
1788
  # Failed opens are paced on one pacer (see _DTLS_RETRY_BASE_S), with
1698
1789
  # two exceptions that leave it untouched. A busy refusal (another
1699
1790
  # viewer holds the camera's single slot) waits a flat
@@ -2106,6 +2197,8 @@ async def _dtls_serve_loop_serve_cycle(
2106
2197
  if _watching:
2107
2198
  _last_viewer_dtls = _now
2108
2199
  ps._viewer_seen_dtls = True
2200
+ ps._last_known_viewer = _now
2201
+ ps._ever_viewed = True
2109
2202
  elif _watching is False:
2110
2203
  if _now - _last_viewer_dtls > _window_dtls:
2111
2204
  ps.idle_release = True
@@ -2318,6 +2411,10 @@ async def _dtls_serve_loop_session_end(
2318
2411
  return None
2319
2412
  _n = ps._session_pacer.attempt
2320
2413
  _end_reason = _dtls_end_reason(str(ps._session_end_reason), _camera_close)
2414
+ if getattr(self, "_dtls_pin_refused", False):
2415
+ # The handshake was refused on the pin after the open returned, so
2416
+ # the connection failed rather than the open: say why.
2417
+ _end_reason = _sh.END_DTLS_PIN_MISMATCH
2321
2418
  if _wait is None:
2322
2419
  _sh._tracker_of(self).ending(_end_reason)
2323
2420
  _LOGGER.warning(
@@ -2407,6 +2504,9 @@ class _SdesKeepaliveState:
2407
2504
  # the loop, open_attempt, after_session
2408
2505
  _not_ready_burst: "Any" = dataclasses.field(init=False)
2409
2506
  _last_known_viewer: "Any" = dataclasses.field(init=False) # the loop, watch_session
2507
+ # the loop, watch_session, open_attempt: a viewer was known present in
2508
+ # some session of this keepalive. Read by a busy refusal.
2509
+ _ever_viewed: "Any" = dataclasses.field(init=False)
2410
2510
  session: "Any" = dataclasses.field(init=False) # open_attempt
2411
2511
  _idle_secs: "Any" = dataclasses.field(init=False) # prepare_session
2412
2512
  _started_at: "Any" = dataclasses.field(init=False) # prepare_session
@@ -2485,6 +2585,32 @@ async def _sdes_keepalive_open_attempt(
2485
2585
  #
2486
2586
  # That release window is now measured rather than assumed: 8s is
2487
2587
  # enough, 2s is not. See _BUSY_BACKOFF_S.
2588
+ #
2589
+ # With nobody here watching, stop instead: a retry would take the
2590
+ # camera back from the viewer that has it the moment it lets go.
2591
+ _now = time.monotonic()
2592
+ try:
2593
+ _yield, _watched = await _busy_and_unwatched(
2594
+ self,
2595
+ self._keepalive_rtsp_url,
2596
+ ps._last_known_viewer,
2597
+ ps._ever_viewed,
2598
+ _now,
2599
+ )
2600
+ except asyncio.CancelledError:
2601
+ return _PhaseReturn(None)
2602
+ if _watched:
2603
+ ps._last_known_viewer = _now
2604
+ ps._ever_viewed = True
2605
+ if _yield:
2606
+ _LOGGER.info(
2607
+ "SDES keepalive: camera %s is busy (%s) and nobody here is"
2608
+ " watching - letting it go until the next view",
2609
+ self.device_id,
2610
+ busy,
2611
+ )
2612
+ await self._go_dormant(release_url=True, why="busy with no viewer")
2613
+ return _PhaseReturn(None)
2488
2614
  _LOGGER.warning(
2489
2615
  "SDES keepalive: camera %s refused the stream (%s) - "
2490
2616
  "backing off %.0fs so its sessions can be released",
@@ -2713,6 +2839,7 @@ async def _sdes_keepalive_watch_session(
2713
2839
  ps._last_consumer = time.monotonic()
2714
2840
  ps._last_known_viewer = ps._last_consumer
2715
2841
  ps._viewer_seen = True
2842
+ ps._ever_viewed = True
2716
2843
  elif _idle_release_due(
2717
2844
  _present,
2718
2845
  # Unknown counts across reopens; a known absence
@@ -2936,6 +3063,14 @@ class CameraMixin(
2936
3063
  #: and defaults only). Read through ``settings.stream_settings_of``.
2937
3064
  stream_settings = None
2938
3065
 
3066
+ #: The account client's ``DtlsPinStore`` (``camera/dtls_pins.py``), or
3067
+ #: None: then this camera's DTLS certificate is not learned or pinned.
3068
+ dtls_pin_store = None
3069
+
3070
+ #: Set when a DTLS handshake on the latest open was refused on a pin;
3071
+ #: cleared at the start of each open. Read to name the failure.
3072
+ _dtls_pin_refused = False
3073
+
2939
3074
  # MQTT credential state, defaulted at class level so the credential path is
2940
3075
  # safe on any client whose __init__ did not run to completion.
2941
3076
  _mqtt_credential_refresh_cb = None
@@ -3327,6 +3462,35 @@ class CameraMixin(
3327
3462
  and the reboot guard ask this same question."""
3328
3463
  return _cloud_reports_offline(self)
3329
3464
 
3465
+ @property
3466
+ def dtls_pin(self) -> "Optional[dict]":
3467
+ """This camera's learned DTLS pin record, or None.
3468
+
3469
+ A copy of what the pin store holds: ``fingerprint`` (lowercase hex),
3470
+ ``seen`` (handshakes in a row that presented it), ``enforced`` (True
3471
+ once a different certificate fails the handshake) and ``changes``
3472
+ (how often the certificate changed before it was pinned). Reading it
3473
+ sends nothing. ``AIDOT_DTLS_PINNED_FP``, when set, wins over it.
3474
+ """
3475
+ store = self.dtls_pin_store
3476
+ if store is None:
3477
+ return None
3478
+ record = store.get(str(self.device_id))
3479
+ return dict(record) if isinstance(record, dict) else None
3480
+
3481
+ def forget_dtls_pin(self) -> None:
3482
+ """Drop this camera's learned DTLS pin.
3483
+
3484
+ For a camera that was reset or replaced and now presents a new
3485
+ certificate: its next open records the new one and pins it again
3486
+ after a few handshakes. Does nothing without a pin store, and does
3487
+ not touch ``AIDOT_DTLS_PINNED_FP``.
3488
+ """
3489
+ store = self.dtls_pin_store
3490
+ if store is not None:
3491
+ store.delete(str(self.device_id))
3492
+ self._dtls_pin_refused = False
3493
+
3330
3494
  @property
3331
3495
  def stream_health(self) -> _sh.StreamHealth:
3332
3496
  """What this camera's background stream is doing right now.
@@ -3743,16 +3907,26 @@ class CameraMixin(
3743
3907
  await asyncio.sleep(min(10.0, max(0.0, end - loop.time())))
3744
3908
 
3745
3909
  async def async_sleep_camera(self, retries: int = 2) -> bool:
3746
- """Send a battery camera back to sleep now, instead of ~25 s after its
3747
- last keep-alive.
3910
+ """Ask the cloud to put a battery camera to sleep - which, as measured,
3911
+ does not make it sleep any sooner.
3748
3912
 
3749
3913
  The same cloud endpoint as :meth:`async_wake_camera` with
3750
- ``status: "sleep"``: the app sends it when the user leaves a battery
3751
- camera's live view. Useful after a scheduled recording, when nobody
3752
- will watch again soon. A camera that is streaming to someone keeps
3753
- its session until that ends; this only stops the camera waiting up for
3754
- a viewer that is not coming. Non-battery cameras never sleep, so this
3755
- is a no-op for them.
3914
+ ``status: "sleep"``, the request the app sends when the user leaves a
3915
+ battery camera's live view. The cloud accepts it (HTTP 200), but on an
3916
+ A001513 the camera still sleeps when its keep-alive window runs out,
3917
+ exactly as if nothing had been sent. Measured 2026-11-20 on three
3918
+ A001513 cameras against the camera's own ``sleepStatus`` report: about
3919
+ 28 s after the last ``setKeepAliveTime`` renewal whether this was sent
3920
+ or not. Nor did the variants: the web app's body (``{"status"}`` only),
3921
+ the same request on the v32 API host, the MQTT
3922
+ ``lowPowerActiveStateReq`` in either envelope (its
3923
+ ``lowPowerActiveStateResp`` comes from the cloud, not the camera), all
3924
+ of them at once, or ``setKeepAliveTime`` with 0.
3925
+
3926
+ Kept for app parity and in case another model or firmware honours it.
3927
+ To spend less battery, wake a battery camera less often; nothing sent
3928
+ here shortens a wake. Returns True if the cloud accepted the request.
3929
+ A no-op (True) on non-battery cameras, which never sleep.
3756
3930
  """
3757
3931
  return await self._async_low_power("sleep", retries)
3758
3932
 
@@ -3859,15 +4033,71 @@ class CameraMixin(
3859
4033
  if data.get("ip") and isinstance(_raw_ref, dict) and "ip" not in _raw_ref:
3860
4034
  _raw_ref["ip"] = data["ip"]
3861
4035
 
4036
+ self._mqtt_url_fail_since = self._mqtt_url_fail_last = None
4037
+ self._mqtt_url_fail_count = 0
3862
4038
  return self._mqtt_url
3863
4039
 
3864
4040
  except Exception as exc:
3865
- _LOGGER.error("_async_get_mqtt_url failed: %r", exc)
4041
+ transient = _is_transient_cloud_error(exc)
3866
4042
  # The mqttConfig2 broker stands on its own when only
3867
- # getServerUrlConfig failed; when that lookup is what failed,
3868
- # _cfg2_url is its exception, not a URL.
4043
+ # getServerUrlConfig failed (when that lookup is what failed,
4044
+ # _cfg2_url is its exception, not a URL).
4045
+ accepted = None
3869
4046
  if isinstance(_cfg2_url, str) and _cfg2_url:
3870
- return self._accept_mqtt_url(_cfg2_url, "mqttConfig2")
4047
+ accepted = self._accept_mqtt_url(_cfg2_url, "mqttConfig2")
4048
+ if accepted:
4049
+ self._mqtt_url_fail_since = None
4050
+ self._mqtt_url_fail_last = None
4051
+ self._mqtt_url_fail_count = 0
4052
+ # The call succeeds. A transient lookup failure is then
4053
+ # worth a WARNING; anything unexpected stays an ERROR,
4054
+ # fallback or not. Its own prefix: this is not a failure
4055
+ # of the call.
4056
+ (_LOGGER.warning if transient else _LOGGER.error)(
4057
+ "getServerUrlConfig failed: %r; using the mqttConfig2 broker",
4058
+ exc,
4059
+ )
4060
+ return accepted
4061
+ # Refused (a non-TLS broker): that, not the network, is why
4062
+ # this returns None - an ERROR on every call, as before.
4063
+ _LOGGER.error(
4064
+ "_async_get_mqtt_url failed: %r (and the mqttConfig2 broker"
4065
+ " was refused)",
4066
+ exc,
4067
+ )
4068
+ return None
4069
+ # A DNS or connect blip on the box fails this one call, and its
4070
+ # caller retries on its own pacing; that is a WARNING. Only a run
4071
+ # of transient failures - _MQTT_URL_RUN_MIN_FAILURES or more, over
4072
+ # at least _MQTT_URL_TRANSIENT_GRACE_S - or any failure not known
4073
+ # to be transient is an ERROR. Measured 2026-11-26: four cameras
4074
+ # opened inside 8 s while the box briefly could not resolve the
4075
+ # cloud host, and four ERROR lines paged the soak watcher. Same
4076
+ # prefix at either level, so one grep finds every occurrence.
4077
+ if not transient:
4078
+ # Not part of a run of transient failures, and never quiet.
4079
+ _LOGGER.error("_async_get_mqtt_url failed: %r", exc)
4080
+ return None
4081
+ now = time.monotonic()
4082
+ since = getattr(self, "_mqtt_url_fail_since", None)
4083
+ last = getattr(self, "_mqtt_url_fail_last", None)
4084
+ count = getattr(self, "_mqtt_url_fail_count", 0)
4085
+ if since is None or last is None or now - last > _mqtt_url_run_gap_s():
4086
+ since, count = now, 0
4087
+ self._mqtt_url_fail_since = since
4088
+ count += 1
4089
+ self._mqtt_url_fail_last, self._mqtt_url_fail_count = now, count
4090
+ outage = (
4091
+ count >= _MQTT_URL_RUN_MIN_FAILURES
4092
+ and now - since >= _MQTT_URL_TRANSIENT_GRACE_S
4093
+ )
4094
+ (_LOGGER.error if outage else _LOGGER.warning)(
4095
+ "_async_get_mqtt_url failed: %r (transient, failure %d,"
4096
+ " failing for %.0f s)",
4097
+ exc,
4098
+ count,
4099
+ now - since,
4100
+ )
3871
4101
  return None
3872
4102
 
3873
4103
  def _accept_mqtt_url(self, url: str, source: str) -> Optional[str]:
@@ -6771,6 +7001,7 @@ class CameraMixin(
6771
7001
  # reached it, re-waking a battery camera for as long as the cause
6772
7002
  # lasted. See _battery_cap_spans_sessions_due.
6773
7003
  ps._last_known_viewer = time.monotonic()
7004
+ ps._ever_viewed = False
6774
7005
 
6775
7006
  while self._streaming_active:
6776
7007
  _o = await _sdes_keepalive_open_attempt(self, ps)
@@ -7597,6 +7828,8 @@ class CameraMixin(
7597
7828
  ps._last_open_at = 0.0 # monotonic of the previous open attempt (0 = none yet)
7598
7829
  ps._not_ready_burst = 0 # not-ready answers in a row (encoder cold)
7599
7830
  ps.loop = asyncio.get_running_loop()
7831
+ ps._last_known_viewer = ps.loop.time() # no viewer yet: the start
7832
+ ps._ever_viewed = False
7600
7833
  settings.warn_deprecated_once()
7601
7834
  while self._streaming_active:
7602
7835
  # Thread-safe queues: taps run on the loop, the A/V mux in a thread.
@@ -7890,6 +8123,7 @@ class CameraMixin(
7890
8123
  # connection, the track tasks and the recorder's file.
7891
8124
  abort_holder: list = []
7892
8125
  async with _get_webrtc_open_gate():
8126
+ self._dtls_pin_refused = False
7893
8127
  try:
7894
8128
  session = await self._async_open_webrtc_stream_impl(
7895
8129
  on_frame,
@@ -7908,7 +8142,7 @@ class CameraMixin(
7908
8142
  )
7909
8143
  self._note_direct_session(session)
7910
8144
  return session
7911
- except BaseException:
8145
+ except BaseException as _open_exc:
7912
8146
  if abort_holder:
7913
8147
  try:
7914
8148
  await abort_holder[-1]()
@@ -7919,4 +8153,13 @@ class CameraMixin(
7919
8153
  "async_open_webrtc_stream",
7920
8154
  exc_info=True,
7921
8155
  )
8156
+ if self._dtls_pin_refused and not isinstance(
8157
+ _open_exc, (AidotDtlsPinMismatch, asyncio.CancelledError)
8158
+ ):
8159
+ # The handshake failed on the pin; whatever the open saw
8160
+ # next (ICE or connection failure, a timeout) is a symptom.
8161
+ raise AidotDtlsPinMismatch(
8162
+ "camera %s: its DTLS certificate does not match the pinned one"
8163
+ % self.device_id
8164
+ ) from _open_exc
7922
8165
  raise