python-aidot-cameras 1.1.0__tar.gz → 1.2.0__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 (376) hide show
  1. {python_aidot_cameras-1.1.0/python_aidot_cameras.egg-info → python_aidot_cameras-1.2.0}/PKG-INFO +1 -1
  2. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_upstream.py +9 -0
  3. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/client.py +157 -19
  4. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/constants.py +7 -6
  5. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/controls.py +87 -7
  6. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/models.py +33 -0
  7. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/protocol.py +14 -4
  8. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/client.py +4 -1
  9. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/pyproject.toml +1 -1
  10. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
  11. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/python_aidot_cameras.egg-info/SOURCES.txt +4 -0
  12. python_aidot_cameras-1.2.0/tests/test_camera_power.py +151 -0
  13. python_aidot_cameras-1.2.0/tests/test_controls_ride_the_direct_session.py +116 -0
  14. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_serve_backoff.py +1 -1
  15. python_aidot_cameras-1.2.0/tests/test_sleep_camera.py +112 -0
  16. python_aidot_cameras-1.2.0/tests/test_unbind_notice.py +176 -0
  17. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/LICENSE +0 -0
  18. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/MANIFEST.in +0 -0
  19. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/README.md +0 -0
  20. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/__init__.py +0 -0
  21. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/__main__.py +0 -0
  22. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_log_redaction.py +0 -0
  23. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_private_file.py +0 -0
  24. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/__init__.py +0 -0
  25. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
  26. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
  27. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
  28. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
  29. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
  30. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
  31. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
  32. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
  33. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
  34. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
  35. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
  36. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
  37. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
  38. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/events.py +0 -0
  39. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
  40. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
  41. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
  42. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
  43. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
  44. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
  45. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
  46. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
  47. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
  48. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
  49. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
  50. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
  51. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
  52. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
  53. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
  54. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
  55. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
  56. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
  57. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
  58. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/__init__.py +0 -0
  59. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/aac_track.py +0 -0
  60. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/agc.py +0 -0
  61. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/go2rtc.py +0 -0
  62. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/h264_sps.py +0 -0
  63. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/health.py +0 -0
  64. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/hls_ts.py +0 -0
  65. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/hwaccel.py +0 -0
  66. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/lan_control.py +0 -0
  67. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/recording.py +0 -0
  68. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/rtp_h264.py +0 -0
  69. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/rtsp_publish.py +0 -0
  70. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/sd_events.py +0 -0
  71. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/sd_listing.py +0 -0
  72. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/sd_playback.py +0 -0
  73. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/sdes.py +0 -0
  74. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/sdes_open.py +0 -0
  75. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/ts_fanout.py +0 -0
  76. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/ts_tee.py +0 -0
  77. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/webrtc.py +0 -0
  78. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/camera/webrtc_open.py +0 -0
  79. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/cloud_auth.py +0 -0
  80. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/const.py +0 -0
  81. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/credentials.py +0 -0
  82. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/crypto.py +0 -0
  83. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/device_client.py +0 -0
  84. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/discover.py +0 -0
  85. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/exceptions.py +0 -0
  86. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/g711.py +0 -0
  87. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/lan_retry.py +0 -0
  88. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/mqtt_config2.py +0 -0
  89. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/py.typed +0 -0
  90. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/aidot_cameras/settings.py +0 -0
  91. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
  92. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
  93. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/python_aidot_cameras.egg-info/requires.txt +0 -0
  94. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/python_aidot_cameras.egg-info/top_level.txt +0 -0
  95. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/setup.cfg +0 -0
  96. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_aac_track.py +0 -0
  97. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
  98. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
  99. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_aioice_compat.py +0 -0
  100. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_alarm_event.py +0 -0
  101. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_answer_pt_kinds.py +0 -0
  102. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_answer_sdp_video_pt.py +0 -0
  103. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_answer_section_selection.py +0 -0
  104. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_arrival_timestamps.py +0 -0
  105. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_audio_mux_offline.py +0 -0
  106. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_auth_error_routing.py +0 -0
  107. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_auto_alarm.py +0 -0
  108. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_auto_light_settings.py +0 -0
  109. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
  110. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_avio_header_single_layout.py +0 -0
  111. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_avio_request.py +0 -0
  112. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_avio_response_parse.py +0 -0
  113. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_avio_response_router.py +0 -0
  114. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_backoff.py +0 -0
  115. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_battery_cap_spans_sessions.py +0 -0
  116. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_battery_detection.py +0 -0
  117. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_battery_evidence_corroboration.py +0 -0
  118. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
  119. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_battery_wake_settles_before_the_command.py +0 -0
  120. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ble_gateway_is_gone.py +0 -0
  121. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_bridge_state_sentinels.py +0 -0
  122. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_busy_backoff.py +0 -0
  123. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_camera_closed_session.py +0 -0
  124. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_camera_properties.py +0 -0
  125. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_canary_log_names_the_camera.py +0 -0
  126. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
  127. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_cloud_count.py +0 -0
  128. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_cloud_error_log_names_the_exception.py +0 -0
  129. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_cloud_error_severity.py +0 -0
  130. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_cloud_plan.py +0 -0
  131. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_constants_imports_resolve.py +0 -0
  132. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_control_verdicts.py +0 -0
  133. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_declared_properties.py +0 -0
  134. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_deferred_hardening.py +0 -0
  135. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_detection_types.py +0 -0
  136. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_device_cmd_seq_match.py +0 -0
  137. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_device_login_guard.py +0 -0
  138. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_device_user_info_cache.py +0 -0
  139. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
  140. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_direct_ts_keyframe_signal.py +0 -0
  141. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_direct_ts_serve.py +0 -0
  142. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_direct_ts_serve_only_for_http.py +0 -0
  143. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dormant_camera_cleanup.py +0 -0
  144. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_drain_is_cancellable.py +0 -0
  145. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_mux_terminal_write.py +0 -0
  146. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
  147. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_open_pacer.py +0 -0
  148. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_pinning.py +0 -0
  149. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_recorder_wiring.py +0 -0
  150. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_refusal_after_the_echo.py +0 -0
  151. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_resolution_ack.py +0 -0
  152. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_serve_decode_skip.py +0 -0
  153. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_serve_ice_wait.py +0 -0
  154. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_serve_open_timeout.py +0 -0
  155. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_skip_signaling_wait.py +0 -0
  156. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_stdout_producer.py +0 -0
  157. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_tap_states_no_reorder.py +0 -0
  158. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_ts_copy_recording.py +0 -0
  159. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_dtls_video_presence.py +0 -0
  160. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_egress_guard.py +0 -0
  161. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_env_seams.py +0 -0
  162. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_every_exception_is_exported.py +0 -0
  163. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_feature_probe_needs_a_live_session.py +0 -0
  164. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
  165. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
  166. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_first_media_abandon_rules.py +0 -0
  167. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_futile_keepalive.py +0 -0
  168. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_g711_law_conversion.py +0 -0
  169. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_gate_requires_a_decoded_frame.py +0 -0
  170. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_go2rtc.py +0 -0
  171. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_go2rtc_cli.py +0 -0
  172. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_h264_decode_rate_limit.py +0 -0
  173. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_h264_sps.py +0 -0
  174. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_health_line.py +0 -0
  175. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_health_line_counts_pictures.py +0 -0
  176. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_highport_nomination.py +0 -0
  177. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_hls_ts_end_to_end.py +0 -0
  178. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_hls_ts_wiring.py +0 -0
  179. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_hwaccel_probe.py +0 -0
  180. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ice_config_cache.py +0 -0
  181. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ice_credentials_match_the_app.py +0 -0
  182. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ice_peer_reflexive.py +0 -0
  183. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_idle_release_both_loops.py +0 -0
  184. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ipc_envelope_single_builder.py +0 -0
  185. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_keepalive_renew.py +0 -0
  186. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_keyframe_prompter.py +0 -0
  187. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_control.py +0 -0
  188. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_login_accessors.py +0 -0
  189. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
  190. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_retry_short_sessions.py +0 -0
  191. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
  192. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_retry_stops_on_close.py +0 -0
  193. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_lan_sweep_only_with_lights.py +0 -0
  194. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_late_repeats_are_dropped.py +0 -0
  195. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
  196. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_light_active_color_mode.py +0 -0
  197. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_live_session_carries_talk.py +0 -0
  198. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_live_stream_param.py +0 -0
  199. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_live_validate_policy.py +0 -0
  200. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_live_validate_token_refresh.py +0 -0
  201. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_live_video_canary.py +0 -0
  202. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_liveplay_echo_timeout.py +0 -0
  203. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_local_only_controls.py +0 -0
  204. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_log_hygiene.py +0 -0
  205. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_logging_caps.py +0 -0
  206. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_login_connect_deadline.py +0 -0
  207. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_login_reconnect_backoff.py +0 -0
  208. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_loop_break_ends_the_loop.py +0 -0
  209. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_media_counted_only_when_plaintext.py +0 -0
  210. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_media_path_is_reported.py +0 -0
  211. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_media_socket_rcvbuf.py +0 -0
  212. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_media_wait_floor.py +0 -0
  213. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_motion_poll.py +0 -0
  214. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mqtt_client_id_is_exact.py +0 -0
  215. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mqtt_config2.py +0 -0
  216. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mqtt_credential_refetch.py +0 -0
  217. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mqtt_credential_self_heal.py +0 -0
  218. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mqtt_password_not_persisted.py +0 -0
  219. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mqtt_thread_not_orphaned.py +0 -0
  220. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_mypy_new_findings.py +0 -0
  221. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_nack.py +0 -0
  222. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
  223. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_narrow_pc_ice.py +0 -0
  224. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_no_key_material_in_logs.py +0 -0
  225. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
  226. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_no_self_referential_go2rtc.py +0 -0
  227. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_no_unbounded_hex_dumps.py +0 -0
  228. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_no_undefined_names.py +0 -0
  229. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
  230. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_off_subnet_candidate.py +0 -0
  231. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
  232. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_offline_keepalive_pause.py +0 -0
  233. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_on_frame_is_an_av_frame.py +0 -0
  234. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_open_errors_are_aidot_errors.py +0 -0
  235. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_open_fail_logger.py +0 -0
  236. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_open_gate_delay.py +0 -0
  237. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_peer_id_client_type.py +0 -0
  238. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_peerid_reuse.py +0 -0
  239. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_persistent_mqtt.py +0 -0
  240. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_persistent_mqtt_robustness.py +0 -0
  241. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_phase_returns_reach_the_caller.py +0 -0
  242. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_phase_state_is_complete.py +0 -0
  243. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_plaintext_mqtt_refused.py +0 -0
  244. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_post_merge_hardening.py +0 -0
  245. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
  246. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_public_signature_matches_impl.py +0 -0
  247. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_publish_target_readiness.py +0 -0
  248. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_quality_campaign_in_session.py +0 -0
  249. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_reboot_action.py +0 -0
  250. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_recent_recordings.py +0 -0
  251. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_region_allowlist.py +0 -0
  252. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_remb.py +0 -0
  253. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
  254. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
  255. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_resent_frames_are_dropped.py +0 -0
  256. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_resolution_persists.py +0 -0
  257. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_restart_cycle.py +0 -0
  258. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_review_lan_retry_and_graces.py +0 -0
  259. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_rtp_h264.py +0 -0
  260. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_rtsp_publish.py +0 -0
  261. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_rtsp_publish_go2rtc.py +0 -0
  262. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_scripts_importable.py +0 -0
  263. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sctp_in_order.py +0 -0
  264. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sctp_init_ack_tsn.py +0 -0
  265. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sctp_reassembly.py +0 -0
  266. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sctp_sack.py +0 -0
  267. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_card_presence.py +0 -0
  268. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_event_decode.py +0 -0
  269. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_event_probe_payloads.py +0 -0
  270. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_listing.py +0 -0
  271. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback.py +0 -0
  272. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_clock.py +0 -0
  273. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_controls.py +0 -0
  274. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_dtls.py +0 -0
  275. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_end.py +0 -0
  276. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_entry.py +0 -0
  277. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_media_hold.py +0 -0
  278. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sd_playback_open.py +0 -0
  279. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_avio_dispatch.py +0 -0
  280. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_bridge_break_gate.py +0 -0
  281. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
  282. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_connection_mode.py +0 -0
  283. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_fast_liveplay.py +0 -0
  284. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
  285. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_first_media_stall_report.py +0 -0
  286. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_ice_teardown.py +0 -0
  287. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_idle_release.py +0 -0
  288. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_nack_bridge.py +0 -0
  289. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_offer_video_pin.py +0 -0
  290. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_open_cleanup.py +0 -0
  291. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
  292. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_open_yields_the_loop.py +0 -0
  293. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_pinned_codec_retry.py +0 -0
  294. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_sctp_abort.py +0 -0
  295. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_serve_audio.py +0 -0
  296. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_serve_cmd.py +0 -0
  297. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_serve_stderr_drain.py +0 -0
  298. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_sprop.py +0 -0
  299. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_talk.py +0 -0
  300. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_teardown_exit_log.py +0 -0
  301. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_terminal_ack.py +0 -0
  302. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_terminal_ack_latency.py +0 -0
  303. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
  304. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdes_watchdog.py +0 -0
  305. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdp_narrowing_properties.py +0 -0
  306. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sdp_payload_type_narrowing.py +0 -0
  307. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_security_hardening.py +0 -0
  308. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
  309. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serializable_login_info.py +0 -0
  310. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
  311. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_input_timeout.py +0 -0
  312. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_loop_releases_on_error.py +0 -0
  313. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_loss_tolerance.py +0 -0
  314. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_pt_respects_the_pin.py +0 -0
  315. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_relay.py +0 -0
  316. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
  317. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_session_mode_seq.py +0 -0
  318. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_session_stats.py +0 -0
  319. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_session_stop_twice.py +0 -0
  320. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_set_dev_attr_payload.py +0 -0
  321. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_settings_registry.py +0 -0
  322. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_shared_house_seam.py +0 -0
  323. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
  324. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_skip_guard.py +0 -0
  325. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_snapshot_cancellation.py +0 -0
  326. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_speak.py +0 -0
  327. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sprop_capture_gate.py +0 -0
  328. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sprop_staleness.py +0 -0
  329. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sprop_unstable_public.py +0 -0
  330. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
  331. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_srtp_rx_rekey.py +0 -0
  332. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_srtp_tx_key_note.py +0 -0
  333. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stable_terminal_id.py +0 -0
  334. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stall_nudge_policy.py +0 -0
  335. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
  336. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
  337. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
  338. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
  339. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stall_reports_reach_the_artifact.py +0 -0
  340. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_status_and_trace_channels.py +0 -0
  341. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stream_cap.py +0 -0
  342. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stream_drain_ownership.py +0 -0
  343. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stream_idle.py +0 -0
  344. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stream_settings.py +0 -0
  345. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stream_slot_cap.py +0 -0
  346. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stream_teardown.py +0 -0
  347. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_stun_attr_single_builder.py +0 -0
  348. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_swallowed_exception_names.py +0 -0
  349. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_talk.py +0 -0
  350. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
  351. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_tap_to_mux_end_to_end.py +0 -0
  352. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_terminal_ack.py +0 -0
  353. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_token_file_robustness.py +0 -0
  354. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_token_refresh.py +0 -0
  355. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_transport_failure_reporting.py +0 -0
  356. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ts_fanout.py +0 -0
  357. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_ts_tee.py +0 -0
  358. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_turn_create_permission.py +0 -0
  359. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_turn_target_shared.py +0 -0
  360. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
  361. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_upstream_compat.py +0 -0
  362. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_upstream_seam_adapter.py +0 -0
  363. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_upstream_secrets_redacted.py +0 -0
  364. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_validator_shares_one_token.py +0 -0
  365. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_vendored_aiortc_integrity.py +0 -0
  366. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_video_presence_needs_a_keyframe.py +0 -0
  367. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_video_profile_log.py +0 -0
  368. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_video_pts_dts.py +0 -0
  369. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_video_ts_unwrap.py +0 -0
  370. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_viewer_check_throttle.py +0 -0
  371. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_viewer_presence.py +0 -0
  372. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_viewer_present_push_mode.py +0 -0
  373. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_wait_or_event.py +0 -0
  374. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_wake_gate_camera_evidence.py +0 -0
  375. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/tests/test_wake_readiness_retry.py +0 -0
  376. {python_aidot_cameras-1.1.0 → python_aidot_cameras-1.2.0}/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.1.0
