python-aidot-cameras 1.1.1__tar.gz → 1.3.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 (378) hide show
  1. {python_aidot_cameras-1.1.1/python_aidot_cameras.egg-info → python_aidot_cameras-1.3.0}/PKG-INFO +1 -1
  2. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/client.py +167 -15
  3. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/constants.py +9 -0
  4. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/controls.py +3 -1
  5. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/protocol.py +27 -0
  6. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/sd_listing.py +183 -10
  7. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/sdes_open.py +3 -32
  8. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/webrtc_open.py +3 -2
  9. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/pyproject.toml +1 -1
  10. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
  11. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/python_aidot_cameras.egg-info/SOURCES.txt +3 -0
  12. python_aidot_cameras-1.3.0/tests/test_event_notice_watch.py +70 -0
  13. python_aidot_cameras-1.3.0/tests/test_sd_thumbnails_and_delete.py +140 -0
  14. python_aidot_cameras-1.3.0/tests/test_sleep_camera.py +112 -0
  15. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/LICENSE +0 -0
  16. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/MANIFEST.in +0 -0
  17. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/README.md +0 -0
  18. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/__init__.py +0 -0
  19. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/__main__.py +0 -0
  20. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_log_redaction.py +0 -0
  21. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_private_file.py +0 -0
  22. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_upstream.py +0 -0
  23. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/__init__.py +0 -0
  24. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
  25. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
  26. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
  27. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
  28. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
  29. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
  30. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
  31. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
  32. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
  33. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
  34. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
  35. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
  36. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
  37. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/events.py +0 -0
  38. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
  39. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
  40. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
  41. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
  42. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
  43. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
  44. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
  45. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
  46. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
  47. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
  48. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
  49. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
  50. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
  51. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
  52. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
  53. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
  54. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
  55. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
  56. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
  57. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/__init__.py +0 -0
  58. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/aac_track.py +0 -0
  59. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/agc.py +0 -0
  60. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/go2rtc.py +0 -0
  61. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/h264_sps.py +0 -0
  62. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/health.py +0 -0
  63. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/hls_ts.py +0 -0
  64. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/hwaccel.py +0 -0
  65. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/lan_control.py +0 -0
  66. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/models.py +0 -0
  67. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/recording.py +0 -0
  68. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/rtp_h264.py +0 -0
  69. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/rtsp_publish.py +0 -0
  70. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/sd_events.py +0 -0
  71. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/sd_playback.py +0 -0
  72. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/sdes.py +0 -0
  73. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/ts_fanout.py +0 -0
  74. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/ts_tee.py +0 -0
  75. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/camera/webrtc.py +0 -0
  76. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/client.py +0 -0
  77. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/cloud_auth.py +0 -0
  78. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/const.py +0 -0
  79. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/credentials.py +0 -0
  80. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/crypto.py +0 -0
  81. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/device_client.py +0 -0
  82. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/discover.py +0 -0
  83. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/exceptions.py +0 -0
  84. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/g711.py +0 -0
  85. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/lan_retry.py +0 -0
  86. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/mqtt_config2.py +0 -0
  87. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/py.typed +0 -0
  88. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/aidot_cameras/settings.py +0 -0
  89. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
  90. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
  91. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/python_aidot_cameras.egg-info/requires.txt +0 -0
  92. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/python_aidot_cameras.egg-info/top_level.txt +0 -0
  93. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/setup.cfg +0 -0
  94. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_aac_track.py +0 -0
  95. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
  96. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
  97. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_aioice_compat.py +0 -0
  98. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_alarm_event.py +0 -0
  99. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_answer_pt_kinds.py +0 -0
  100. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_answer_sdp_video_pt.py +0 -0
  101. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_answer_section_selection.py +0 -0
  102. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_arrival_timestamps.py +0 -0
  103. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_audio_mux_offline.py +0 -0
  104. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_auth_error_routing.py +0 -0
  105. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_auto_alarm.py +0 -0
  106. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_auto_light_settings.py +0 -0
  107. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
  108. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_avio_header_single_layout.py +0 -0
  109. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_avio_request.py +0 -0
  110. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_avio_response_parse.py +0 -0
  111. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_avio_response_router.py +0 -0
  112. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_backoff.py +0 -0
  113. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_battery_cap_spans_sessions.py +0 -0
  114. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_battery_detection.py +0 -0
  115. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_battery_evidence_corroboration.py +0 -0
  116. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
  117. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_battery_wake_settles_before_the_command.py +0 -0
  118. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ble_gateway_is_gone.py +0 -0
  119. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_bridge_state_sentinels.py +0 -0
  120. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_busy_backoff.py +0 -0
  121. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_camera_closed_session.py +0 -0
  122. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_camera_power.py +0 -0
  123. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_camera_properties.py +0 -0
  124. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_canary_log_names_the_camera.py +0 -0
  125. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
  126. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_cloud_count.py +0 -0
  127. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_cloud_error_log_names_the_exception.py +0 -0
  128. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_cloud_error_severity.py +0 -0
  129. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_cloud_plan.py +0 -0
  130. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_constants_imports_resolve.py +0 -0
  131. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_control_verdicts.py +0 -0
  132. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_controls_ride_the_direct_session.py +0 -0
  133. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_declared_properties.py +0 -0
  134. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_deferred_hardening.py +0 -0
  135. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_detection_types.py +0 -0
  136. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_device_cmd_seq_match.py +0 -0
  137. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_device_login_guard.py +0 -0
  138. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_device_user_info_cache.py +0 -0
  139. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
  140. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_direct_ts_keyframe_signal.py +0 -0
  141. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_direct_ts_serve.py +0 -0
  142. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_direct_ts_serve_only_for_http.py +0 -0
  143. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dormant_camera_cleanup.py +0 -0
  144. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_drain_is_cancellable.py +0 -0
  145. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_mux_terminal_write.py +0 -0
  146. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
  147. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_open_pacer.py +0 -0
  148. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_pinning.py +0 -0
  149. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_recorder_wiring.py +0 -0
  150. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_refusal_after_the_echo.py +0 -0
  151. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_resolution_ack.py +0 -0
  152. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_serve_backoff.py +0 -0
  153. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_serve_decode_skip.py +0 -0
  154. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_serve_ice_wait.py +0 -0
  155. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_serve_open_timeout.py +0 -0
  156. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_skip_signaling_wait.py +0 -0
  157. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_stdout_producer.py +0 -0
  158. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_tap_states_no_reorder.py +0 -0
  159. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_ts_copy_recording.py +0 -0
  160. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_dtls_video_presence.py +0 -0
  161. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_egress_guard.py +0 -0
  162. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_env_seams.py +0 -0
  163. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_every_exception_is_exported.py +0 -0
  164. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_feature_probe_needs_a_live_session.py +0 -0
  165. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
  166. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
  167. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_first_media_abandon_rules.py +0 -0
  168. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_futile_keepalive.py +0 -0
  169. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_g711_law_conversion.py +0 -0
  170. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_gate_requires_a_decoded_frame.py +0 -0
  171. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_go2rtc.py +0 -0
  172. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_go2rtc_cli.py +0 -0
  173. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_h264_decode_rate_limit.py +0 -0
  174. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_h264_sps.py +0 -0
  175. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_health_line.py +0 -0
  176. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_health_line_counts_pictures.py +0 -0
  177. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_highport_nomination.py +0 -0
  178. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_hls_ts_end_to_end.py +0 -0
  179. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_hls_ts_wiring.py +0 -0
  180. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_hwaccel_probe.py +0 -0
  181. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ice_config_cache.py +0 -0
  182. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ice_credentials_match_the_app.py +0 -0
  183. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ice_peer_reflexive.py +0 -0
  184. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_idle_release_both_loops.py +0 -0
  185. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ipc_envelope_single_builder.py +0 -0
  186. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_keepalive_renew.py +0 -0
  187. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_keyframe_prompter.py +0 -0
  188. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_control.py +0 -0
  189. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_login_accessors.py +0 -0
  190. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
  191. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_retry_short_sessions.py +0 -0
  192. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
  193. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_retry_stops_on_close.py +0 -0
  194. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_lan_sweep_only_with_lights.py +0 -0
  195. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_late_repeats_are_dropped.py +0 -0
  196. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
  197. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_light_active_color_mode.py +0 -0
  198. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_live_session_carries_talk.py +0 -0
  199. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_live_stream_param.py +0 -0
  200. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_live_validate_policy.py +0 -0
  201. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_live_validate_token_refresh.py +0 -0
  202. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_live_video_canary.py +0 -0
  203. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_liveplay_echo_timeout.py +0 -0
  204. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_local_only_controls.py +0 -0
  205. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_log_hygiene.py +0 -0
  206. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_logging_caps.py +0 -0
  207. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_login_connect_deadline.py +0 -0
  208. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_login_reconnect_backoff.py +0 -0
  209. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_loop_break_ends_the_loop.py +0 -0
  210. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_media_counted_only_when_plaintext.py +0 -0
  211. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_media_path_is_reported.py +0 -0
  212. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_media_socket_rcvbuf.py +0 -0
  213. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_media_wait_floor.py +0 -0
  214. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_motion_poll.py +0 -0
  215. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mqtt_client_id_is_exact.py +0 -0
  216. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mqtt_config2.py +0 -0
  217. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mqtt_credential_refetch.py +0 -0
  218. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mqtt_credential_self_heal.py +0 -0
  219. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mqtt_password_not_persisted.py +0 -0
  220. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mqtt_thread_not_orphaned.py +0 -0
  221. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_mypy_new_findings.py +0 -0
  222. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_nack.py +0 -0
  223. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
  224. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_narrow_pc_ice.py +0 -0
  225. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_no_key_material_in_logs.py +0 -0
  226. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
  227. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_no_self_referential_go2rtc.py +0 -0
  228. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_no_unbounded_hex_dumps.py +0 -0
  229. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_no_undefined_names.py +0 -0
  230. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
  231. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_off_subnet_candidate.py +0 -0
  232. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
  233. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_offline_keepalive_pause.py +0 -0
  234. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_on_frame_is_an_av_frame.py +0 -0
  235. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_open_errors_are_aidot_errors.py +0 -0
  236. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_open_fail_logger.py +0 -0
  237. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_open_gate_delay.py +0 -0
  238. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_peer_id_client_type.py +0 -0
  239. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_peerid_reuse.py +0 -0
  240. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_persistent_mqtt.py +0 -0
  241. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_persistent_mqtt_robustness.py +0 -0
  242. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_phase_returns_reach_the_caller.py +0 -0
  243. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_phase_state_is_complete.py +0 -0
  244. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_plaintext_mqtt_refused.py +0 -0
  245. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_post_merge_hardening.py +0 -0
  246. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
  247. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_public_signature_matches_impl.py +0 -0
  248. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_publish_target_readiness.py +0 -0
  249. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_quality_campaign_in_session.py +0 -0
  250. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_reboot_action.py +0 -0
  251. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_recent_recordings.py +0 -0
  252. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_region_allowlist.py +0 -0
  253. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_remb.py +0 -0
  254. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
  255. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
  256. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_resent_frames_are_dropped.py +0 -0
  257. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_resolution_persists.py +0 -0
  258. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_restart_cycle.py +0 -0
  259. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_review_lan_retry_and_graces.py +0 -0
  260. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_rtp_h264.py +0 -0
  261. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_rtsp_publish.py +0 -0
  262. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_rtsp_publish_go2rtc.py +0 -0
  263. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_scripts_importable.py +0 -0
  264. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sctp_in_order.py +0 -0
  265. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sctp_init_ack_tsn.py +0 -0
  266. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sctp_reassembly.py +0 -0
  267. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sctp_sack.py +0 -0
  268. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_card_presence.py +0 -0
  269. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_event_decode.py +0 -0
  270. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_event_probe_payloads.py +0 -0
  271. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_listing.py +0 -0
  272. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback.py +0 -0
  273. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_clock.py +0 -0
  274. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_controls.py +0 -0
  275. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_dtls.py +0 -0
  276. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_end.py +0 -0
  277. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_entry.py +0 -0
  278. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_media_hold.py +0 -0
  279. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sd_playback_open.py +0 -0
  280. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_avio_dispatch.py +0 -0
  281. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_bridge_break_gate.py +0 -0
  282. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
  283. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_connection_mode.py +0 -0
  284. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_fast_liveplay.py +0 -0
  285. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
  286. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_first_media_stall_report.py +0 -0
  287. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_ice_teardown.py +0 -0
  288. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_idle_release.py +0 -0
  289. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_nack_bridge.py +0 -0
  290. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_offer_video_pin.py +0 -0
  291. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_open_cleanup.py +0 -0
  292. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
  293. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_open_yields_the_loop.py +0 -0
  294. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_pinned_codec_retry.py +0 -0
  295. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_sctp_abort.py +0 -0
  296. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_serve_audio.py +0 -0
  297. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_serve_cmd.py +0 -0
  298. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_serve_stderr_drain.py +0 -0
  299. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_sprop.py +0 -0
  300. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_talk.py +0 -0
  301. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_teardown_exit_log.py +0 -0
  302. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_terminal_ack.py +0 -0
  303. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_terminal_ack_latency.py +0 -0
  304. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
  305. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdes_watchdog.py +0 -0
  306. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdp_narrowing_properties.py +0 -0
  307. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sdp_payload_type_narrowing.py +0 -0
  308. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_security_hardening.py +0 -0
  309. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
  310. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serializable_login_info.py +0 -0
  311. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
  312. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_input_timeout.py +0 -0
  313. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_loop_releases_on_error.py +0 -0
  314. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_loss_tolerance.py +0 -0
  315. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_pt_respects_the_pin.py +0 -0
  316. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_relay.py +0 -0
  317. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
  318. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_session_mode_seq.py +0 -0
  319. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_session_stats.py +0 -0
  320. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_session_stop_twice.py +0 -0
  321. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_set_dev_attr_payload.py +0 -0
  322. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_settings_registry.py +0 -0
  323. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_shared_house_seam.py +0 -0
  324. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
  325. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_skip_guard.py +0 -0
  326. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_snapshot_cancellation.py +0 -0
  327. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_speak.py +0 -0
  328. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sprop_capture_gate.py +0 -0
  329. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sprop_staleness.py +0 -0
  330. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sprop_unstable_public.py +0 -0
  331. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
  332. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_srtp_rx_rekey.py +0 -0
  333. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_srtp_tx_key_note.py +0 -0
  334. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stable_terminal_id.py +0 -0
  335. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stall_nudge_policy.py +0 -0
  336. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
  337. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
  338. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
  339. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
  340. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stall_reports_reach_the_artifact.py +0 -0
  341. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_status_and_trace_channels.py +0 -0
  342. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stream_cap.py +0 -0
  343. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stream_drain_ownership.py +0 -0
  344. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stream_idle.py +0 -0
  345. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stream_settings.py +0 -0
  346. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stream_slot_cap.py +0 -0
  347. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stream_teardown.py +0 -0
  348. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_stun_attr_single_builder.py +0 -0
  349. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_swallowed_exception_names.py +0 -0
  350. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_talk.py +0 -0
  351. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
  352. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_tap_to_mux_end_to_end.py +0 -0
  353. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_terminal_ack.py +0 -0
  354. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_token_file_robustness.py +0 -0
  355. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_token_refresh.py +0 -0
  356. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_transport_failure_reporting.py +0 -0
  357. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ts_fanout.py +0 -0
  358. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_ts_tee.py +0 -0
  359. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_turn_create_permission.py +0 -0
  360. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_turn_target_shared.py +0 -0
  361. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_unbind_notice.py +0 -0
  362. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
  363. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_upstream_compat.py +0 -0
  364. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_upstream_seam_adapter.py +0 -0
  365. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_upstream_secrets_redacted.py +0 -0
  366. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_validator_shares_one_token.py +0 -0
  367. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_vendored_aiortc_integrity.py +0 -0
  368. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_video_presence_needs_a_keyframe.py +0 -0
  369. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_video_profile_log.py +0 -0
  370. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_video_pts_dts.py +0 -0
  371. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_video_ts_unwrap.py +0 -0
  372. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_viewer_check_throttle.py +0 -0
  373. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_viewer_presence.py +0 -0
  374. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_viewer_present_push_mode.py +0 -0
  375. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_wait_or_event.py +0 -0
  376. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_wake_gate_camera_evidence.py +0 -0
  377. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.0}/tests/test_wake_readiness_retry.py +0 -0
  378. {python_aidot_cameras-1.1.1 → python_aidot_cameras-1.3.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.1
3
+ Version: 1.3.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
@@ -66,7 +66,7 @@ from .sdes import (
66
66
  SdesSession,
67
67
  ) # re-exported (split into sdes.py); also the SDES return type
68
68
  from .controls import _CameraControlsMixin, control_session
69
- from .sd_listing import _CameraSdMixin
69
+ from .sd_listing import _CameraSdExtrasMixin, _CameraSdMixin
70
70
  from .sd_playback import _CameraSdPlaybackMixin
71
71
  from .webrtc_open import _WebRTCOpenMixin
72
72
  from .sdes_open import _SdesOpenMixin
@@ -1313,10 +1313,14 @@ def _get_stream_slots() -> "asyncio.Semaphore":
1313
1313
 
1314
1314
  # Battery cameras re-sleep on their own low-power timer ~25 s after the last
1315
1315
  # keep-alive, even mid-view. Renew setKeepAliveTime INSIDE that window so there
1316
- # is no sleep gap (the official app renews every 30 s, which leaves a ~5 s gap
1317
- # 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.
1318
1322
  _KEEPALIVE_WINDOW_S = 25
1319
- _KEEPALIVE_RENEW_S = 20
1323
+ _KEEPALIVE_RENEW_S = 10
1320
1324
 
1321
1325
 
1322
1326
  def _ack_matches_seq(msg, seq):
@@ -2021,7 +2025,11 @@ async def _dtls_serve_loop_serve_cycle(
2021
2025
  exc_info=True,
2022
2026
  )
2023
2027
  ps.wfile = None
2024
- ps.mux_thread.join(timeout=2.0)
2028
+ # Off the loop: a mux thread stuck in a write would otherwise hold
2029
+ # every coroutine in the process for up to two seconds.
2030
+ await asyncio.get_running_loop().run_in_executor(
2031
+ None, ps.mux_thread.join, 2.0
2032
+ )
2025
2033
  ps.mux_thread = ps.stop_flag = None
2026
2034
  if _mode == "stdout" and _mux_ended and _mux_state.get("failed"):
2027
2035
  # Whoever read our stdout has gone (go2rtc kills an exec
@@ -2078,7 +2086,11 @@ async def _dtls_serve_loop_serve_cycle(
2078
2086
  # itself raised, join() raises "cannot join thread before it
2079
2087
  # is started", which would replace the real exception AND skip
2080
2088
  # the session stop below, leaking the camera's session.
2081
- ps.mux_thread.join(timeout=2.0)
2089
+ # Off the loop: a mux thread stuck in a write would otherwise hold
2090
+ # every coroutine in the process for up to two seconds.
2091
+ await asyncio.get_running_loop().run_in_executor(
2092
+ None, ps.mux_thread.join, 2.0
2093
+ )
2082
2094
  self._stream_session = None
2083
2095
  try:
2084
2096
  await ps.session.stop()
@@ -2693,6 +2705,7 @@ def _call_guarded(callback) -> None:
2693
2705
  class CameraMixin(
2694
2706
  _CameraControlsMixin,
2695
2707
  _CameraSdMixin,
2708
+ _CameraSdExtrasMixin,
2696
2709
  _CameraSdPlaybackMixin,
2697
2710
  _WebRTCOpenMixin,
2698
2711
  _SdesOpenMixin,
@@ -3388,6 +3401,11 @@ class CameraMixin(
3388
3401
  the MQTT ``lowPowerActiveStateReq``, which only lands if the camera is
3389
3402
  already connected. Returns True if the request was accepted (HTTP 200).
3390
3403
  """
3404
+ return await self._async_http_low_power("wakeup")
3405
+
3406
+ async def _async_http_low_power(self, status: str) -> bool:
3407
+ """POST the low-power endpoint with ``status`` ``"wakeup"`` or
3408
+ ``"sleep"``: the app's ``wakeUpOrSleep``, both directions."""
3391
3409
  # The wake endpoint (unlike recording/playback) DOES require owner (n.java:71).
3392
3410
  headers = self._leedarson_headers()
3393
3411
  headers["owner"] = self._owner_id()
@@ -3395,8 +3413,8 @@ class CameraMixin(
3395
3413
  f"{self._smarthome_base}/api/ipc/devices/"
3396
3414
  f"{self.device_id}/lowPowerActiveState"
3397
3415
  )
3398
- body = json.dumps({"deviceId": self.device_id, "status": "wakeup"})
3399
- return await self._async_post_ok(url, headers, body, label="http wake")
3416
+ body = json.dumps({"deviceId": self.device_id, "status": status})
3417
+ return await self._async_post_ok(url, headers, body, label=f"http {status}")
3400
3418
 
3401
3419
  def _live_stream_param_request(self):
3402
3420
  """Build ``(url, headers, body)`` for the liveStreamParam provision call.
@@ -3440,14 +3458,59 @@ class CameraMixin(
3440
3458
  attribute paths; this adds the reliable cloud-side channel. Non-battery
3441
3459
  cameras are always reachable, so this is a no-op for them.
3442
3460
  """
3461
+ return await self._async_low_power("wakeup", retries)
3462
+
3463
+ async def _async_low_power(self, status: str, retries: int) -> bool:
3464
+ """The wake-or-sleep request with the app's retry: ``retries`` attempts
3465
+ a second apart, True on the first the cloud accepts. A refusal is
3466
+ said at WARNING once, with the status, so the caller's error has a
3467
+ reason behind it in the log. A no-op (True) on mains cameras, which
3468
+ never sleep."""
3443
3469
  if not self.is_battery_camera:
3444
3470
  return True
3445
- for _attempt in range(max(1, retries)):
3446
- if await self._async_http_wake():
3471
+ attempts = max(1, retries)
3472
+ for attempt in range(attempts):
3473
+ if await self._async_http_low_power(status):
3447
3474
  return True
3448
- await asyncio.sleep(1.0)
3475
+ if attempt < attempts - 1:
3476
+ await asyncio.sleep(1.0)
3477
+ _LOGGER.warning(
3478
+ "camera %s: the cloud refused the %s request %d time(s) (details at DEBUG)",
3479
+ self.device_id,
3480
+ status,
3481
+ attempts,
3482
+ )
3449
3483
  return False
3450
3484
 
3485
+ async def async_keep_awake(self, seconds: float) -> None:
3486
+ """Keep a battery camera awake for ``seconds`` after a wake, the way
3487
+ the app does between its wake and its live view: renew the camera's
3488
+ keep-alive (``setKeepAliveTime``, a 25 s window) every 10 s. Ends
3489
+ early once a stream of ours is active, whose own renewals take over,
3490
+ and never runs on a mains camera. Best-effort: a renewal that fails is
3491
+ retried at the next tick."""
3492
+ if not self.is_battery_camera or seconds <= 0:
3493
+ return
3494
+ loop = asyncio.get_running_loop()
3495
+ end = loop.time() + seconds
3496
+ while loop.time() < end and not getattr(self, "_streaming_active", False):
3497
+ await self._async_set_keep_alive()
3498
+ await asyncio.sleep(min(10.0, max(0.0, end - loop.time())))
3499
+
3500
+ async def async_sleep_camera(self, retries: int = 2) -> bool:
3501
+ """Send a battery camera back to sleep now, instead of ~25 s after its
3502
+ last keep-alive.
3503
+
3504
+ The same cloud endpoint as :meth:`async_wake_camera` with
3505
+ ``status: "sleep"``: the app sends it when the user leaves a battery
3506
+ camera's live view. Useful after a scheduled recording, when nobody
3507
+ will watch again soon. A camera that is streaming to someone keeps
3508
+ its session until that ends; this only stops the camera waiting up for
3509
+ a viewer that is not coming. Non-battery cameras never sleep, so this
3510
+ is a no-op for them.
3511
+ """
3512
+ return await self._async_low_power("sleep", retries)
3513
+
3451
3514
  async def _async_get_mqtt_url(self) -> Optional[str]:
3452
3515
  # Fetch and cache the WSS MQTT broker URL (and MQTT credentials) from
3453
3516
  # getServerUrlConfig. The full response is stored in self._smarthome_auth
@@ -4094,7 +4157,10 @@ class CameraMixin(
4094
4157
  try:
4095
4158
  _, _wst = await self._persistent_request(_wake_items, [], 2.0)
4096
4159
  _connected = _wst.get("error") != _NO_PERSISTENT_MQTT
4097
- if _connected:
4160
+ if _mqtt_publish_delivered(_wst):
4161
+ # Only a wake the broker took counts as the camera woken;
4162
+ # a connect timeout or a failed publish must not stop the
4163
+ # next command from waking it again.
4098
4164
  self._last_wake_mono = _time.monotonic()
4099
4165
  except Exception:
4100
4166
  # A failed wake must not stop the command: on a camera that is
@@ -4240,6 +4306,9 @@ class CameraMixin(
4240
4306
  if lan is not None:
4241
4307
  try:
4242
4308
  if await lan.async_set_attributes({attr: value}):
4309
+ # The same optimistic state the cloud path records below,
4310
+ # so a switch does not snap back until the next poll.
4311
+ self.status.update_from_camera_attributes({attr: value})
4243
4312
  return True
4244
4313
  except Exception as _exc:
4245
4314
  _LOGGER.debug(
@@ -5060,10 +5129,11 @@ class CameraMixin(
5060
5129
  body = await _fetch() # retry once with the refreshed token
5061
5130
 
5062
5131
  _LOGGER.debug(
5063
- "getEventVideoUrl raw for %s uuid=%s: %s",
5132
+ "getEventVideoUrl code=%s for %s uuid=%s: %d url(s)",
5133
+ body.get("code"),
5064
5134
  self.device_id,
5065
5135
  event_uuid,
5066
- body,
5136
+ len((body.get("data") or {}).get("eventUrlList") or []),
5067
5137
  )
5068
5138
 
5069
5139
  if body.get("code") != 200:
@@ -5515,6 +5585,11 @@ class CameraMixin(
5515
5585
  return
5516
5586
  self._motion_active = True
5517
5587
  self._motion_seen = {}
5588
+ # The poke the event watch sets (poke_motion_poll): made here so a
5589
+ # notice that lands before the first wait is not lost, cleared at the
5590
+ # start of each poll so one that lands during a poll runs the next.
5591
+ self._motion_poke = asyncio.Event()
5592
+ self._motion_last_poll = 0.0
5518
5593
  self._motion_task = asyncio.ensure_future(self._motion_poll_loop(lookback_s))
5519
5594
 
5520
5595
  async def async_watch_unbind(self, callback: "Callable[[], None]") -> bool:
@@ -5577,6 +5652,69 @@ class CameraMixin(
5577
5652
  self._unbind_watch = (pm, pm.add_handler(_handler))
5578
5653
  return True
5579
5654
 
5655
+ async def async_watch_events(self, callback: "Callable[[], None]") -> bool:
5656
+ """Call ``callback()`` on the loop when the cloud announces an event
5657
+ for this camera on the account's topics (``devEventNotif`` or
5658
+ ``eventNotify``), so a consumer can poll the event list at once
5659
+ instead of at its next interval. Whether these cameras announce their
5660
+ events there is not yet measured; the watch costs nothing if they do
5661
+ not. Returns False when there is no MQTT session to listen on.
5662
+ """
5663
+ pm = await self._get_persistent_mqtt()
5664
+ if pm is None:
5665
+ return False
5666
+ device_id = self.device_id
5667
+ loop = asyncio.get_running_loop()
5668
+
5669
+ def _handler(topic, payload) -> None:
5670
+ text = str(payload)[:600]
5671
+ if "devEventNotif" not in text and "eventNotify" not in text:
5672
+ return
5673
+ try:
5674
+ msg = json.loads(payload)
5675
+ except Exception:
5676
+ return
5677
+ if (msg.get("method") or "") not in ("devEventNotif", "eventNotify"):
5678
+ return
5679
+ inner = msg.get("payload") if isinstance(msg.get("payload"), dict) else {}
5680
+ src = str(msg.get("srcAddr") or "")
5681
+ dev = (
5682
+ inner.get("devId")
5683
+ or inner.get("deviceId")
5684
+ or msg.get("devId")
5685
+ or (src.rsplit(".", 1)[-1] if src else None)
5686
+ )
5687
+ if dev and dev != device_id:
5688
+ return
5689
+ _LOGGER.info(
5690
+ "camera %s: event notice %s (keys %s)",
5691
+ device_id,
5692
+ msg.get("method"),
5693
+ sorted(inner.keys())[:8],
5694
+ )
5695
+ loop.call_soon_threadsafe(_call_guarded, callback)
5696
+
5697
+ await self.async_stop_watching_events()
5698
+ await pm.subscribe([f"iot/v1/c/{self.user_id}/#"])
5699
+ self._event_watch = (pm, pm.add_handler(_handler))
5700
+ return True
5701
+
5702
+ async def async_stop_watching_events(self) -> None:
5703
+ """Stop the ``async_watch_events`` listener, if any."""
5704
+ watch = getattr(self, "_event_watch", None)
5705
+ if watch is None:
5706
+ return
5707
+ self._event_watch = None
5708
+ pm, handler = watch
5709
+ pm.remove_handler(handler)
5710
+
5711
+ def poke_motion_poll(self) -> None:
5712
+ """Ask the motion poll loop to poll now rather than at its next
5713
+ interval; a no-op when it is not running."""
5714
+ ev = getattr(self, "_motion_poke", None)
5715
+ if ev is not None:
5716
+ ev.set()
5717
+
5580
5718
  async def async_stop_watching_unbind(self) -> None:
5581
5719
  """Stop the ``async_watch_unbind`` listener, if any. Touches only the
5582
5720
  connection the handler was added to; never builds one."""
@@ -5610,6 +5748,10 @@ class CameraMixin(
5610
5748
 
5611
5749
  primed = False
5612
5750
  while self._motion_active:
5751
+ poke = getattr(self, "_motion_poke", None)
5752
+ if poke is not None:
5753
+ poke.clear()
5754
+ self._motion_last_poll = asyncio.get_running_loop().time()
5613
5755
  try:
5614
5756
  now = int(_time.time() * 1000)
5615
5757
  items = await self.async_get_cloud_recordings(
@@ -5640,7 +5782,17 @@ class CameraMixin(
5640
5782
  except Exception as exc:
5641
5783
  _LOGGER.debug("motion poll error for %s: %s", self.device_id, exc)
5642
5784
  try:
5643
- await asyncio.sleep(self._motion_interval)
5785
+ # Interruptible: an event notice (poke_motion_poll) ends the
5786
+ # wait early so the poll runs now. Not cleared here: a poke
5787
+ # that landed during the poll above must end this wait at
5788
+ # once; the clear is at the top of the loop, before a poll.
5789
+ if poke is None:
5790
+ await asyncio.sleep(self._motion_interval)
5791
+ else:
5792
+ try:
5793
+ await asyncio.wait_for(poke.wait(), self._motion_interval)
5794
+ except TimeoutError:
5795
+ pass
5644
5796
  except asyncio.CancelledError:
5645
5797
  return
5646
5798
 
@@ -166,6 +166,15 @@ IOTYPE_USER_IPCAM_SPEAKERSTART = 0x350 # 848
166
166
  IOTYPE_USER_IPCAM_SPEAKERSTOP = 0x351 # 849
167
167
  #: The SPEAKERSTART ack on the WebRTC transports; 0x352 is the TUTK one.
168
168
  IOTYPE_USER_IPCAM_SPEAKERSTART_WEB_RTC_RESP = 0x353 # 851
169
+ #: Delete card recordings (the app's deleteRecord): 0x4b7 asks, 0x4b8 answers
170
+ #: with one byte, 0 for done.
171
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ = 0x4B7
172
+ IOTYPE_USER_IPCAM_DELLISTEVENT_RESP = 0x4B8
173
+ #: Thumbnails of card recordings (the app's getThumbnais, sent as its
174
+ #: "custom command"): 0x4b9 asks for a list of recordings, 0x4ba brings one
175
+ #: picture per reply.
176
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ = 0x4B9
177
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP = 0x4BA
169
178
  IOTYPE_USER_IPCAM_HASLISTEVENT_REQ = 0x4B5
170
179
  IOTYPE_USER_IPCAM_HASLISTEVENT_RESP = 0x4B6
171
180
  IOTYPE_USER_IPCAM_PTZ_COMMAND = 0x1001 # 4097
@@ -696,11 +696,13 @@ class _CameraControlsMixin:
696
696
  # same session; the second must not send the command twice.
697
697
  if getattr(self, "_resolution_applied_to", None) is session:
698
698
  return
699
- self._resolution_applied_to = session
700
699
  try:
701
700
  if session._avio_cmd(
702
701
  IOTYPE_USER_IPCAM_SETSTREAMCTRL_REQ, struct.pack("<IB3x", 0, q)
703
702
  ):
703
+ # Latched only once the command left: a channel not yet up
704
+ # gets it again at the next prepare.
705
+ self._resolution_applied_to = session
704
706
  _LOGGER.debug("re-applied remembered resolution %s", quality)
705
707
  except Exception:
706
708
  _LOGGER.debug("could not re-apply resolution %s", quality, exc_info=True)
@@ -3328,3 +3328,30 @@ def mask_sdp_secrets(sdp: str) -> str:
3328
3328
  break
3329
3329
  out.append(ln)
3330
3330
  return "".join(out)
3331
+
3332
+
3333
+ def dispatch_avio_frames(responses, payload) -> bool:
3334
+ """Offer every AVIO frame in one inbound control message to ``responses``.
3335
+
3336
+ One SCTP message can carry more than one frame: a 12-byte SESSION_MODE
3337
+ notify has been seen arriving with a reply batched behind it in a
3338
+ 140-byte chunk. Reading only the first loses the reply, which presents as
3339
+ the camera intermittently not answering. Both transports' control
3340
+ channels go through here. True if something waiting was answered; never
3341
+ raises and never blocks (it runs inline on the receive path).
3342
+ """
3343
+ if responses is None or not payload:
3344
+ return False
3345
+ answered = False
3346
+ try:
3347
+ view = memoryview(payload)
3348
+ while len(view) >= AVIO_HDR_LEN:
3349
+ frame = parse_avio_response(bytes(view))
3350
+ if frame is None:
3351
+ break
3352
+ if responses.dispatch(bytes(view)):
3353
+ answered = True
3354
+ view = view[AVIO_HDR_LEN + len(frame.payload) :]
3355
+ except Exception:
3356
+ return answered
3357
+ return answered
@@ -12,11 +12,20 @@ are all ordinary, and each of them has to arrive in a media browser as an empty
12
12
  list rather than as a traceback.
13
13
  """
14
14
 
15
+ import calendar
15
16
  import logging
17
+ import struct
16
18
  import time
17
19
  from datetime import datetime, UTC
18
20
  from typing import Any, List, Optional
19
21
 
22
+ from .constants import (
23
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
24
+ IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
25
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
26
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
27
+ )
28
+ from .controls import _session_is_live as _control_session_is_live
20
29
  from .sd_events import (
21
30
  HASLISTEVENT_REQ_CMD,
22
31
  HASLISTEVENT_RESP_CMD,
@@ -160,17 +169,15 @@ def _plausible(record: Any, lo: float, hi: float) -> bool:
160
169
 
161
170
 
162
171
  def _session_is_live(session: Any) -> bool:
163
- """Is this session object one that could still carry a request?
164
-
165
- Only SDES sessions publish ``is_alive``, so a session already torn down is
166
- caught on that transport and not on DTLS. That asymmetry is fine here and
167
- must stay fine at every caller: this is a cheap early-out, never the thing
168
- that keeps a dead channel from being reported as an empty card. ``answered``
169
- does that, on every transport.
170
- """
171
- if session is None:
172
+ """Is this session one that could still carry a request? One rule for
173
+ both transports (controls._session_is_live): not stopped, and its peer
174
+ connection, where it has one, neither closed nor failed. An SDES session
175
+ also publishes ``is_alive``. A cheap early-out, never the thing that
176
+ keeps a dead channel from being reported as an empty card: ``answered``
177
+ does that."""
178
+ if session is None or getattr(session, "is_alive", True) is False:
172
179
  return False
173
- return getattr(session, "is_alive", True) is not False
180
+ return _control_session_is_live(session)
174
181
 
175
182
 
176
183
  class _CameraSdMixin:
@@ -420,3 +427,169 @@ class _CameraSdMixin:
420
427
  start_ts=start_ts,
421
428
  end_ts=end_ts,
422
429
  )
430
+
431
+
432
+ # --------------------------------------------------------------------------- #
433
+ # Thumbnails and deletion of card recordings
434
+ # --------------------------------------------------------------------------- #
435
+
436
+ #: The thumbnail request names recordings by their start as epoch
437
+ #: milliseconds (the app's Long per recording); the reply carries the request
438
+ #: channel, the time back, and the picture.
439
+ _THUMB_HEADER = struct.Struct("<Iq")
440
+
441
+
442
+ def _record_epoch_ms(record: Any) -> int:
443
+ """A record's UTC start as epoch milliseconds."""
444
+ fields = (
445
+ record.year,
446
+ record.month,
447
+ record.day,
448
+ record.hour,
449
+ record.minute,
450
+ record.second,
451
+ )
452
+ return calendar.timegm((*fields, 0, 0, 0)) * 1000
453
+
454
+
455
+ def _record_stime(record: Any) -> bytes:
456
+ """A record's start as the TUTK STimeDay the delete request carries."""
457
+ from .sd_playback import _java_day_of_week
458
+
459
+ return struct.pack(
460
+ "<HBBBBBB",
461
+ record.year,
462
+ record.month,
463
+ record.day,
464
+ _java_day_of_week(record.year, record.month, record.day),
465
+ record.hour,
466
+ record.minute,
467
+ record.second,
468
+ )
469
+
470
+
471
+ def sd_thumbnail_request(records: "list", channel: int) -> bytes:
472
+ """The 0x4b9 payload: request channel (u32 LE) then each recording's start
473
+ as epoch ms (i64 LE), as the app's getThumbnais builds it."""
474
+ out = struct.pack("<I", channel)
475
+ for r in records:
476
+ out += struct.pack("<q", _record_epoch_ms(r))
477
+ return out
478
+
479
+
480
+ def parse_sd_thumbnail(payload: bytes) -> "Optional[tuple[int, int, bytes]]":
481
+ """A 0x4ba reply as (request channel, start epoch ms, picture bytes), or
482
+ None when it is too short to be one. Read as the app reads it: 4 bytes,
483
+ 8 bytes, then everything else is the picture."""
484
+ if len(payload) < _THUMB_HEADER.size:
485
+ return None
486
+ channel, when = _THUMB_HEADER.unpack_from(payload, 0)
487
+ return channel, when, bytes(payload[_THUMB_HEADER.size :])
488
+
489
+
490
+ def sd_delete_request(
491
+ records: "list", *, delete_type: int = 0, event_type: int = 0
492
+ ) -> bytes:
493
+ """The 0x4b7 payload, as the app's deleteRecord builds it: u32 channel 0,
494
+ u32 count, u8 0, u8 1, u8 count, u8 delete type, i16 event type, then per
495
+ recording its STimeDay (8 bytes) and its index (i16). The app sends delete
496
+ type 0 and the list page's event type."""
497
+ n = len(records)
498
+ out = struct.pack("<IIBBBBh", 0, n, 0, 1, n & 0xFF, delete_type & 0xFF, event_type)
499
+ for i, r in enumerate(records):
500
+ out += _record_stime(r) + struct.pack("<h", i)
501
+ return out
502
+
503
+
504
+ class _CameraSdExtrasMixin:
505
+ """Thumbnails and deletion for card recordings; mixed into CameraMixin."""
506
+
507
+ async def async_get_sd_thumbnails(
508
+ self,
509
+ records: "list",
510
+ *,
511
+ session: Any = None,
512
+ timeout: float = 8.0,
513
+ more_timeout: float = 3.0,
514
+ ) -> "dict[Any, bytes]":
515
+ """Pictures for ``records`` (SdEvent), keyed by record, from the camera
516
+ over a live session.
517
+
518
+ The app asks for these from its live screen, which already holds the
519
+ session; a caller here does the same, passing the session or relying
520
+ on the one the serve loop holds. Each reply carries one picture and
521
+ the recording's start it belongs to; a recording the camera has no
522
+ picture for simply gets no reply. Returns what came back, possibly
523
+ nothing: an empty dict means no pictures, not a failure.
524
+ """
525
+ if session is None:
526
+ session = getattr(self, "_stream_session", None)
527
+ if not records or not _session_is_live(session):
528
+ return {}
529
+ by_ms = {_record_epoch_ms(r): r for r in records}
530
+ channel = (getattr(self, "_sd_thumb_channel", 0) % 1000) + 1
531
+ self._sd_thumb_channel = channel
532
+ try:
533
+ replies = await session.async_avio_request_all(
534
+ IOTYPE_USER_IPCAM_SD_THUMBNAIL_REQ,
535
+ sd_thumbnail_request(records, channel),
536
+ response_cmd=IOTYPE_USER_IPCAM_SD_THUMBNAIL_RESP,
537
+ timeout=timeout,
538
+ more_timeout=more_timeout,
539
+ max_replies=len(records),
540
+ )
541
+ except Exception as exc:
542
+ _LOGGER.debug(
543
+ "SD thumbnails failed for %s: %s", getattr(self, "device_id", "?"), exc
544
+ )
545
+ return {}
546
+ out: "dict[Any, bytes]" = {}
547
+ for reply in replies:
548
+ parsed = parse_sd_thumbnail(reply.payload)
549
+ if parsed is None:
550
+ continue
551
+ _ch, when, picture = parsed
552
+ record = by_ms.get(when)
553
+ if record is not None and picture:
554
+ out[record] = picture
555
+ return out
556
+
557
+ async def async_delete_sd_recordings(
558
+ self,
559
+ records: "list",
560
+ *,
561
+ session: Any = None,
562
+ timeout: float = 8.0,
563
+ ) -> "Optional[bool]":
564
+ """Delete ``records`` from the card. True when the camera said done,
565
+ False when it refused, None when there was no live session to ask
566
+ through or it did not answer. Destructive and unconfirmed by the
567
+ camera beyond its one status byte; callers should ask the user first.
568
+ """
569
+ if session is None:
570
+ session = getattr(self, "_stream_session", None)
571
+ if not records or not _session_is_live(session):
572
+ return None
573
+ event_type = int(getattr(records[0], "event", 0)) if len(records) == 1 else 0
574
+ try:
575
+ reply = await session.async_avio_request(
576
+ IOTYPE_USER_IPCAM_DELLISTEVENT_REQ,
577
+ sd_delete_request(records, event_type=event_type),
578
+ response_cmd=IOTYPE_USER_IPCAM_DELLISTEVENT_RESP,
579
+ timeout=timeout,
580
+ )
581
+ except Exception as exc:
582
+ _LOGGER.debug(
583
+ "SD delete failed for %s: %s", getattr(self, "device_id", "?"), exc
584
+ )
585
+ return None
586
+ if reply is None:
587
+ return None
588
+ ok = bool(reply.payload) and reply.payload[0] == 0
589
+ _LOGGER.info(
590
+ "camera %s: delete of %d card recording(s) %s",
591
+ getattr(self, "device_id", "?"),
592
+ len(records),
593
+ "done" if ok else "refused (%r)" % bytes(reply.payload[:4]),
594
+ )
595
+ return ok
@@ -55,11 +55,11 @@ from .rtsp_publish import (
55
55
  is_publishable_url,
56
56
  )
57
57
  from .protocol import (
58
+ dispatch_avio_frames,
58
59
  ipc_envelope,
59
60
  avio_frame,
60
61
  avio_header,
61
62
  mask_sdp_secrets,
62
- AVIO_HDR_LEN,
63
63
  REMB_TARGET_BPS,
64
64
  AvioResponseRouter,
65
65
  NackTracker,
@@ -530,37 +530,8 @@ def _sctp_parse_init_ack(pkt: bytes, state: dict) -> Optional[bytes]:
530
530
 
531
531
 
532
532
  def _dispatch_sctp_avio(responses, payload) -> bool:
533
- """Offer an inbound SCTP DATA payload to the AVIO response router.
534
-
535
- This is where the camera's replies actually arrive on SDES: an encrypted
536
- SCTP DATA chunk (PPID 53) on the same channel we send LIVING, the heartbeat
537
- and SPEAKERSTART on - not the TUTK-audio framing the audio forward path
538
- watches. Wiring only the latter is why a camera that answered SPEAKERSTART
539
- in moments looked silent.
540
-
541
- True if it answered something we were waiting for. Never raises and never
542
- blocks: it runs inline on the bridge receive loop, where a bad frame must
543
- not be able to take the media path down with it.
544
- """
545
- if responses is None or not payload:
546
- return False
547
- answered = False
548
- try:
549
- view = memoryview(payload)
550
- while len(view) >= AVIO_HDR_LEN:
551
- frame = parse_avio_response(bytes(view))
552
- if frame is None:
553
- break
554
- if responses.dispatch(bytes(view)):
555
- answered = True
556
- # One chunk can carry more than one frame: 5377 declares a 12-byte
557
- # payload and has been seen arriving in a 140-byte chunk. Reading
558
- # only the first would lose a reply batched behind a notify, which
559
- # presents as the camera intermittently not answering.
560
- view = view[AVIO_HDR_LEN + len(frame.payload) :]
561
- except Exception:
562
- return answered
563
- return answered
533
+ """SDES control frames: see :func:`protocol.dispatch_avio_frames`."""
534
+ return dispatch_avio_frames(responses, payload)
564
535
 
565
536
 
566
537
  def _widen_media_rcvbuf(sock, kind: str, device_id: str = "?") -> int:
@@ -45,6 +45,7 @@ from .constants import (
45
45
  from .sdes_open import _answer_sdp_can_nominate
46
46
  from .webrtc import WebRTCSession, dtls_send_avio
47
47
  from .protocol import (
48
+ dispatch_avio_frames,
48
49
  ipc_envelope,
49
50
  mask_sdp_secrets,
50
51
  AvioResponseRouter,
@@ -2929,7 +2930,7 @@ async def _dtls_open_peer_connection_setup(self, ps: _DtlsOpenState) -> None:
2929
2930
  def _on_remote_dc_message(message) -> None:
2930
2931
  try:
2931
2932
  if isinstance(message, (bytes, bytearray)):
2932
- ps._avio_responses.dispatch(bytes(message))
2933
+ dispatch_avio_frames(ps._avio_responses, bytes(message))
2933
2934
  ps._trace(
2934
2935
  f"DC[remote:{channel.label}] RX {len(message)}B"
2935
2936
  f" cmd={_avio_cmd_id(message)}"
@@ -3018,7 +3019,7 @@ async def _dtls_open_peer_connection_setup(self, ps: _DtlsOpenState) -> None:
3018
3019
  def _on_kvs_dc_message(message) -> None:
3019
3020
  try:
3020
3021
  if isinstance(message, (bytes, bytearray)):
3021
- ps._avio_responses.dispatch(bytes(message))
3022
+ dispatch_avio_frames(ps._avio_responses, bytes(message))
3022
3023
  ps._trace(
3023
3024
  f"DC[{_dc_label}] RX {len(message)}B"
3024
3025
  f" cmd={_avio_cmd_id(message)}"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-aidot-cameras"
7
- version = "1.1.1"
7
+ version = "1.3.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"