python-aidot-cameras 1.0.0rc67__tar.gz → 1.0.0rc69__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.
- {python_aidot_cameras-1.0.0rc67/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0rc69}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/protocol.py +62 -0
- python_aidot_cameras-1.0.0rc69/aidot_cameras/camera/sd_listing.py +421 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/pyproject.toml +1 -1
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_avio_request.py +81 -0
- python_aidot_cameras-1.0.0rc69/tests/test_sd_listing.py +621 -0
- python_aidot_cameras-1.0.0rc67/aidot_cameras/camera/sd_listing.py +0 -188
- python_aidot_cameras-1.0.0rc67/tests/test_sd_listing.py +0 -245
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/README.md +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_upstream.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/agc.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/client.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/health.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/sdes_open.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/lan_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/settings.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/python_aidot_cameras.egg-info/SOURCES.txt +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_avio_header_single_layout.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_refusal_after_the_echo.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_every_exception_is_exported.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_health_line.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_health_line_counts_pictures.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ipc_envelope_single_builder.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_retry_short_sessions.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_retry_stops_on_close.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_loop_break_ends_the_loop.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_mypy_new_findings.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_open_errors_are_aidot_errors.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_phase_returns_reach_the_caller.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_phase_state_is_complete.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_plaintext_mqtt_refused.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_region_allowlist.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback_clock.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback_dtls.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback_entry.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback_media_hold.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sd_playback_open.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_echo_wait_is_not_dead_time.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_open_yields_the_loop.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_loop_releases_on_error.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_session_mode_seq.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_settings_registry.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_stun_attr_single_builder.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_swallowed_exception_names.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_tmmbr.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_turn_target_shared.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_unreachable_nominee_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/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.0.
|
|
3
|
+
Version: 1.0.0rc69
|
|
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
|
{python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/aidot_cameras/camera/protocol.py
RENAMED
|
@@ -3847,6 +3847,68 @@ class AvioRequestMixin:
|
|
|
3847
3847
|
return None
|
|
3848
3848
|
return await waiter.result(timeout)
|
|
3849
3849
|
|
|
3850
|
+
async def async_avio_request_all(
|
|
3851
|
+
self,
|
|
3852
|
+
cmd: int,
|
|
3853
|
+
payload: bytes = b"",
|
|
3854
|
+
*,
|
|
3855
|
+
response_cmd: int,
|
|
3856
|
+
timeout: float = AVIO_RESPONSE_TIMEOUT_S,
|
|
3857
|
+
more_timeout: float = AVIO_RESPONSE_TIMEOUT_S,
|
|
3858
|
+
max_replies: int = 64,
|
|
3859
|
+
budget: "Optional[float]" = None,
|
|
3860
|
+
done=None,
|
|
3861
|
+
) -> "list[AvioResponse]":
|
|
3862
|
+
"""Send ``cmd`` once and return every ``response_cmd`` reply it draws.
|
|
3863
|
+
|
|
3864
|
+
For a command the camera answers in several packets with no further
|
|
3865
|
+
request: the SD listing sends a 7-day window as one 255-record page
|
|
3866
|
+
after another, all unprompted. ``async_avio_request`` keeps the first
|
|
3867
|
+
and the rest arrive with nobody waiting, so a caller saw the oldest
|
|
3868
|
+
255 recordings and never today's.
|
|
3869
|
+
|
|
3870
|
+
Every waiter is registered before the send, for the same reason as the
|
|
3871
|
+
single request: the pages follow each other faster than a waiter
|
|
3872
|
+
registered after the first reply could catch the second. Collection
|
|
3873
|
+
stops at the first wait that times out (``timeout`` for the first
|
|
3874
|
+
reply, ``more_timeout`` after it), at ``max_replies``, once ``budget``
|
|
3875
|
+
seconds have passed since the send, or as soon as ``done(replies)`` is
|
|
3876
|
+
true. An empty list means nothing came back.
|
|
3877
|
+
|
|
3878
|
+
Replies are matched on ``response_cmd`` alone, so two of these for the
|
|
3879
|
+
same command at once on one session can take each other's replies.
|
|
3880
|
+
"""
|
|
3881
|
+
router = self._avio_responses
|
|
3882
|
+
waiters = [router.expect(response_cmd) for _ in range(max(1, max_replies))]
|
|
3883
|
+
replies: "list[AvioResponse]" = []
|
|
3884
|
+
try:
|
|
3885
|
+
try:
|
|
3886
|
+
sent = self._avio_cmd(cmd, payload)
|
|
3887
|
+
except Exception:
|
|
3888
|
+
sent = False
|
|
3889
|
+
if not sent:
|
|
3890
|
+
return replies
|
|
3891
|
+
loop = asyncio.get_running_loop()
|
|
3892
|
+
give_up = None if budget is None else loop.time() + budget
|
|
3893
|
+
for waiter in waiters:
|
|
3894
|
+
wait = more_timeout if replies else timeout
|
|
3895
|
+
if give_up is not None:
|
|
3896
|
+
wait = min(wait, give_up - loop.time())
|
|
3897
|
+
if wait <= 0:
|
|
3898
|
+
break
|
|
3899
|
+
resp = await waiter.result(wait)
|
|
3900
|
+
if resp is None:
|
|
3901
|
+
break
|
|
3902
|
+
replies.append(resp)
|
|
3903
|
+
if done is not None and done(replies):
|
|
3904
|
+
break
|
|
3905
|
+
finally:
|
|
3906
|
+
# The ones never reached are still registered; a stray later reply
|
|
3907
|
+
# must go to nobody rather than to a question long since answered.
|
|
3908
|
+
for waiter in waiters:
|
|
3909
|
+
waiter.cancel()
|
|
3910
|
+
return replies
|
|
3911
|
+
|
|
3850
3912
|
|
|
3851
3913
|
_SDP_SECRET_ATTRS = ("a=ice-pwd:", "a=psk:")
|
|
3852
3914
|
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
"""Ask a camera what its own SD card holds.
|
|
2
|
+
|
|
3
|
+
Stateless by design: this asks a session it is handed and returns what came
|
|
4
|
+
back. It never opens a session, never caches and never decides that listing is
|
|
5
|
+
worth waking a camera for - those are policy, and policy belongs to the caller
|
|
6
|
+
that knows what a session costs. A cloud listing is one ~200 ms request; this
|
|
7
|
+
needs a WebRTC session, which is 15-21 s on DTLS and 25-70 s cold on SDES.
|
|
8
|
+
|
|
9
|
+
Nothing here raises at the caller. A camera with no card, a firmware that
|
|
10
|
+
implements a command without answering it, and a channel that died mid-request
|
|
11
|
+
are all ordinary, and each of them has to arrive in a media browser as an empty
|
|
12
|
+
list rather than as a traceback.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import logging
|
|
16
|
+
import time
|
|
17
|
+
from datetime import datetime, UTC
|
|
18
|
+
from typing import Any, List, Optional
|
|
19
|
+
|
|
20
|
+
from .sd_events import (
|
|
21
|
+
HASLISTEVENT_REQ_CMD,
|
|
22
|
+
HASLISTEVENT_RESP_CMD,
|
|
23
|
+
LISTEVENT_REQ_CMD,
|
|
24
|
+
LISTEVENT_RESP_CMD,
|
|
25
|
+
SdRecordingList,
|
|
26
|
+
decode_hour_map,
|
|
27
|
+
decode_list_event_response,
|
|
28
|
+
haslistevent_payload,
|
|
29
|
+
listevent_payload,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
_LOGGER = logging.getLogger(__name__)
|
|
33
|
+
|
|
34
|
+
#: Long enough for a camera that answers slowly, short enough that two silent
|
|
35
|
+
#: requests cannot hold a session for more than a viewer would tolerate.
|
|
36
|
+
_SD_LIST_TIMEOUT_S = 8.0
|
|
37
|
+
|
|
38
|
+
#: How long a listing waits for its first page, and then for each next one.
|
|
39
|
+
#: The pages of one burst arrive together, but a burst can be slow to start:
|
|
40
|
+
#: a PTZ took 6.3 s to answer for a window three to six days back, and a wait
|
|
41
|
+
#: of 3 s between pages cut a 7-day reply off after two of its pages
|
|
42
|
+
#: (measured 2026-11-02). The occupancy map keeps the caller's timeout.
|
|
43
|
+
_SD_LIST_FIRST_PAGE_TIMEOUT_S = 15.0
|
|
44
|
+
_SD_MORE_PAGES_TIMEOUT_S = 10.0
|
|
45
|
+
|
|
46
|
+
#: 255 records a page, so 64 pages is over 16,000 recordings - far more than a
|
|
47
|
+
#: card holds in the 7 days a caller asks about.
|
|
48
|
+
_SD_MAX_PAGES = 64
|
|
49
|
+
|
|
50
|
+
#: The widest window one listing request asks for. An A000088 answers a
|
|
51
|
+
#: window of five days or more with page after page of records it never
|
|
52
|
+
#: filled in - all-zero dates and stray heap bytes, 7,800 slots for a card
|
|
53
|
+
#: holding one recording - and answers four days or less correctly (measured
|
|
54
|
+
#: 2026-11-02, windows of 1 to 6 days). Three days keeps a margin under that.
|
|
55
|
+
_SD_LIST_CHUNK_S = 3 * 86400.0
|
|
56
|
+
|
|
57
|
+
#: However the pages trickle in, a listing gives up collecting them after this
|
|
58
|
+
#: long, across all its windows, and reports what it has as incomplete. The
|
|
59
|
+
#: occupancy map is asked after it, with its own timeout.
|
|
60
|
+
#: Without it each page would restart the gap timer and a slow camera could
|
|
61
|
+
#: hold the session for minutes.
|
|
62
|
+
_SD_LIST_BUDGET_S = 60.0
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class _ListPages:
|
|
66
|
+
"""The pages of one listing reply, each decoded once, as it arrives."""
|
|
67
|
+
|
|
68
|
+
def __init__(self) -> None:
|
|
69
|
+
self.pages: dict = {}
|
|
70
|
+
self.undecodable = 0
|
|
71
|
+
self._total: Optional[int] = None
|
|
72
|
+
self._seen = 0
|
|
73
|
+
|
|
74
|
+
def take(self, replies: List[Any]) -> None:
|
|
75
|
+
"""Decode whatever in ``replies`` has not been decoded yet."""
|
|
76
|
+
for reply in replies[self._seen :]:
|
|
77
|
+
self._add(reply)
|
|
78
|
+
self._seen = len(replies)
|
|
79
|
+
|
|
80
|
+
def done(self, replies: List[Any]) -> bool:
|
|
81
|
+
"""The ``done`` hook: stop collecting once the reply is whole."""
|
|
82
|
+
self.take(replies)
|
|
83
|
+
return self.covered()
|
|
84
|
+
|
|
85
|
+
def _add(self, reply: Any) -> None:
|
|
86
|
+
page = decode_list_event_response(
|
|
87
|
+
bytes(reply.payload or b""), command=LISTEVENT_RESP_CMD
|
|
88
|
+
)
|
|
89
|
+
if page is None:
|
|
90
|
+
# The decode is measured from a handful of live replies and a
|
|
91
|
+
# reply with a different shape is entirely possible. It is an
|
|
92
|
+
# empty list with a logged reason, never an exception - but not
|
|
93
|
+
# a COMPLETE empty list: something came back and could not be
|
|
94
|
+
# read, so there may well be recordings behind it.
|
|
95
|
+
self.undecodable += 1
|
|
96
|
+
_LOGGER.debug(
|
|
97
|
+
"SD list reply did not decode (%d bytes)",
|
|
98
|
+
len(bytes(reply.payload or b"")),
|
|
99
|
+
)
|
|
100
|
+
return
|
|
101
|
+
if self._total is None:
|
|
102
|
+
self._total = page.total
|
|
103
|
+
elif page.total != self._total:
|
|
104
|
+
# Every page of one reply declares the same page count. One that
|
|
105
|
+
# does not is a late page of some earlier listing; mixing it in
|
|
106
|
+
# would file another window's records under this one.
|
|
107
|
+
_LOGGER.debug(
|
|
108
|
+
"SD list page declares %d pages, this reply %d: not ours",
|
|
109
|
+
page.total,
|
|
110
|
+
self._total,
|
|
111
|
+
)
|
|
112
|
+
return
|
|
113
|
+
# A page the camera sent twice is one page.
|
|
114
|
+
self.pages.setdefault(page.page_index, page)
|
|
115
|
+
|
|
116
|
+
def covered(self) -> bool:
|
|
117
|
+
"""The end flag has arrived and no page before it is missing.
|
|
118
|
+
|
|
119
|
+
``total`` is the page count the camera declared. A camera that declares
|
|
120
|
+
none (0) is held to the pages up to its end-flag page instead.
|
|
121
|
+
"""
|
|
122
|
+
ends = [i for i, p in self.pages.items() if p.end_flag == 1]
|
|
123
|
+
if not ends:
|
|
124
|
+
return False
|
|
125
|
+
want = range(self._total) if self._total else range(max(ends) + 1)
|
|
126
|
+
return set(self.pages) >= set(want)
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def records(self) -> list:
|
|
130
|
+
return [e for i in sorted(self.pages) for e in self.pages[i].events]
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def complete(self) -> bool:
|
|
134
|
+
if self.undecodable:
|
|
135
|
+
return False
|
|
136
|
+
return not self.pages or self.covered()
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _plausible(record: Any, lo: float, hi: float) -> bool:
|
|
140
|
+
"""Is this a record the camera filled in, for the window it was asked for?
|
|
141
|
+
|
|
142
|
+
An A000088 pads a reply with slots it never wrote: all-zero dates, and
|
|
143
|
+
stray heap bytes that decode to month 160. A date that cannot exist, or one
|
|
144
|
+
outside the window (a second's slack either side for the camera's
|
|
145
|
+
rounding), is not a recording.
|
|
146
|
+
"""
|
|
147
|
+
try:
|
|
148
|
+
when = datetime(
|
|
149
|
+
record.year,
|
|
150
|
+
record.month,
|
|
151
|
+
record.day,
|
|
152
|
+
record.hour,
|
|
153
|
+
record.minute,
|
|
154
|
+
record.second,
|
|
155
|
+
tzinfo=UTC,
|
|
156
|
+
).timestamp()
|
|
157
|
+
except (ValueError, OverflowError):
|
|
158
|
+
return False
|
|
159
|
+
return lo - 1 <= when <= hi + 1
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
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
|
+
return False
|
|
173
|
+
return getattr(session, "is_alive", True) is not False
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
class _CameraSdMixin:
|
|
177
|
+
"""The on-device recording query, mixed into CameraMixin."""
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def has_live_session(self) -> bool:
|
|
181
|
+
"""Is a stream session up right now?
|
|
182
|
+
|
|
183
|
+
Public because callers legitimately need to WAIT for a session without
|
|
184
|
+
asking it anything. ``start_keepalive`` returns before the handshake it
|
|
185
|
+
schedules has finished, so a caller that wants to ride the session it
|
|
186
|
+
just asked for has no way to know when that session has arrived.
|
|
187
|
+
Probing with a real request is not a substitute: once the session is up,
|
|
188
|
+
the probe IS the request, and a caller that wanted to send one request
|
|
189
|
+
has then sent two.
|
|
190
|
+
|
|
191
|
+
Best-effort, in the direction that keeps callers honest: a torn-down
|
|
192
|
+
session reads as live on a transport that does not say otherwise, so a
|
|
193
|
+
listing taken on the strength of this can still fail and every caller
|
|
194
|
+
must still handle that.
|
|
195
|
+
"""
|
|
196
|
+
return _session_is_live(getattr(self, "_stream_session", None))
|
|
197
|
+
|
|
198
|
+
async def _sd_ask(
|
|
199
|
+
self, session: Any, cmd: int, payload: bytes, response_cmd: int, timeout: float
|
|
200
|
+
) -> Optional[Any]:
|
|
201
|
+
"""One request, with every failure flattened to None."""
|
|
202
|
+
try:
|
|
203
|
+
return await session.async_avio_request(
|
|
204
|
+
cmd, payload, response_cmd=response_cmd, timeout=timeout
|
|
205
|
+
)
|
|
206
|
+
except Exception as exc:
|
|
207
|
+
_LOGGER.debug(
|
|
208
|
+
"SD request %#x failed for %s: %s",
|
|
209
|
+
cmd,
|
|
210
|
+
getattr(self, "device_id", "?"),
|
|
211
|
+
exc,
|
|
212
|
+
)
|
|
213
|
+
return None
|
|
214
|
+
|
|
215
|
+
async def _sd_ask_pages(
|
|
216
|
+
self,
|
|
217
|
+
session: Any,
|
|
218
|
+
cmd: int,
|
|
219
|
+
payload: bytes,
|
|
220
|
+
response_cmd: int,
|
|
221
|
+
timeout: float,
|
|
222
|
+
budget: float = _SD_LIST_BUDGET_S,
|
|
223
|
+
) -> "tuple[_ListPages, bool]":
|
|
224
|
+
"""Every reply page to one request, and whether any reply came back.
|
|
225
|
+
|
|
226
|
+
A session without ``async_avio_request_all`` (an older or a stand-in
|
|
227
|
+
session) is asked the single-reply way, which is the first page only.
|
|
228
|
+
|
|
229
|
+
Not safe to run two at once on one session: replies carry no id this
|
|
230
|
+
layer can match on SDES, so concurrent listings could take each other's
|
|
231
|
+
pages. Callers serialise listings per camera.
|
|
232
|
+
"""
|
|
233
|
+
pages = _ListPages()
|
|
234
|
+
ask_all = getattr(session, "async_avio_request_all", None)
|
|
235
|
+
if ask_all is None:
|
|
236
|
+
reply = await self._sd_ask(session, cmd, payload, response_cmd, timeout)
|
|
237
|
+
replies = [] if reply is None else [reply]
|
|
238
|
+
else:
|
|
239
|
+
try:
|
|
240
|
+
replies = list(
|
|
241
|
+
await ask_all(
|
|
242
|
+
cmd,
|
|
243
|
+
payload,
|
|
244
|
+
response_cmd=response_cmd,
|
|
245
|
+
timeout=timeout,
|
|
246
|
+
more_timeout=_SD_MORE_PAGES_TIMEOUT_S,
|
|
247
|
+
max_replies=_SD_MAX_PAGES,
|
|
248
|
+
budget=budget,
|
|
249
|
+
done=pages.done,
|
|
250
|
+
)
|
|
251
|
+
)
|
|
252
|
+
except Exception as exc:
|
|
253
|
+
_LOGGER.debug(
|
|
254
|
+
"SD request %#x failed for %s: %s",
|
|
255
|
+
cmd,
|
|
256
|
+
getattr(self, "device_id", "?"),
|
|
257
|
+
exc,
|
|
258
|
+
)
|
|
259
|
+
replies = []
|
|
260
|
+
pages.take(replies)
|
|
261
|
+
return pages, bool(replies)
|
|
262
|
+
|
|
263
|
+
async def _sd_list_chunks(
|
|
264
|
+
self,
|
|
265
|
+
session: Any,
|
|
266
|
+
start_ts: float,
|
|
267
|
+
end_ts: float,
|
|
268
|
+
channel: int,
|
|
269
|
+
first_page_timeout: float,
|
|
270
|
+
) -> "tuple[list, bool, bool]":
|
|
271
|
+
"""List ``start_ts``..``end_ts`` in chunks no wider than the camera handles.
|
|
272
|
+
|
|
273
|
+
Returns (records oldest first, complete, answered). Chunks are asked
|
|
274
|
+
newest first and the listing stops at the first chunk that did not come
|
|
275
|
+
back whole: a camera that goes quiet part way still gives the
|
|
276
|
+
recordings a user most wants, a dead channel costs one timeout rather
|
|
277
|
+
than one per chunk, and a page still on its way for a chunk given up on
|
|
278
|
+
cannot be read as the next chunk's answer - replies carry nothing this
|
|
279
|
+
layer can match a request on.
|
|
280
|
+
"""
|
|
281
|
+
chunks = []
|
|
282
|
+
hi = end_ts
|
|
283
|
+
while hi > start_ts:
|
|
284
|
+
lo = max(start_ts, hi - _SD_LIST_CHUNK_S)
|
|
285
|
+
chunks.append((lo, hi))
|
|
286
|
+
hi = lo
|
|
287
|
+
if not chunks:
|
|
288
|
+
# An empty or inverted window is still asked, once: answering
|
|
289
|
+
# "complete" for a listing never sent would read as an empty card.
|
|
290
|
+
chunks.append((start_ts, end_ts))
|
|
291
|
+
by_chunk = []
|
|
292
|
+
complete = True
|
|
293
|
+
answered = False
|
|
294
|
+
give_up = time.monotonic() + _SD_LIST_BUDGET_S
|
|
295
|
+
for lo, hi in chunks:
|
|
296
|
+
left = give_up - time.monotonic()
|
|
297
|
+
if left <= 0:
|
|
298
|
+
complete = False
|
|
299
|
+
break
|
|
300
|
+
pages, chunk_answered = await self._sd_ask_pages(
|
|
301
|
+
session,
|
|
302
|
+
LISTEVENT_REQ_CMD,
|
|
303
|
+
listevent_payload(lo, hi, channel=channel),
|
|
304
|
+
LISTEVENT_RESP_CMD,
|
|
305
|
+
min(first_page_timeout, left),
|
|
306
|
+
budget=left,
|
|
307
|
+
)
|
|
308
|
+
if not chunk_answered:
|
|
309
|
+
complete = False
|
|
310
|
+
break
|
|
311
|
+
answered = True
|
|
312
|
+
records = pages.records
|
|
313
|
+
kept = [r for r in records if _plausible(r, lo, hi)]
|
|
314
|
+
by_chunk.append(kept)
|
|
315
|
+
if len(kept) != len(records):
|
|
316
|
+
complete = False
|
|
317
|
+
_LOGGER.debug(
|
|
318
|
+
"SD list for %s: %d of %d records unfilled or outside the window",
|
|
319
|
+
getattr(self, "device_id", "?"),
|
|
320
|
+
len(records) - len(kept),
|
|
321
|
+
len(records),
|
|
322
|
+
)
|
|
323
|
+
if not pages.complete:
|
|
324
|
+
complete = False
|
|
325
|
+
break
|
|
326
|
+
out: list = []
|
|
327
|
+
# Newest chunk was asked first; hand them back oldest first. Two
|
|
328
|
+
# neighbouring chunks share an edge second, so a record on it can come
|
|
329
|
+
# back in both - and only there is a repeat not a record of its own.
|
|
330
|
+
previous: set = set()
|
|
331
|
+
for records in reversed(by_chunk):
|
|
332
|
+
out.extend(r for r in records if r not in previous)
|
|
333
|
+
previous = set(records)
|
|
334
|
+
return out, complete, answered
|
|
335
|
+
|
|
336
|
+
async def async_get_sd_recordings(
|
|
337
|
+
self,
|
|
338
|
+
*,
|
|
339
|
+
session: Any = None,
|
|
340
|
+
days: int = 7,
|
|
341
|
+
channel: int = 0,
|
|
342
|
+
timeout: Optional[float] = None,
|
|
343
|
+
) -> Optional[SdRecordingList]:
|
|
344
|
+
"""What the card holds over the last ``days``, or None if we could not ask.
|
|
345
|
+
|
|
346
|
+
**Three outcomes, not two, and a caller has to be able to tell them
|
|
347
|
+
apart.** A browser that collapses any two of them shows a user the same
|
|
348
|
+
empty folder for opposite reasons, which is the failure this whole
|
|
349
|
+
subsystem was built to stop:
|
|
350
|
+
|
|
351
|
+
* ``None`` - there was no session to ask through. Nothing was sent.
|
|
352
|
+
* ``answered=False`` - the requests went out and the camera said
|
|
353
|
+
nothing at all. This is what a model that does not implement the
|
|
354
|
+
commands looks like, and also what a channel that has just died
|
|
355
|
+
looks like; it is NOT a statement about the card.
|
|
356
|
+
* ``answered=True`` - the camera replied. Only now does an empty
|
|
357
|
+
``records`` mean the card holds nothing in this window.
|
|
358
|
+
|
|
359
|
+
Asks with event selector 0. The vendor's app sends 0x12 and on a
|
|
360
|
+
card-bearing A000088 that returns an EMPTY page while 0 returns the
|
|
361
|
+
records - measured 2026-08-11, same session, same window.
|
|
362
|
+
|
|
363
|
+
The list is asked in windows of at most three days, newest first: an
|
|
364
|
+
A000088 answers a window of five days or more with records it never
|
|
365
|
+
filled in. One request for the occupancy map. Each list reply is paged,
|
|
366
|
+
255 records a page, oldest first, and the camera sends every page
|
|
367
|
+
unprompted: there is no continuation request and none is needed. All of
|
|
368
|
+
them are collected (measured 2026-11-01: a PTZ's 7-day window was four
|
|
369
|
+
pages, 824 records, and reading only the first stopped six days short
|
|
370
|
+
of today). A record whose date cannot exist or falls outside the window
|
|
371
|
+
it was asked for is one the camera did not fill in, and is dropped. The
|
|
372
|
+
listing stops at the first window that did not come back whole, and
|
|
373
|
+
``complete=False`` then, and when a record was dropped.
|
|
374
|
+
"""
|
|
375
|
+
session = (
|
|
376
|
+
session if session is not None else getattr(self, "_stream_session", None)
|
|
377
|
+
)
|
|
378
|
+
# No session is "could not ask", and so is a session already known to
|
|
379
|
+
# be torn down: there is no point spending two timeouts on one. Shared
|
|
380
|
+
# with `has_live_session` so a caller waiting for a session to exist and
|
|
381
|
+
# this call deciding it has one cannot come to different answers.
|
|
382
|
+
if not _session_is_live(session):
|
|
383
|
+
return None
|
|
384
|
+
|
|
385
|
+
end_ts = time.time()
|
|
386
|
+
start_ts = end_ts - days * 86400
|
|
387
|
+
|
|
388
|
+
# A caller's own timeout is used as given. Without one, a list page
|
|
389
|
+
# gets the longer wait a slow card scan needs and the map the usual one.
|
|
390
|
+
map_timeout = _SD_LIST_TIMEOUT_S if timeout is None else timeout
|
|
391
|
+
records, complete, list_answered = await self._sd_list_chunks(
|
|
392
|
+
session,
|
|
393
|
+
start_ts,
|
|
394
|
+
end_ts,
|
|
395
|
+
channel,
|
|
396
|
+
_SD_LIST_FIRST_PAGE_TIMEOUT_S if timeout is None else timeout,
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
hours = None
|
|
400
|
+
map_reply = await self._sd_ask(
|
|
401
|
+
session,
|
|
402
|
+
HASLISTEVENT_REQ_CMD,
|
|
403
|
+
haslistevent_payload(start_ts, end_ts, channel=channel),
|
|
404
|
+
HASLISTEVENT_RESP_CMD,
|
|
405
|
+
map_timeout,
|
|
406
|
+
)
|
|
407
|
+
if map_reply is not None:
|
|
408
|
+
hours = decode_hour_map(
|
|
409
|
+
bytes(map_reply.payload or b""), command=HASLISTEVENT_RESP_CMD
|
|
410
|
+
)
|
|
411
|
+
|
|
412
|
+
return SdRecordingList(
|
|
413
|
+
records=records,
|
|
414
|
+
hours=hours,
|
|
415
|
+
# Either reply is enough to prove the camera is listening. Both
|
|
416
|
+
# silent is the case that must never read as an empty card.
|
|
417
|
+
answered=list_answered or map_reply is not None,
|
|
418
|
+
complete=complete,
|
|
419
|
+
start_ts=start_ts,
|
|
420
|
+
end_ts=end_ts,
|
|
421
|
+
)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-aidot-cameras"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0rc69"
|
|
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.0.
|
|
3
|
+
Version: 1.0.0rc69
|
|
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
|
{python_aidot_cameras-1.0.0rc67 → python_aidot_cameras-1.0.0rc69}/tests/test_avio_request.py
RENAMED
|
@@ -218,3 +218,84 @@ async def test_dispatching_a_frame_nobody_asked_for_is_harmless():
|
|
|
218
218
|
session = _dtls_session(SimpleNamespace(send=lambda data: None))
|
|
219
219
|
assert session.dispatch_avio_frame(_reply()) is False
|
|
220
220
|
assert session.dispatch_avio_frame(b"junk") is False
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
async def test_a_request_answered_in_several_replies_returns_them_all():
|
|
224
|
+
"""The SD listing sends its pages back to back with no further request.
|
|
225
|
+
|
|
226
|
+
The second reply follows the first immediately; a waiter registered only
|
|
227
|
+
after the first reply came back would miss it.
|
|
228
|
+
"""
|
|
229
|
+
session = None
|
|
230
|
+
|
|
231
|
+
def _send_and_answer(data):
|
|
232
|
+
for body in (b"\x00\x01", b"\x00\x02", b"\x00\x03"):
|
|
233
|
+
session.dispatch_avio_frame(_reply(payload=body))
|
|
234
|
+
|
|
235
|
+
session = _dtls_session(SimpleNamespace(send=_send_and_answer))
|
|
236
|
+
|
|
237
|
+
got = await session.async_avio_request_all(
|
|
238
|
+
SETSTREAMCTRL,
|
|
239
|
+
response_cmd=SETSTREAMCTRL_RESP,
|
|
240
|
+
timeout=2.0,
|
|
241
|
+
more_timeout=0.05,
|
|
242
|
+
)
|
|
243
|
+
assert [r.payload for r in got] == [b"\x00\x01", b"\x00\x02", b"\x00\x03"]
|
|
244
|
+
# Nothing left registered: a reply that turns up later belongs to nobody.
|
|
245
|
+
assert session.dispatch_avio_frame(_reply()) is False
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
async def test_collecting_replies_stops_when_the_caller_has_enough():
|
|
249
|
+
session = None
|
|
250
|
+
|
|
251
|
+
def _send_and_answer(data):
|
|
252
|
+
for body in (b"\x00\x01", b"\x00\x02", b"\x00\x03"):
|
|
253
|
+
session.dispatch_avio_frame(_reply(payload=body))
|
|
254
|
+
|
|
255
|
+
session = _dtls_session(SimpleNamespace(send=_send_and_answer))
|
|
256
|
+
|
|
257
|
+
got = await session.async_avio_request_all(
|
|
258
|
+
SETSTREAMCTRL,
|
|
259
|
+
response_cmd=SETSTREAMCTRL_RESP,
|
|
260
|
+
timeout=2.0,
|
|
261
|
+
done=lambda replies: len(replies) == 2,
|
|
262
|
+
)
|
|
263
|
+
assert [r.payload for r in got] == [b"\x00\x01", b"\x00\x02"]
|
|
264
|
+
assert session.dispatch_avio_frame(_reply()) is False
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
async def test_collecting_replies_to_a_command_that_could_not_be_sent():
|
|
268
|
+
session = _dtls_session(None) # DataChannel not open
|
|
269
|
+
|
|
270
|
+
loop = asyncio.get_running_loop()
|
|
271
|
+
started = loop.time()
|
|
272
|
+
got = await session.async_avio_request_all(
|
|
273
|
+
SETSTREAMCTRL, response_cmd=SETSTREAMCTRL_RESP, timeout=30.0
|
|
274
|
+
)
|
|
275
|
+
assert got == []
|
|
276
|
+
assert loop.time() - started < 1.0
|
|
277
|
+
assert session.dispatch_avio_frame(_reply()) is False
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
async def test_collecting_replies_gives_up_once_its_budget_is_spent():
|
|
281
|
+
"""Each reply restarts the gap timer; the budget bounds the whole wait."""
|
|
282
|
+
session = _dtls_session(SimpleNamespace(send=lambda data: None))
|
|
283
|
+
|
|
284
|
+
async def _trickle():
|
|
285
|
+
for _ in range(20):
|
|
286
|
+
await asyncio.sleep(0.03)
|
|
287
|
+
session.dispatch_avio_frame(_reply())
|
|
288
|
+
|
|
289
|
+
feeder = asyncio.create_task(_trickle())
|
|
290
|
+
loop = asyncio.get_running_loop()
|
|
291
|
+
started = loop.time()
|
|
292
|
+
got = await session.async_avio_request_all(
|
|
293
|
+
SETSTREAMCTRL,
|
|
294
|
+
response_cmd=SETSTREAMCTRL_RESP,
|
|
295
|
+
timeout=1.0,
|
|
296
|
+
more_timeout=1.0,
|
|
297
|
+
budget=0.2,
|
|
298
|
+
)
|
|
299
|
+
feeder.cancel()
|
|
300
|
+
assert 1 <= len(got) < 20
|
|
301
|
+
assert loop.time() - started < 0.5
|