3
+ Version: 1.2.0
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
@@ -125,6 +125,14 @@ class _DeviceState(IntEnum):
125
125
 
126
126
 
127
127
  DeviceState = _DeviceState
128
+ # The integration's tests (2.37.x and 2.38.x) read this to choose the shape of
129
+ # the device-client stub they build: True meant "upstream keeps a DeviceState
130
+ # enum on the client", False "upstream keeps connect_and_login booleans". It
131
+ # stays after the choice was dropped from the code, and it is False: every
132
+ # upstream the library supports reports the session through
133
+ # ``connect_and_login`` (device_session_authenticated below), and the enum
134
+ # above is this module's own re-export, never produced by upstream.
135
+ DEVICE_STATE_IS_UPSTREAMS = False
128
136
 
129
137
 
130
138
  def device_session_authenticated(device_client: Any) -> bool:
@@ -351,6 +359,7 @@ __all__ = [
351
359
  "API_URL_TEMPLATE",
352
360
  "APP_ID",
353
361
  "DEFAULT_REGION",
362
+ "DEVICE_STATE_IS_UPSTREAMS",
354
363
  "HAS_DEVICE_CLIENT_BACKREF",
355
364
  "PUBLIC_KEY_PEM",
356
365
  "RECONNECT_HANDLE_ATTRS",
@@ -49,7 +49,9 @@ from .models import ( # re-exported: data models split into models.py
49
49
  CameraDeviceInformation,
50
50
  CameraStatusData,
51
51
  _as_int,
52
+ _camera_powered_off,
52
53
  _cloud_reports_offline,
54
+ _cloud_says_unavailable,
53
55
  )
54
56
  from .webrtc import WebRTCSession # re-exported (split into webrtc.py)
55
57
  from . import h264_sps as _h264_sps
@@ -63,7 +65,7 @@ from .rtsp_publish import (
63
65
  from .sdes import (
64
66
  SdesSession,
65
67
  ) # re-exported (split into sdes.py); also the SDES return type
66
- from .controls import _CameraControlsMixin
68
+ from .controls import _CameraControlsMixin, control_session
67
69
  from .sd_listing import _CameraSdMixin
68
70
  from .sd_playback import _CameraSdPlaybackMixin
69
71
  from .webrtc_open import _WebRTCOpenMixin
@@ -1311,10 +1313,14 @@ def _get_stream_slots() -> "asyncio.Semaphore":
1311
1313
 
1312
1314
  # Battery cameras re-sleep on their own low-power timer ~25 s after the last
1313
1315
  # keep-alive, even mid-view. Renew setKeepAliveTime INSIDE that window so there
1314
- # is no sleep gap (the official app renews every 30 s, which leaves a ~5 s gap
1315
- # against the 25 s window). See CameraMixin._keepalive_renew_loop.
1316
+ # is no sleep gap. The official app renews every 10 s while its live view is
1317
+ # open (DeviceWakeUpRepos.keepToAlive: Flowable.interval(10, SECONDS); an
1318
+ # earlier reading here said 30 s, which was wrong), for every model; a mains
1319
+ # camera never sleeps, so this library renews for battery cameras only, at the
1320
+ # app's cadence since 1.2.0 (20 s before, which left 5 s of slack against the
1321
+ # window). See CameraMixin._keepalive_renew_loop.
1316
1322
  _KEEPALIVE_WINDOW_S = 25
1317
- _KEEPALIVE_RENEW_S = 20
1323
+ _KEEPALIVE_RENEW_S = 10
1318
1324
 
1319
1325
 
1320
1326
  def _ack_matches_seq(msg, seq):
@@ -1552,7 +1558,7 @@ async def _dtls_serve_loop_open_attempt(
1552
1558
  # AIDOT_BUSY_RETRY_S, so the serve comes back within that of the slot
1553
1559
  # freeing. An encoder still cold (a DC-only answer) gets a short burst
1554
1560
  # of quick retries first (_not_ready_burst_delay).
1555
- _offline = _cloud_reports_offline(self)
1561
+ _offline = _cloud_says_unavailable(self)
1556
1562
  _busy_s = settings.read("AIDOT_BUSY_RETRY_S")
1557
1563
  _floor = 0.0
1558
1564
  _burst = None
@@ -1595,7 +1601,7 @@ async def _dtls_serve_loop_open_attempt(
1595
1601
  _level,
1596
1602
  "DTLS serve: open failed for %s (retry %s; %d in a row): %s",
1597
1603
  self.device_id,
1598
- f"in up to {_delay:.0f}s, sooner once back online"
1604
+ f"in up to {_delay:.0f}s, sooner once back"
1599
1605
  if _offline
1600
1606
  else f"{_delay:.0f}s",
1601
1607
  _n,
@@ -1604,7 +1610,7 @@ async def _dtls_serve_loop_open_attempt(
1604
1610
  try:
1605
1611
  await self._chunked_wait(
1606
1612
  _delay,
1607
- until=(lambda: bool(self.status.online)) if _offline else None,
1613
+ until=(lambda: not _cloud_says_unavailable(self)) if _offline else None,
1608
1614
  min_s=_floor,
1609
1615
  )
1610
1616
  except asyncio.CancelledError:
@@ -2679,6 +2685,15 @@ async def _sdes_keepalive_after_session(
2679
2685
  return None
2680
2686
 
2681
2687
 
2688
+ def _call_guarded(callback) -> None:
2689
+ """Run a consumer's callback on the loop, keeping its failure out of the
2690
+ transport that scheduled it."""
2691
+ try:
2692
+ callback()
2693
+ except Exception:
2694
+ _LOGGER.debug("callback failed", exc_info=True)
2695
+
2696
+
2682
2697
  class CameraMixin(
2683
2698
  _CameraControlsMixin,
2684
2699
  _CameraSdMixin,
@@ -3095,7 +3110,7 @@ class CameraMixin(
3095
3110
  already throttled to ~probe cadence by _backoff_or_offline_pause, so its
3096
3111
  expected open failures should not drip WARNINGs into the log every probe.
3097
3112
  """
3098
- return _LOGGER.debug if _cloud_reports_offline(self) else _LOGGER.warning
3113
+ return _LOGGER.debug if _cloud_says_unavailable(self) else _LOGGER.warning
3099
3114
 
3100
3115
  async def _backoff_or_offline_pause(self, delay: float) -> None:
3101
3116
  """Sleep a reconnect backoff, extended while the device is cloud-offline.
@@ -3117,24 +3132,25 @@ class CameraMixin(
3117
3132
  (observed live: two unpowered A000088s cycling 30 s open attempts
3118
3133
  pushed a healthy camera's cold open past two minutes).
3119
3134
  """
3120
- if not _cloud_reports_offline(self):
3135
+ if not _cloud_says_unavailable(self):
3121
3136
  await asyncio.sleep(delay)
3122
3137
  return
3123
3138
  _LOGGER.info(
3124
- "keepalive[%s]: device is cloud-offline - pausing open retries "
3139
+ "keepalive[%s]: device is %s - pausing open retries "
3125
3140
  "(recheck %.0fs, probe %.0fs)",
3126
3141
  self.device_id,
3142
+ "switched off" if _camera_powered_off(self) else "cloud-offline",
3127
3143
  _OFFLINE_RECHECK_S,
3128
3144
  _OFFLINE_PROBE_S,
3129
3145
  )
3130
3146
  await self._chunked_wait(
3131
3147
  _OFFLINE_PROBE_S,
3132
- until=lambda: bool(self.status.online),
3148
+ until=lambda: not _cloud_says_unavailable(self),
3133
3149
  chunk_s=_OFFLINE_RECHECK_S,
3134
3150
  )
3135
3151
  if not getattr(self, "_streaming_active", False):
3136
3152
  return
3137
- if self.status.online:
3153
+ if not _cloud_says_unavailable(self):
3138
3154
  _LOGGER.info(
3139
3155
  "keepalive[%s]: device back online - resuming opens",
3140
3156
  self.device_id,
@@ -3376,6 +3392,11 @@ class CameraMixin(
3376
3392
  the MQTT ``lowPowerActiveStateReq``, which only lands if the camera is
3377
3393
  already connected. Returns True if the request was accepted (HTTP 200).
3378
3394
  """
3395
+ return await self._async_http_low_power("wakeup")
3396
+
3397
+ async def _async_http_low_power(self, status: str) -> bool:
3398
+ """POST the low-power endpoint with ``status`` ``"wakeup"`` or
3399
+ ``"sleep"``: the app's ``wakeUpOrSleep``, both directions."""
3379
3400
  # The wake endpoint (unlike recording/playback) DOES require owner (n.java:71).
3380
3401
  headers = self._leedarson_headers()
3381
3402
  headers["owner"] = self._owner_id()
@@ -3383,8 +3404,8 @@ class CameraMixin(
3383
3404
  f"{self._smarthome_base}/api/ipc/devices/"
3384
3405
  f"{self.device_id}/lowPowerActiveState"
3385
3406
  )
3386
- body = json.dumps({"deviceId": self.device_id, "status": "wakeup"})
3387
- return await self._async_post_ok(url, headers, body, label="http wake")
3407
+ body = json.dumps({"deviceId": self.device_id, "status": status})
3408
+ return await self._async_post_ok(url, headers, body, label=f"http {status}")
3388
3409
 
3389
3410
  def _live_stream_param_request(self):
3390
3411
  """Build ``(url, headers, body)`` for the liveStreamParam provision call.
@@ -3428,14 +3449,59 @@ class CameraMixin(
3428
3449
  attribute paths; this adds the reliable cloud-side channel. Non-battery
3429
3450
  cameras are always reachable, so this is a no-op for them.
3430
3451
  """
3452
+ return await self._async_low_power("wakeup", retries)
3453
+
3454
+ async def _async_low_power(self, status: str, retries: int) -> bool:
3455
+ """The wake-or-sleep request with the app's retry: ``retries`` attempts
3456
+ a second apart, True on the first the cloud accepts. A refusal is
3457
+ said at WARNING once, with the status, so the caller's error has a
3458
+ reason behind it in the log. A no-op (True) on mains cameras, which
3459
+ never sleep."""
3431
3460
  if not self.is_battery_camera:
3432
3461
  return True
3433
- for _attempt in range(max(1, retries)):
3434
- if await self._async_http_wake():
3462
+ attempts = max(1, retries)
3463
+ for attempt in range(attempts):
3464
+ if await self._async_http_low_power(status):
3435
3465
  return True
3436
- await asyncio.sleep(1.0)
3466
+ if attempt < attempts - 1:
3467
+ await asyncio.sleep(1.0)
3468
+ _LOGGER.warning(
3469
+ "camera %s: the cloud refused the %s request %d time(s) (details at DEBUG)",
3470
+ self.device_id,
3471
+ status,
3472
+ attempts,
3473
+ )
3437
3474
  return False
3438
3475
 
3476
+ async def async_keep_awake(self, seconds: float) -> None:
3477
+ """Keep a battery camera awake for ``seconds`` after a wake, the way
3478
+ the app does between its wake and its live view: renew the camera's
3479
+ keep-alive (``setKeepAliveTime``, a 25 s window) every 10 s. Ends
3480
+ early once a stream of ours is active, whose own renewals take over,
3481
+ and never runs on a mains camera. Best-effort: a renewal that fails is
3482
+ retried at the next tick."""
3483
+ if not self.is_battery_camera or seconds <= 0:
3484
+ return
3485
+ loop = asyncio.get_running_loop()
3486
+ end = loop.time() + seconds
3487
+ while loop.time() < end and not getattr(self, "_streaming_active", False):
3488
+ await self._async_set_keep_alive()
3489
+ await asyncio.sleep(min(10.0, max(0.0, end - loop.time())))
3490
+
3491
+ async def async_sleep_camera(self, retries: int = 2) -> bool:
3492
+ """Send a battery camera back to sleep now, instead of ~25 s after its
3493
+ last keep-alive.
3494
+
3495
+ The same cloud endpoint as :meth:`async_wake_camera` with
3496
+ ``status: "sleep"``: the app sends it when the user leaves a battery
3497
+ camera's live view. Useful after a scheduled recording, when nobody
3498
+ will watch again soon. A camera that is streaming to someone keeps
3499
+ its session until that ends; this only stops the camera waiting up for
3500
+ a viewer that is not coming. Non-battery cameras never sleep, so this
3501
+ is a no-op for them.
3502
+ """
3503
+ return await self._async_low_power("sleep", retries)
3504
+
3439
3505
  async def _async_get_mqtt_url(self) -> Optional[str]:
3440
3506
  # Fetch and cache the WSS MQTT broker URL (and MQTT credentials) from
3441
3507
  # getServerUrlConfig. The full response is stored in self._smarthome_auth
@@ -5505,6 +5571,76 @@ class CameraMixin(
5505
5571
  self._motion_seen = {}
5506
5572
  self._motion_task = asyncio.ensure_future(self._motion_poll_loop(lookback_s))
5507
5573
 
5574
+ async def async_watch_unbind(self, callback: "Callable[[], None]") -> bool:
5575
+ """Call ``callback()`` when the cloud announces this device removed
5576
+ from the account (a ``devUnbindNotif`` on the account's topics).
5577
+
5578
+ The app reacts to that notice at once (its device-delete strategy);
5579
+ a consumer polling the device list only notices at its next refresh.
5580
+ Rides the account's persistent MQTT connection, subscribed to the
5581
+ account wildcard, so it costs no extra connection. Returns False when
5582
+ there is no MQTT session to listen on (the caller keeps polling).
5583
+ A notice without a device id is passed on too: a refresh is cheap and
5584
+ the shape of that message is not pinned down.
5585
+ """
5586
+ pm = await self._get_persistent_mqtt()
5587
+ if pm is None:
5588
+ return False
5589
+ device_id = self.device_id
5590
+ loop = asyncio.get_running_loop()
5591
+
5592
+ def _handler(topic, payload) -> None:
5593
+ # Runs on the MQTT thread; the callback is handed to the loop the
5594
+ # watch was started on, so a consumer may touch loop state in it.
5595
+ if "devUnbindNotif" not in str(payload)[:400]:
5596
+ return
5597
+ try:
5598
+ msg = json.loads(payload)
5599
+ except Exception:
5600
+ return
5601
+ if (msg.get("method") or "") != "devUnbindNotif":
5602
+ return
5603
+ inner = msg.get("payload") if isinstance(msg.get("payload"), dict) else {}
5604
+ src = str(msg.get("srcAddr") or "")
5605
+ dev = (
5606
+ inner.get("devId")
5607
+ or inner.get("deviceId")
5608
+ or msg.get("devId")
5609
+ or (src.rsplit(".", 1)[-1] if src else None)
5610
+ )
5611
+ if dev and dev != device_id:
5612
+ return
5613
+ if not dev:
5614
+ # The notice's shape is not pinned down; say what came so it
5615
+ # can be. Every watcher on the account acts on such a notice.
5616
+ _LOGGER.info(
5617
+ "devUnbindNotif without a device id (keys %s); refreshing",
5618
+ sorted(inner.keys()),
5619
+ )
5620
+ _LOGGER.info(
5621
+ "camera %s: the cloud reports it removed from the account", device_id
5622
+ )
5623
+ loop.call_soon_threadsafe(_call_guarded, callback)
5624
+
5625
+ await self.async_stop_watching_unbind()
5626
+ await pm.subscribe([f"iot/v1/c/{self.user_id}/#"])
5627
+ # Kept with the connection it was added to: that connection can be
5628
+ # retired and rebuilt (a credential refusal), and the handler must
5629
+ # come off the one it is on, not whichever is current then. A rebuilt
5630
+ # connection does not carry the watch; the consumer keeps polling.
5631
+ self._unbind_watch = (pm, pm.add_handler(_handler))
5632
+ return True
5633
+
5634
+ async def async_stop_watching_unbind(self) -> None:
5635
+ """Stop the ``async_watch_unbind`` listener, if any. Touches only the
5636
+ connection the handler was added to; never builds one."""
5637
+ watch = getattr(self, "_unbind_watch", None)
5638
+ if watch is None:
5639
+ return
5640
+ self._unbind_watch = None
5641
+ pm, handler = watch
5642
+ pm.remove_handler(handler)
5643
+
5508
5644
  async def async_stop_motion_polling(self) -> None:
5509
5645
  """Stop the motion-event polling started by ``async_start_motion_polling``."""
5510
5646
  self._motion_active = False
@@ -5955,7 +6091,7 @@ class CameraMixin(
5955
6091
  session could carry talk. Works for both DTLS and SDES cameras (same
5956
6092
  WebRTC audio path).
5957
6093
  """
5958
- session = self._stream_session
6094
+ session = control_session(self)
5959
6095
  own_session = False
5960
6096
  if session is None or not getattr(session, "talk_supported", False):
5961
6097
  session = None
@@ -7476,7 +7612,7 @@ class CameraMixin(
7476
7612
  abort_holder: list = []
7477
7613
  async with _get_webrtc_open_gate():
7478
7614
  try:
7479
- return await self._async_open_webrtc_stream_impl(
7615
+ session = await self._async_open_webrtc_stream_impl(
7480
7616
  on_frame,
7481
7617
  stream_id=stream_id,
7482
7618
  timeout=timeout,
@@ -7491,6 +7627,8 @@ class CameraMixin(
7491
7627
  _abort_holder=abort_holder,
7492
7628
  **kwargs,
7493
7629
  )
7630
+ self._note_direct_session(session)
7631
+ return session
7494
7632
  except BaseException:
7495
7633
  if abort_holder:
7496
7634
  try:
@@ -200,14 +200,15 @@ _PTZ_DIR_CODES: dict = {
200
200
 
201
201
  # Live-stream resolution (AVIOCTRL_QUALITY_*). The official app's picker has
202
202
  # THREE arms, not two: MAX(1), MIDDLE(5), and 0x10 = 16, whose label is
203
- # _auto_resulution (HorLiveController.smali:629-631). 16 is deliberately absent
204
- # here: it is outside AVIOCTRL_QUALITY, and measured 2026-08-07 it behaves like
205
- # every other value - acked, and the encode unchanged in that session and the
206
- # next. Adding it would offer a control that does nothing. The two arms below
207
- # are the ones with enum names, kept for parity with the command the app sends.
203
+ # _auto_resulution (HorLiveController.smali:629-631). All three are offered:
204
+ # measured 2026-11-09 on an A000088, the camera records the value it was sent
205
+ # as its StreamType property (hd -> "0", sd -> "1", auto -> "2"), keeps it
206
+ # across sessions, and the app reads that property back for its label - so a
207
+ # setting made here is what the app shows, and one made in the app is what the
208
+ # property reports. Whether the encode follows is the camera's affair.
208
209
  # Sent as IOTYPE_USER_IPCAM_SETSTREAMCTRL_REQ (800) over the active session,
209
210
  # payload <IB3x> = channel(0) + quality byte (SMsgAVIoctrlSetStreamCtrlReq).
210
- _STREAM_QUALITY: dict = {"hd": 1, "sd": 5} # AVIOCTRL_QUALITY_MAX / _MIDDLE
211
+ _STREAM_QUALITY: dict = {"hd": 1, "sd": 5, "auto": 16} # MAX / MIDDLE / the app's Auto
211
212
 
212
213
 
213
214
  # livePlayResp code for "not ready": the camera accepted the request but cannot
@@ -8,6 +8,7 @@ mixin must be combined into CameraMixin (it is not usable standalone).
8
8
 
9
9
  import logging
10
10
  import struct
11
+ import time
11
12
 
12
13
  from typing import Optional
13
14
 
@@ -44,6 +45,44 @@ LIGHT_BRIGHTNESS_MAX = 100
44
45
  _SETSTREAMCTRL_ACK_S = 1.5
45
46
 
46
47
 
48
+ def control_session(dev):
49
+ """The session a control on ``dev`` rides: the serve loop's, else the one
50
+ the last ``async_open_webrtc_stream`` returned while it is still up.
51
+
52
+ The serve loop (Home Assistant's path) records its session on
53
+ ``_stream_session``; a caller of the public open used to find every
54
+ control answering "not streaming" with frames flowing, because that
55
+ session was never recorded anywhere (live_validate worked around it by
56
+ setting the private attribute itself). A session whose teardown has begun
57
+ (``_stop_task`` set) no longer counts. A function rather than only a
58
+ method so a path that is handed a bare client-like object (the speaker
59
+ path's tests do) reads it the same way.
60
+ """
61
+ session = getattr(dev, "_stream_session", None)
62
+ if session is not None:
63
+ return session
64
+ session = getattr(dev, "_direct_session", None)
65
+ if session is None:
66
+ return None
67
+ if not _session_is_live(session):
68
+ # Stopped, or died on its own (the camera closed, ICE failed): not a
69
+ # session to ride, and not worth keeping alive either.
70
+ dev._direct_session = None
71
+ return None
72
+ return session
73
+
74
+
75
+ def _session_is_live(session) -> bool:
76
+ """A session whose teardown has not begun and whose peer connection, if it
77
+ has one, is not closed or failed. An SDES session has no peer connection
78
+ to read; its stop is the only signal."""
79
+ if getattr(session, "_stop_task", None) is not None:
80
+ return False
81
+ pc = getattr(session, "_pc", None)
82
+ state = getattr(pc, "connectionState", None) if pc is not None else None
83
+ return state not in ("closed", "failed")
84
+
85
+
47
86
  class _CameraControlsMixin:
48
87
  """Device-control setters mixed into CameraMixin."""
49
88
 
@@ -68,7 +107,8 @@ class _CameraControlsMixin:
68
107
  ok = await self.async_set_device_attribute("LightOnOff", 1 if on else 0)
69
108
  if ok and on and brightness != 100:
70
109
  await self.async_set_device_attribute(
71
- "Dimming", max(LIGHT_BRIGHTNESS_MIN, min(LIGHT_BRIGHTNESS_MAX, brightness))
110
+ "Dimming",
111
+ max(LIGHT_BRIGHTNESS_MIN, min(LIGHT_BRIGHTNESS_MAX, brightness)),
72
112
  )
73
113
  return ok
74
114
 
@@ -147,6 +187,26 @@ class _CameraControlsMixin:
147
187
  """Enable or disable HDR (HDRStatus)."""
148
188
  return await self.async_set_device_attribute("HDRStatus", 1 if enabled else 0)
149
189
 
190
+ async def async_set_power(self, on: bool) -> bool:
191
+ """Switch the camera itself on or off (``TurnOnOff``, the app's
192
+ live-screen power switch).
193
+
194
+ Off, the camera stays on MQTT and keeps answering property writes, but
195
+ will not stream: a webrtcReq gets no answer until it is switched back
196
+ on (measured 2026-11-09 on an A000088: off at once, no webrtcResp in
197
+ 30 s; on, a stream opened in 15 s). The serve loops read
198
+ ``status.powered`` and pause rather than retry while it is off, so the
199
+ state is recorded here as soon as the write is acknowledged, ahead of
200
+ the camera's own report.
201
+ """
202
+ ok = await self.async_set_device_attribute("TurnOnOff", 1 if on else 0)
203
+ if ok:
204
+ self.status.powered = on
205
+ # A device-list poll that was in flight can still carry the old
206
+ # value; _camera_powered_off prefers this write for a while.
207
+ self._power_write = (time.monotonic(), on)
208
+ return ok
209
+
150
210
  async def async_set_microphone(self, enabled: bool) -> bool:
151
211
  """Enable or disable the camera's microphone."""
152
212
  # micEnable: 1=on (default), 0=off
@@ -486,7 +546,7 @@ class _CameraControlsMixin:
486
546
  # always run the no-command control - without it, "the picture changed"
487
547
  # and "twenty seconds passed" are the same measurement.
488
548
  payload = bytes([code, min(255, max(0, speed)), preset, 0, 0, 0, 0, 0])
489
- session = self._stream_session
549
+ session = self._control_session()
490
550
  if session is None:
491
551
  _LOGGER.warning("async_ptz_move: no active stream session")
492
552
  return False
@@ -505,6 +565,16 @@ class _CameraControlsMixin:
505
565
  """Send PTZ stop command (direction_code=0, speed=0)."""
506
566
  return await self.async_ptz_move("stop", speed=0)
507
567
 
568
+ def _control_session(self):
569
+ """The session a control rides; see :func:`control_session`."""
570
+ return control_session(self)
571
+
572
+ def _note_direct_session(self, session) -> None:
573
+ """Record the session the public open returned, and give it the
574
+ remembered resolution, as the serve loop gives its own."""
575
+ self._direct_session = session
576
+ self._apply_pending_resolution()
577
+
508
578
  async def async_set_resolution(self, quality: str) -> bool:
509
579
  """Switch the live-stream resolution.
510
580
 
@@ -543,9 +613,13 @@ class _CameraControlsMixin:
543
613
  Payload <IB3x> = channel(0) + quality byte + 3 reserved.
544
614
  The app has three settings, not two: Auto, SD and HD, which
545
615
  `NewLivePresenter.setDefaultResolution` maps from the persistent
546
- `props.StreamType` property to quality 16, 5 and 1. This library
547
- implements only hd=1 and sd=5; 16 (Auto) was swept and did nothing, and
548
- `StreamType` itself is acked-and-ignored on every write.
616
+ `props.StreamType` property to quality 16, 5 and 1; this library offers
617
+ all three as "hd", "sd" and "auto". `StreamType` is the camera's own
618
+ record of the last value it was sent (measured 2026-11-09 on an
619
+ A000088: hd -> "0", sd -> "1", auto -> "2", kept across sessions), which
620
+ the app reads back for its label; writing the property directly is
621
+ what is acked and ignored. Fresh sessions under each of the three
622
+ encoded the same (about 335 kbps, 16 fps, from outside the network).
549
623
  """
550
624
  q = _STREAM_QUALITY.get(quality.lower())
551
625
  if q is None:
@@ -553,7 +627,7 @@ class _CameraControlsMixin:
553
627
  return False
554
628
  self._desired_quality = quality.lower()
555
629
  payload = struct.pack("<IB3x", 0, q)
556
- session = self._stream_session
630
+ session = self._control_session()
557
631
  if session is None:
558
632
  _LOGGER.info(
559
633
  "resolution %s remembered; the camera is not streaming, so it "
@@ -614,9 +688,15 @@ class _CameraControlsMixin:
614
688
  if not quality:
615
689
  return
616
690
  q = _STREAM_QUALITY.get(quality)
617
- session = self._stream_session
691
+ session = self._control_session()
618
692
  if q is None or session is None:
619
693
  return
694
+ # Once per session: the public open applies it as it records the
695
+ # session, and the serve loops apply it again when they prepare the
696
+ # same session; the second must not send the command twice.
697
+ if getattr(self, "_resolution_applied_to", None) is session:
698
+ return
699
+ self._resolution_applied_to = session
620
700
  try:
621
701
  if session._avio_cmd(
622
702
  IOTYPE_USER_IPCAM_SETSTREAMCTRL_REQ, struct.pack("<IB3x", 0, q)
@@ -7,6 +7,7 @@ client.py so existing imports keep working.
7
7
 
8
8
  import json
9
9
  import logging
10
+ import time
10
11
  from dataclasses import dataclass
11
12
  from typing import Any, Optional
12
13
 
@@ -114,6 +115,11 @@ class CameraStatusData(DeviceStatusData):
114
115
  #: HDR (HDRStatus).
115
116
  hdr: Optional[bool] = None
116
117
  microphone: Optional[bool] = None
118
+ #: The camera's own power switch (``TurnOnOff``, the app's live-screen
119
+ #: switch). Off, the camera answers MQTT (properties can still be written)
120
+ #: but refuses to stream: a webrtcReq gets no answer (measured 2026-11-09
121
+ #: on an A000088). None until the cloud has reported it.
122
+ powered: Optional[bool] = None
117
123
  night_vision_mode: Optional[str] = None # "auto" | "on" | "off"
118
124
  ir_light: Optional[bool] = None # nightVisionIRLight 0/1
119
125
  floodlight: Optional[bool] = None
@@ -181,6 +187,8 @@ class CameraStatusData(DeviceStatusData):
181
187
  self.hdr = b
182
188
  if (b := _as_bool(attr.get("micEnable"))) is not None:
183
189
  self.microphone = b
190
+ if (b := _as_bool(attr.get("TurnOnOff"))) is not None:
191
+ self.powered = b
184
192
  if (v := attr.get("nightVisionMode")) is not None:
185
193
  nv = _as_int(v)
186
194
  if nv is not None:
@@ -369,6 +377,31 @@ class VideoFrame:
369
377
  return self.frame_type == _FRAME_TYPE_AUDIO
370
378
 
371
379
 
380
+ #: How long a local TurnOnOff write outranks the cloud's report of it.
381
+ _POWER_WRITE_GRACE_S = 60.0
382
+
383
+
384
+ def _camera_powered_off(dev: Any) -> bool:
385
+ """True when the camera's own power switch (``TurnOnOff``) is off.
386
+
387
+ Off, the camera is reachable over MQTT but will not answer a stream
388
+ request, so the serve loops treat it as they treat a cloud-offline camera:
389
+ expected open failures at DEBUG, and a pause instead of retries until it
390
+ is switched back on. None (not yet reported) is not off."""
391
+ write = getattr(dev, "_power_write", None)
392
+ if write is not None and time.monotonic() - write[0] < _POWER_WRITE_GRACE_S:
393
+ # The owner just switched it; a poll in flight may still carry the
394
+ # old value. The write wins for a while.
395
+ return write[1] is False
396
+ return getattr(getattr(dev, "status", None), "powered", None) is False
397
+
398
+
399
+ def _cloud_says_unavailable(dev: Any) -> bool:
400
+ """Offline by the cloud's explicit report, or switched off by its owner:
401
+ the two states in which opening a stream is known to be futile."""
402
+ return _cloud_reports_offline(dev) or _camera_powered_off(dev)
403
+
404
+
372
405
  def _cloud_reports_offline(dev: Any) -> bool:
373
406
  """True only when the cloud has explicitly reported ``dev`` offline.
374
407
 
@@ -590,7 +590,9 @@ def _compress_sdp_for_camera(sdp: str) -> str:
590
590
  _kept_pts.add(ln.split(":")[1].split(" ")[0])
591
591
  except Exception:
592
592
  _LOGGER.debug(
593
- "swallowed exception in %s", "_compress_sdp_for_camera", exc_info=True
593
+ "swallowed exception in %s",
594
+ "_compress_sdp_for_camera",
595
+ exc_info=True,
594
596
  )
595
597
  elif media_type == "m=video":
596
598
  if "H264/90000" in ln and seen.get("H264/90000") is None:
@@ -600,7 +602,9 @@ def _compress_sdp_for_camera(sdp: str) -> str:
600
602
  _kept_pts.add(seen["H264/90000_pt"])
601
603
  except Exception:
602
604
  _LOGGER.debug(
603
- "swallowed exception in %s", "_compress_sdp_for_camera", exc_info=True
605
+ "swallowed exception in %s",
606
+ "_compress_sdp_for_camera",
607
+ exc_info=True,
604
608
  )
605
609
  elif "H265/90000" in ln and seen.get("H265/90000") is None:
606
610
  keep(ln, "H265/90000")
@@ -609,7 +613,9 @@ def _compress_sdp_for_camera(sdp: str) -> str:
609
613
  _kept_pts.add(seen["H265/90000_pt"])
610
614
  except Exception:
611
615
  _LOGGER.debug(
612
- "swallowed exception in %s", "_compress_sdp_for_camera", exc_info=True
616
+ "swallowed exception in %s",
617
+ "_compress_sdp_for_camera",
618
+ exc_info=True,
613
619
  )
614
620
  elif "apt=" in ln:
615
621
  try:
@@ -3313,7 +3319,11 @@ def mask_sdp_secrets(sdp: str) -> str:
3313
3319
  for attr in _SDP_SECRET_ATTRS:
3314
3320
  if stripped.startswith(attr):
3315
3321
  head, _, _rest = ln.partition(attr)
3316
- tail = "\r\n" if ln.endswith("\r\n") else ("\n" if ln.endswith("\n") else "")
3322
+ tail = (
3323
+ "\r\n"
3324
+ if ln.endswith("\r\n")
3325
+ else ("\n" if ln.endswith("\n") else "")
3326
+ )
3317
3327
  ln = f"{head}{attr}<masked>{tail}"
3318
3328
  break
3319
3329
  out.append(ln)
@@ -332,7 +332,10 @@ class CameraClient(_UpstreamAidotClient):
332
332
  )
333
333
 
334
334
  if token is not None and not isinstance(token, dict):
335
- _LOGGER.warning("ignoring a stored token that is not an object (%s)", type(token).__name__)
335
+ _LOGGER.warning(
336
+ "ignoring a stored token that is not an object (%s)",
337
+ type(token).__name__,
338
+ )
336
339
  token = None
337
340
  if token is not None:
338
341
  stored = token
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-aidot-cameras"
7
- version = "1.1.0"
7
+ version = "1.2.0"
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.1.0
3
+ Version: 1.2.0
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