python-aidot-cameras 1.3.4__tar.gz → 1.4.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.
- {python_aidot_cameras-1.3.4/python_aidot_cameras.egg-info → python_aidot_cameras-1.4.0}/PKG-INFO +10 -1
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/README.md +9 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/__init__.py +2 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/client.py +193 -8
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/controls.py +106 -2
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/models.py +52 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/protocol.py +25 -4
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/sd_listing.py +37 -3
- python_aidot_cameras-1.4.0/aidot_cameras/camera/stream_health.py +362 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/pyproject.toml +5 -3
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0/python_aidot_cameras.egg-info}/PKG-INFO +10 -1
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/python_aidot_cameras.egg-info/SOURCES.txt +7 -0
- python_aidot_cameras-1.4.0/tests/test_credentials.py +206 -0
- python_aidot_cameras-1.4.0/tests/test_crypto.py +69 -0
- python_aidot_cameras-1.4.0/tests/test_discover.py +227 -0
- python_aidot_cameras-1.4.0/tests/test_firmware_info.py +295 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_idle_release_both_loops.py +12 -4
- python_aidot_cameras-1.4.0/tests/test_lan_control_framing.py +71 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_persistent_mqtt_robustness.py +53 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_thumbnails_and_delete.py +82 -0
- python_aidot_cameras-1.4.0/tests/test_stream_health.py +688 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/LICENSE +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_private_file.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_upstream.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/aac_track.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/agc.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/health.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/rtsp_publish.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/sdes_open.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/lan_retry.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/mqtt_config2.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/aidot_cameras/settings.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/setup.cfg +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_avio_header_single_layout.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_camera_closed_session.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_camera_power.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_controls_ride_the_direct_session.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_open_pacer.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_refusal_after_the_echo.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_serve_backoff.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_event_notice_watch.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_every_exception_is_exported.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_g711_law_conversion.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_health_line.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_health_line_counts_pictures.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ipc_envelope_single_builder.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_retry_short_sessions.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_retry_stops_on_close.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_loop_break_ends_the_loop.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mqtt_config2.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_mypy_new_findings.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_open_errors_are_aidot_errors.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_phase_returns_reach_the_caller.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_phase_state_is_complete.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_plaintext_mqtt_refused.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_region_allowlist.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sctp_in_order.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_clock.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_controls.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_dtls.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_end.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_entry.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_media_hold.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sd_playback_open.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_open_yields_the_loop.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_loop_releases_on_error.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_session_mode_seq.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_set_dev_attr_payload.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_settings_registry.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sleep_camera.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stream_settings.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_stun_attr_single_builder.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_swallowed_exception_names.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_turn_target_shared.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_unbind_notice.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.3.4 → python_aidot_cameras-1.4.0}/tests/test_webrtc_answer_race.py +0 -0
{python_aidot_cameras-1.3.4/python_aidot_cameras.egg-info → python_aidot_cameras-1.4.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.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
|
|
@@ -291,6 +291,15 @@ that the camera rebooted (a reboot succeeds by dropping off the network), and
|
|
|
291
291
|
it refuses when the cloud reports the camera offline. For a few seconds after,
|
|
292
292
|
a viewer gets a session that connects and delivers nothing.
|
|
293
293
|
|
|
294
|
+
### Firmware version check
|
|
295
|
+
|
|
296
|
+
`info = await device_client.async_get_firmware_info()` asks the cloud whether
|
|
297
|
+
a newer firmware is on offer, as the AiDot app does when its live page opens.
|
|
298
|
+
It returns a `FirmwareInfo` (`installed_version`, `latest_version`,
|
|
299
|
+
`update_available`; `release_notes` is `None` for now) or `None` when unknown.
|
|
300
|
+
It is read-only: installing stays in the AiDot app. The cloud answers by
|
|
301
|
+
itself, so it works for a sleeping battery camera and never wakes one.
|
|
302
|
+
|
|
294
303
|
### Sound detection
|
|
295
304
|
|
|
296
305
|
```python
|
|
@@ -241,6 +241,15 @@ that the camera rebooted (a reboot succeeds by dropping off the network), and
|
|
|
241
241
|
it refuses when the cloud reports the camera offline. For a few seconds after,
|
|
242
242
|
a viewer gets a session that connects and delivers nothing.
|
|
243
243
|
|
|
244
|
+
### Firmware version check
|
|
245
|
+
|
|
246
|
+
`info = await device_client.async_get_firmware_info()` asks the cloud whether
|
|
247
|
+
a newer firmware is on offer, as the AiDot app does when its live page opens.
|
|
248
|
+
It returns a `FirmwareInfo` (`installed_version`, `latest_version`,
|
|
249
|
+
`update_available`; `release_notes` is `None` for now) or `None` when unknown.
|
|
250
|
+
It is read-only: installing stays in the AiDot app. The cloud answers by
|
|
251
|
+
itself, so it works for a sleeping battery camera and never wakes one.
|
|
252
|
+
|
|
244
253
|
### Sound detection
|
|
245
254
|
|
|
246
255
|
```python
|
|
@@ -20,6 +20,7 @@ from .settings import StreamSettings
|
|
|
20
20
|
# not drag in av or aiortc, so a plain (non-[webrtc]) install still imports.
|
|
21
21
|
from .camera.models import CameraDeviceInformation, CameraStatusData
|
|
22
22
|
from .camera.sdes import SdesSession
|
|
23
|
+
from .camera.stream_health import StreamHealth
|
|
23
24
|
from .camera.webrtc import WebRTCSession
|
|
24
25
|
from .discover import CameraDiscover, Discover
|
|
25
26
|
from .exceptions import (
|
|
@@ -200,6 +201,7 @@ __all__ = [
|
|
|
200
201
|
"InvalidURL",
|
|
201
202
|
"RtspPublishError",
|
|
202
203
|
"SdesSession",
|
|
204
|
+
"StreamHealth",
|
|
203
205
|
"StreamSettings",
|
|
204
206
|
"WebRTCSession",
|
|
205
207
|
"configure_stream_limits",
|
|
@@ -121,6 +121,7 @@ from .protocol import ( # noqa: F401 - re-exported for device_client / back-com
|
|
|
121
121
|
from .. import settings
|
|
122
122
|
from ..mqtt_config2 import broker_url as _mqtt_broker_url
|
|
123
123
|
from .health import HealthReporter, dtls_snapshot as _dtls_snapshot
|
|
124
|
+
from . import stream_health as _sh
|
|
124
125
|
|
|
125
126
|
_LOGGER = logging.getLogger(__name__)
|
|
126
127
|
|
|
@@ -1542,6 +1543,42 @@ class _DtlsServeLoopState:
|
|
|
1542
1543
|
_grace_dtls: "Any" = dataclasses.field(init=False) # prepare_session
|
|
1543
1544
|
|
|
1544
1545
|
|
|
1546
|
+
def _open_failure_reason(exc: BaseException) -> str:
|
|
1547
|
+
"""The stream-health end reason for an open that raised ``exc``."""
|
|
1548
|
+
if isinstance(exc, AidotCameraBusy):
|
|
1549
|
+
return _sh.END_BUSY
|
|
1550
|
+
if isinstance(exc, AidotCameraNotReady):
|
|
1551
|
+
return _sh.END_NOT_READY
|
|
1552
|
+
if isinstance(exc, AidotCameraWrongCodec):
|
|
1553
|
+
return _sh.END_WRONG_CODEC
|
|
1554
|
+
if isinstance(exc, AidotCameraNoMedia):
|
|
1555
|
+
return _sh.END_NO_MEDIA
|
|
1556
|
+
return _sh.END_OPEN_FAILED
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
def _backoff_wait_s(dev: Any, delay: float) -> float:
|
|
1560
|
+
"""The longest ``_backoff_or_offline_pause(delay)`` will wait: ``delay``,
|
|
1561
|
+
or the offline probe interval when it will hold for the camera to come
|
|
1562
|
+
back. Asked just before that wait, for stream health's ``retry_delay_s``,
|
|
1563
|
+
which must not promise a reopen sooner than one will happen."""
|
|
1564
|
+
return _OFFLINE_PROBE_S if _cloud_says_unavailable(dev) else delay
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
def _dtls_end_reason(why: str, camera_closed: bool) -> str:
|
|
1568
|
+
"""The stream-health end reason for a DTLS session whose last serve cycle
|
|
1569
|
+
ended for ``why`` (the serve cycle's own words)."""
|
|
1570
|
+
if camera_closed:
|
|
1571
|
+
return _sh.END_CAMERA_CLOSED
|
|
1572
|
+
if why.startswith("no video"):
|
|
1573
|
+
return _sh.END_NO_VIDEO
|
|
1574
|
+
if why.startswith("publish ended"):
|
|
1575
|
+
return _sh.END_SERVE_ENDED
|
|
1576
|
+
# "connection <state>", and a session whose connection was gone before a
|
|
1577
|
+
# serve cycle could start ("stopped before serving" on a loop still
|
|
1578
|
+
# active). A stop or an idle release never reaches the session end.
|
|
1579
|
+
return _sh.END_CONNECTION_LOST
|
|
1580
|
+
|
|
1581
|
+
|
|
1545
1582
|
async def _dtls_serve_loop_open_attempt(
|
|
1546
1583
|
self, ps: _DtlsServeLoopState
|
|
1547
1584
|
) -> _PhaseReturn | _LoopContinue | None:
|
|
@@ -1569,6 +1606,7 @@ async def _dtls_serve_loop_open_attempt(
|
|
|
1569
1606
|
except asyncio.CancelledError:
|
|
1570
1607
|
return _PhaseReturn(None)
|
|
1571
1608
|
ps._last_open_at = ps.loop.time()
|
|
1609
|
+
_sh._tracker_of(self).opening(ps._last_open_at)
|
|
1572
1610
|
try:
|
|
1573
1611
|
ps.session = await self.async_open_webrtc_stream(
|
|
1574
1612
|
on_frame=lambda _f: None,
|
|
@@ -1633,6 +1671,11 @@ async def _dtls_serve_loop_open_attempt(
|
|
|
1633
1671
|
_n,
|
|
1634
1672
|
exc,
|
|
1635
1673
|
)
|
|
1674
|
+
# A quick retry of the not-ready burst is an encoder still warming up:
|
|
1675
|
+
# one connect, as the SDES loop reports the same answer.
|
|
1676
|
+
_sh._tracker_of(self).ended(
|
|
1677
|
+
_open_failure_reason(exc), _delay, still_connecting=_burst is not None
|
|
1678
|
+
)
|
|
1636
1679
|
try:
|
|
1637
1680
|
await self._chunked_wait(
|
|
1638
1681
|
_delay,
|
|
@@ -1843,6 +1886,11 @@ async def _dtls_serve_loop_serve_cycle(
|
|
|
1843
1886
|
_dead = ps._pc_dead()
|
|
1844
1887
|
if _dead or progress[0] > _p0:
|
|
1845
1888
|
break
|
|
1889
|
+
if not _dead and _video_has_started(_current_video_canary(self, ps.pc)):
|
|
1890
|
+
# Video, by the test the no-video verdict below uses. Not
|
|
1891
|
+
# progress: the mux writes audio too, and a session with
|
|
1892
|
+
# audio alone is not streaming.
|
|
1893
|
+
_sh._tracker_of(self).media_started(ps.loop.time())
|
|
1846
1894
|
# The serve is bound before the mux starts, so once a frame
|
|
1847
1895
|
# has been written (progress moved above) it is ready; the
|
|
1848
1896
|
# short margin below is kept from the ffmpeg serve, whose
|
|
@@ -1929,6 +1977,11 @@ async def _dtls_serve_loop_serve_cycle(
|
|
|
1929
1977
|
self, _current_video_canary(self, ps.pc)
|
|
1930
1978
|
):
|
|
1931
1979
|
_first_video_at = _now
|
|
1980
|
+
if _first_video_at is not None:
|
|
1981
|
+
# Video seen: streaming. (A no-op once said; the
|
|
1982
|
+
# serve-ready wait above usually says it.) Audio alone
|
|
1983
|
+
# moves progress and is not enough.
|
|
1984
|
+
_sh._tracker_of(self).media_started(_now)
|
|
1932
1985
|
if (
|
|
1933
1986
|
_video_presence_verdict(
|
|
1934
1987
|
_first_video_at, _connected_at, _now, _vid_grace
|
|
@@ -2024,6 +2077,8 @@ async def _dtls_serve_loop_serve_cycle(
|
|
|
2024
2077
|
and _note_video_started(self, _current_video_canary(self, ps.pc))
|
|
2025
2078
|
):
|
|
2026
2079
|
_first_video_at = ps.loop.time()
|
|
2080
|
+
# So the end of this session is not counted as a failure.
|
|
2081
|
+
_sh._tracker_of(self).media_started(_first_video_at)
|
|
2027
2082
|
# When this cycle stopped serving, taken before the teardown
|
|
2028
2083
|
# below (a mux join of up to 2 s, a backoff of up to 10 s, then
|
|
2029
2084
|
# the session's stop), which would otherwise carry a
|
|
@@ -2184,7 +2239,9 @@ async def _dtls_serve_loop_session_end(
|
|
|
2184
2239
|
if not self._streaming_active:
|
|
2185
2240
|
return None
|
|
2186
2241
|
_n = ps._session_pacer.attempt
|
|
2242
|
+
_end_reason = _dtls_end_reason(str(ps._session_end_reason), _camera_close)
|
|
2187
2243
|
if _wait is None:
|
|
2244
|
+
_sh._tracker_of(self).ending(_end_reason)
|
|
2188
2245
|
_LOGGER.warning(
|
|
2189
2246
|
"camera %s: %d DTLS sessions in a row ended within %.0fs or "
|
|
2190
2247
|
"delivered no video (the last: %.0fs, %s, %s) - stopping the "
|
|
@@ -2205,6 +2262,7 @@ async def _dtls_serve_loop_session_end(
|
|
|
2205
2262
|
# which keys on the keepalive having ended.
|
|
2206
2263
|
await self._go_dormant(release_url=False, why="session abandon")
|
|
2207
2264
|
return _PhaseReturn(None)
|
|
2265
|
+
_sh._tracker_of(self).ended(_end_reason, _wait)
|
|
2208
2266
|
if not _wait:
|
|
2209
2267
|
if _camera_close:
|
|
2210
2268
|
_LOGGER.info(
|
|
@@ -2312,6 +2370,7 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2312
2370
|
)
|
|
2313
2371
|
ps._peer_reuses = 0
|
|
2314
2372
|
ps._peer_reuses += 1
|
|
2373
|
+
_sh._tracker_of(self).opening(time.monotonic())
|
|
2315
2374
|
try:
|
|
2316
2375
|
ps.session = await self.async_open_webrtc_stream(
|
|
2317
2376
|
rtsp_push_url=self._keepalive_rtsp_url,
|
|
@@ -2355,6 +2414,7 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2355
2414
|
busy,
|
|
2356
2415
|
_BUSY_BACKOFF_S,
|
|
2357
2416
|
)
|
|
2417
|
+
_sh._tracker_of(self).ended(_sh.END_BUSY, _BUSY_BACKOFF_S)
|
|
2358
2418
|
try:
|
|
2359
2419
|
await asyncio.sleep(_BUSY_BACKOFF_S)
|
|
2360
2420
|
except asyncio.CancelledError:
|
|
@@ -2367,6 +2427,11 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2367
2427
|
# camera that delivered is not one that delivered nothing: no
|
|
2368
2428
|
# no-media accounting, no backoff, straight to the retry.
|
|
2369
2429
|
_LOGGER.info("camera %s: re-opening after %s", self.device_id, _wrong)
|
|
2430
|
+
# One second and straight back in: still the same connect.
|
|
2431
|
+
# Nor a failure: the camera delivered.
|
|
2432
|
+
_sh._tracker_of(self).ended(
|
|
2433
|
+
_sh.END_WRONG_CODEC, 1.0, still_connecting=True, failure=False
|
|
2434
|
+
)
|
|
2370
2435
|
try:
|
|
2371
2436
|
await asyncio.sleep(1.0)
|
|
2372
2437
|
except asyncio.CancelledError:
|
|
@@ -2392,9 +2457,11 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2392
2457
|
# fast not-ready burst below is what keeps a merely-slow camera
|
|
2393
2458
|
# responsive.
|
|
2394
2459
|
ps._no_media_streak = _next_no_media_streak(ps._no_media_streak, False)
|
|
2395
|
-
|
|
2460
|
+
_abandon = _should_abandon_keepalive(
|
|
2396
2461
|
ps._no_media_streak, is_battery=self.is_battery_camera
|
|
2397
|
-
)
|
|
2462
|
+
)
|
|
2463
|
+
if _abandon:
|
|
2464
|
+
_sh._tracker_of(self).ending(_sh.END_NO_MEDIA)
|
|
2398
2465
|
_LOGGER.warning(
|
|
2399
2466
|
"camera %s: %d consecutive keepalive attempts delivered "
|
|
2400
2467
|
"no media - stopping the background keepalive to stop "
|
|
@@ -2418,6 +2485,14 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2418
2485
|
_delay,
|
|
2419
2486
|
f" [{ps._not_ready_burst}/{_PEERID_MAX_REUSE}]" if _fast_retry else "",
|
|
2420
2487
|
)
|
|
2488
|
+
# A fast retry is a battery camera still waking: one connect - unless
|
|
2489
|
+
# the wait below turns into the offline hold, which is a real wait.
|
|
2490
|
+
_wait = _backoff_wait_s(self, _delay)
|
|
2491
|
+
_sh._tracker_of(self).ended(
|
|
2492
|
+
_sh.END_NOT_READY if _fast_retry else _sh.END_NO_MEDIA,
|
|
2493
|
+
_wait,
|
|
2494
|
+
still_connecting=_fast_retry and not _cloud_says_unavailable(self),
|
|
2495
|
+
)
|
|
2421
2496
|
try:
|
|
2422
2497
|
await self._backoff_or_offline_pause(_delay)
|
|
2423
2498
|
except asyncio.CancelledError:
|
|
@@ -2431,6 +2506,9 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2431
2506
|
_delay,
|
|
2432
2507
|
exc,
|
|
2433
2508
|
)
|
|
2509
|
+
_sh._tracker_of(self).ended(
|
|
2510
|
+
_open_failure_reason(exc), _backoff_wait_s(self, _delay)
|
|
2511
|
+
)
|
|
2434
2512
|
try:
|
|
2435
2513
|
await self._backoff_or_offline_pause(_delay)
|
|
2436
2514
|
except asyncio.CancelledError:
|
|
@@ -2439,6 +2517,14 @@ async def _sdes_keepalive_open_attempt(
|
|
|
2439
2517
|
return None
|
|
2440
2518
|
|
|
2441
2519
|
|
|
2520
|
+
def _sdes_media_seen(session: Any) -> bool:
|
|
2521
|
+
"""Has ``session`` received media? False for a session that cannot say."""
|
|
2522
|
+
try:
|
|
2523
|
+
return float(getattr(session, "last_media_monotonic", 0.0) or 0.0) > 0.0
|
|
2524
|
+
except (TypeError, ValueError):
|
|
2525
|
+
return False
|
|
2526
|
+
|
|
2527
|
+
|
|
2442
2528
|
async def _sdes_keepalive_prepare_session(self, ps: _SdesKeepaliveState) -> None:
|
|
2443
2529
|
"""Prepare a freshly opened SDES session for the watch.
|
|
2444
2530
|
|
|
@@ -2447,6 +2533,9 @@ async def _sdes_keepalive_prepare_session(self, ps: _SdesKeepaliveState) -> None
|
|
|
2447
2533
|
``continue``, ``break`` or ``return`` of the loop, else None.
|
|
2448
2534
|
"""
|
|
2449
2535
|
self._stream_session = ps.session
|
|
2536
|
+
if _sdes_media_seen(ps.session):
|
|
2537
|
+
# The open returns on first media, so this is the connect time.
|
|
2538
|
+
_sh._tracker_of(self).media_started(time.monotonic())
|
|
2450
2539
|
# A remembered resolution is only deliverable once a session exists.
|
|
2451
2540
|
self._apply_pending_resolution()
|
|
2452
2541
|
# Don't block solely on wait_done(): the SDES ffmpeg reads RTP over a
|
|
@@ -2515,6 +2604,8 @@ async def _sdes_keepalive_watch_session(
|
|
|
2515
2604
|
except Exception: # a report must never end a session
|
|
2516
2605
|
ps._health.skip(_h_now)
|
|
2517
2606
|
_LOGGER.debug("health line failed", exc_info=True)
|
|
2607
|
+
if _sdes_media_seen(ps.session):
|
|
2608
|
+
_sh._tracker_of(self).media_started(_h_now) # a no-op once said
|
|
2518
2609
|
if ps._done in _fin:
|
|
2519
2610
|
break # ffmpeg exited on its own (consumer gone, error)
|
|
2520
2611
|
if ps.session.is_stalled(
|
|
@@ -2662,6 +2753,14 @@ async def _sdes_keepalive_after_session(
|
|
|
2662
2753
|
# Adaptive bookkeeping: a fast attempt that never delivered media
|
|
2663
2754
|
# latches the loop onto the full relay path for its remaining opens.
|
|
2664
2755
|
_healthy = ps.session.last_media_monotonic > 0.0
|
|
2756
|
+
if not _healthy:
|
|
2757
|
+
_end_reason = _sh.END_NO_MEDIA
|
|
2758
|
+
elif ps._ice_dead:
|
|
2759
|
+
_end_reason = _sh.END_ICE_LOST
|
|
2760
|
+
elif ps._stalled:
|
|
2761
|
+
_end_reason = _sh.END_MEDIA_STALLED
|
|
2762
|
+
else:
|
|
2763
|
+
_end_reason = _sh.END_SERVE_ENDED
|
|
2665
2764
|
ps._no_media_streak = _next_no_media_streak(ps._no_media_streak, _healthy)
|
|
2666
2765
|
if _healthy:
|
|
2667
2766
|
# A session that delivered media is a real, cleanly-used session;
|
|
@@ -2678,6 +2777,7 @@ async def _sdes_keepalive_after_session(
|
|
|
2678
2777
|
# Every open so far has cost the camera a wake and returned
|
|
2679
2778
|
# nothing. Continuing spends charge to learn the same thing
|
|
2680
2779
|
# again; a view will still open a session on demand.
|
|
2780
|
+
_sh._tracker_of(self).ending(_end_reason)
|
|
2681
2781
|
_LOGGER.warning(
|
|
2682
2782
|
"camera %s: %d consecutive keepalive sessions delivered no "
|
|
2683
2783
|
"media - stopping the background keepalive to stop waking "
|
|
@@ -2712,6 +2812,11 @@ async def _sdes_keepalive_after_session(
|
|
|
2712
2812
|
)
|
|
2713
2813
|
else:
|
|
2714
2814
|
_delay = ps._pacer.session_end_delay(healthy=_healthy)
|
|
2815
|
+
_sh._tracker_of(self).ended(
|
|
2816
|
+
_sh.END_NOT_READY if _fast_retry else _end_reason,
|
|
2817
|
+
_delay,
|
|
2818
|
+
still_connecting=_fast_retry,
|
|
2819
|
+
)
|
|
2715
2820
|
try:
|
|
2716
2821
|
await asyncio.sleep(_delay)
|
|
2717
2822
|
except asyncio.CancelledError:
|
|
@@ -2900,6 +3005,8 @@ class CameraMixin(
|
|
|
2900
3005
|
# Cold-start instrumentation: monotonic at the start of an open, so any
|
|
2901
3006
|
# thread (signaling, bridge, serve) can log elapsed-ms phase markers.
|
|
2902
3007
|
self._cold_open_t0: "Optional[float]" = None
|
|
3008
|
+
# What the serve loops are doing, for stream_health.
|
|
3009
|
+
self._stream_health_tracker = _sh._StreamHealthTracker()
|
|
2903
3010
|
# Motion/event polling (cloud event list). NOTE: the camera does NOT push motion
|
|
2904
3011
|
# to a passive MQTT subscriber - alarmType is only emitted during an active live
|
|
2905
3012
|
# view (decompiled NewLiveFragment) - so real-time-ish motion for HA comes from
|
|
@@ -3138,6 +3245,39 @@ class CameraMixin(
|
|
|
3138
3245
|
and the reboot guard ask this same question."""
|
|
3139
3246
|
return _cloud_reports_offline(self)
|
|
3140
3247
|
|
|
3248
|
+
@property
|
|
3249
|
+
def stream_health(self) -> _sh.StreamHealth:
|
|
3250
|
+
"""What this camera's background stream is doing right now.
|
|
3251
|
+
|
|
3252
|
+
A ``StreamHealth`` snapshot (see ``aidot_cameras.camera.stream_health``):
|
|
3253
|
+
``state`` (one of ``STREAM_STATES``: idle, connecting, waking,
|
|
3254
|
+
streaming, retrying, dormant, off), ``last_connect_s`` (seconds from
|
|
3255
|
+
the start of the open that succeeded to first media),
|
|
3256
|
+
``last_end_reason`` (one of ``STREAM_END_REASONS``), ``retry_delay_s``
|
|
3257
|
+
and ``failures``. It describes the stream ``start_keepalive`` (or
|
|
3258
|
+
``async_start_streaming``) runs; one-off opens such as a snapshot or an
|
|
3259
|
+
SD playback are not in it. Reading it sends nothing.
|
|
3260
|
+
"""
|
|
3261
|
+
return _sh._stream_health_of(
|
|
3262
|
+
self,
|
|
3263
|
+
powered_off=_camera_powered_off(self),
|
|
3264
|
+
battery=bool(getattr(self, "is_battery_camera", False)),
|
|
3265
|
+
)
|
|
3266
|
+
|
|
3267
|
+
def add_stream_health_listener(
|
|
3268
|
+
self, callback: Callable[[], None]
|
|
3269
|
+
) -> Callable[[], None]:
|
|
3270
|
+
"""Call ``callback()`` whenever ``stream_health`` changes.
|
|
3271
|
+
|
|
3272
|
+
The callback takes no arguments, runs on the event loop and must not
|
|
3273
|
+
block; read ``stream_health`` in it. An exception it raises is logged
|
|
3274
|
+
at DEBUG and dropped. Returns a function that removes the listener.
|
|
3275
|
+
A change of the power switch made through ``async_set_power`` is
|
|
3276
|
+
announced; one that arrives in a status update is not, so a consumer
|
|
3277
|
+
that polls status should re-read ``stream_health`` when it does.
|
|
3278
|
+
"""
|
|
3279
|
+
return _sh._tracker_of(self).add_listener(callback)
|
|
3280
|
+
|
|
3141
3281
|
def _open_fail_logger(self):
|
|
3142
3282
|
"""Pick the log level for a stream-open failure in the serve/keepalive
|
|
3143
3283
|
loops: WARNING for a genuine failure, but DEBUG when the cloud has
|
|
@@ -3167,6 +3307,7 @@ class CameraMixin(
|
|
|
3167
3307
|
(observed live: two unpowered A000088s cycling 30 s open attempts
|
|
3168
3308
|
pushed a healthy camera's cold open past two minutes).
|
|
3169
3309
|
"""
|
|
3310
|
+
# _backoff_wait_s answers how long this waits; keep the two in step.
|
|
3170
3311
|
if not _cloud_says_unavailable(self):
|
|
3171
3312
|
await asyncio.sleep(delay)
|
|
3172
3313
|
return
|
|
@@ -3740,10 +3881,17 @@ class CameraMixin(
|
|
|
3740
3881
|
return mqtt_user, mqtt_pwd, client_id
|
|
3741
3882
|
|
|
3742
3883
|
async def _persistent_request(
|
|
3743
|
-
self,
|
|
3884
|
+
self,
|
|
3885
|
+
publish_items: list,
|
|
3886
|
+
sub_topics: list,
|
|
3887
|
+
timeout: float,
|
|
3888
|
+
*,
|
|
3889
|
+
until: "Optional[Callable[[str, str], bool]]" = None,
|
|
3744
3890
|
) -> tuple:
|
|
3745
3891
|
"""Publish ``publish_items`` and collect what arrives on ``sub_topics``
|
|
3746
3892
|
for ``timeout`` seconds, on the account's one persistent connection.
|
|
3893
|
+
``until(topic, payload)`` ends the collection early at the first
|
|
3894
|
+
message it accepts (``_PersistentMqtt.request``).
|
|
3747
3895
|
|
|
3748
3896
|
``(messages, status)``, as ``_PersistentMqtt.request``. With no
|
|
3749
3897
|
connection to be had, ``([], {"error": _NO_PERSISTENT_MQTT})``: there
|
|
@@ -3761,8 +3909,17 @@ class CameraMixin(
|
|
|
3761
3909
|
pm = None
|
|
3762
3910
|
if pm is None:
|
|
3763
3911
|
return [], {"error": _NO_PERSISTENT_MQTT}
|
|
3912
|
+
if until is None:
|
|
3913
|
+
return await pm.request(
|
|
3914
|
+
publish_items=publish_items,
|
|
3915
|
+
subscribe_topics=sub_topics,
|
|
3916
|
+
timeout=timeout,
|
|
3917
|
+
)
|
|
3764
3918
|
return await pm.request(
|
|
3765
|
-
publish_items=publish_items,
|
|
3919
|
+
publish_items=publish_items,
|
|
3920
|
+
subscribe_topics=sub_topics,
|
|
3921
|
+
timeout=timeout,
|
|
3922
|
+
until=until,
|
|
3766
3923
|
)
|
|
3767
3924
|
|
|
3768
3925
|
async def _async_get_smarthome_auth(self) -> Optional[dict]:
|
|
@@ -5468,12 +5625,14 @@ class CameraMixin(
|
|
|
5468
5625
|
if self._stream_task is not None and not self._stream_task.done():
|
|
5469
5626
|
return
|
|
5470
5627
|
self._streaming_active = True
|
|
5628
|
+
_sh._tracker_of(self).starting()
|
|
5471
5629
|
self._start_keepalive_renew() # battery: renew keep-alive on this path too
|
|
5472
5630
|
self._stream_task = asyncio.ensure_future(self._streaming_loop())
|
|
5473
5631
|
|
|
5474
5632
|
async def async_stop_streaming(self) -> None:
|
|
5475
5633
|
"""Stop the persistent background WebRTC stream."""
|
|
5476
5634
|
self._streaming_active = False
|
|
5635
|
+
_sh._tracker_of(self).stopped()
|
|
5477
5636
|
self._serve_ready.clear()
|
|
5478
5637
|
g_task, self._go2rtc_task = self._go2rtc_task, None
|
|
5479
5638
|
if g_task is not None and not g_task.done():
|
|
@@ -5894,6 +6053,10 @@ class CameraMixin(
|
|
|
5894
6053
|
by hand.
|
|
5895
6054
|
"""
|
|
5896
6055
|
self._streaming_active = False
|
|
6056
|
+
if release_url:
|
|
6057
|
+
_sh._tracker_of(self).released(_sh.END_IDLE_RELEASE)
|
|
6058
|
+
else:
|
|
6059
|
+
_sh._tracker_of(self).gave_up()
|
|
5897
6060
|
self._cancel_keepalive_renew()
|
|
5898
6061
|
if release_url:
|
|
5899
6062
|
self._keepalive_rtsp_url = None
|
|
@@ -6049,6 +6212,7 @@ class CameraMixin(
|
|
|
6049
6212
|
self._go2rtc_url = go2rtc_url
|
|
6050
6213
|
self._go2rtc_manages_stream = bool(go2rtc_register)
|
|
6051
6214
|
self._streaming_active = True
|
|
6215
|
+
_sh._tracker_of(self).starting()
|
|
6052
6216
|
# App parity: keep a battery camera awake for the whole view (mains cams
|
|
6053
6217
|
# never sleep, so this is a no-op there). Single-instance; cancelled in
|
|
6054
6218
|
# stop / idle-release.
|
|
@@ -6558,6 +6722,7 @@ class CameraMixin(
|
|
|
6558
6722
|
exc_info=exc,
|
|
6559
6723
|
)
|
|
6560
6724
|
self._streaming_active = False
|
|
6725
|
+
_sh._tracker_of(self).released(_sh.END_ERROR)
|
|
6561
6726
|
self._cancel_keepalive_renew()
|
|
6562
6727
|
self._keepalive_rtsp_url = None
|
|
6563
6728
|
self._serve_ready.clear()
|
|
@@ -6588,9 +6753,14 @@ class CameraMixin(
|
|
|
6588
6753
|
The relay holds the public serve port connectable through every (re)open
|
|
6589
6754
|
so an eager go2rtc pull waits instead of getting connection-refused while
|
|
6590
6755
|
the SDES handshake runs (the same race fixed for the DTLS serve)."""
|
|
6591
|
-
self._serve_relay =
|
|
6756
|
+
self._serve_relay = None
|
|
6592
6757
|
try:
|
|
6593
6758
|
try:
|
|
6759
|
+
# Inside the try: a relay that cannot start (the host is out
|
|
6760
|
+
# of threads) releases the camera like any other loop error.
|
|
6761
|
+
self._serve_relay = self._maybe_start_serve_relay(
|
|
6762
|
+
self._keepalive_rtsp_url
|
|
6763
|
+
)
|
|
6594
6764
|
await self._sdes_keepalive_loop_inner()
|
|
6595
6765
|
except asyncio.CancelledError:
|
|
6596
6766
|
raise
|
|
@@ -6708,6 +6878,7 @@ class CameraMixin(
|
|
|
6708
6878
|
pil_img.save(buf, "JPEG")
|
|
6709
6879
|
self.latest_jpeg = buf.getvalue()
|
|
6710
6880
|
self._last_frame_time = asyncio.get_running_loop().time()
|
|
6881
|
+
_sh._tracker_of(self).media_started(self._last_frame_time)
|
|
6711
6882
|
except Exception as enc_exc:
|
|
6712
6883
|
_LOGGER.debug(
|
|
6713
6884
|
"Streaming encode failed for %s: %s", self.device_id, enc_exc
|
|
@@ -6718,6 +6889,7 @@ class CameraMixin(
|
|
|
6718
6889
|
# previous session must not be held against this one.
|
|
6719
6890
|
self._last_frame_time = 0.0
|
|
6720
6891
|
_open_time = asyncio.get_running_loop().time()
|
|
6892
|
+
_sh._tracker_of(self).opening(_open_time)
|
|
6721
6893
|
try:
|
|
6722
6894
|
session = await self.async_open_webrtc_stream(on_frame=_on_frame)
|
|
6723
6895
|
except asyncio.CancelledError:
|
|
@@ -6732,6 +6904,7 @@ class CameraMixin(
|
|
|
6732
6904
|
busy,
|
|
6733
6905
|
_BUSY_BACKOFF_S,
|
|
6734
6906
|
)
|
|
6907
|
+
_sh._tracker_of(self).ended(_sh.END_BUSY, _BUSY_BACKOFF_S)
|
|
6735
6908
|
try:
|
|
6736
6909
|
await asyncio.sleep(_BUSY_BACKOFF_S)
|
|
6737
6910
|
except asyncio.CancelledError:
|
|
@@ -6745,6 +6918,9 @@ class CameraMixin(
|
|
|
6745
6918
|
_delay,
|
|
6746
6919
|
exc,
|
|
6747
6920
|
)
|
|
6921
|
+
_sh._tracker_of(self).ended(
|
|
6922
|
+
_open_failure_reason(exc), _backoff_wait_s(self, _delay)
|
|
6923
|
+
)
|
|
6748
6924
|
try:
|
|
6749
6925
|
await self._backoff_or_offline_pause(_delay)
|
|
6750
6926
|
except asyncio.CancelledError:
|
|
@@ -6786,8 +6962,13 @@ class CameraMixin(
|
|
|
6786
6962
|
# after good streaming); escalate with jitter if it never did
|
|
6787
6963
|
# (the camera-degradation case).
|
|
6788
6964
|
_produced = self._last_frame_time > _open_time
|
|
6965
|
+
_end_delay = _pacer.session_end_delay(healthy=_produced)
|
|
6966
|
+
_sh._tracker_of(self).ended(
|
|
6967
|
+
_sh.END_MEDIA_STALLED if _produced else _sh.END_NO_MEDIA,
|
|
6968
|
+
_end_delay,
|
|
6969
|
+
)
|
|
6789
6970
|
try:
|
|
6790
|
-
await asyncio.sleep(
|
|
6971
|
+
await asyncio.sleep(_end_delay)
|
|
6791
6972
|
except asyncio.CancelledError:
|
|
6792
6973
|
return
|
|
6793
6974
|
|
|
@@ -7410,9 +7591,13 @@ class CameraMixin(
|
|
|
7410
7591
|
# threads, and escaping here would skip slots.release() and burn a
|
|
7411
7592
|
# permit for the life of the process - the cap would silently shrink
|
|
7412
7593
|
# until nothing could stream at all.
|
|
7413
|
-
|
|
7414
|
-
|
|
7594
|
+
#
|
|
7595
|
+
# And inside the inner try too: a serve that cannot start ends the
|
|
7596
|
+
# loop like any other error in it, so the camera is released and
|
|
7597
|
+
# stream health reads idle ("error") instead of connecting forever.
|
|
7415
7598
|
try:
|
|
7599
|
+
if _dtls_serve_mode(self._keepalive_rtsp_url) == "pull":
|
|
7600
|
+
self._ts_serve = self._start_ts_serve(self._keepalive_rtsp_url)
|
|
7416
7601
|
await self._dtls_serve_loop_inner()
|
|
7417
7602
|
except asyncio.CancelledError:
|
|
7418
7603
|
raise
|
|
@@ -6,11 +6,13 @@ the inherited async_set_device_attribute / async_trigger_device_action, so this
|
|
|
6
6
|
mixin must be combined into CameraMixin (it is not usable standalone).
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
import json
|
|
9
10
|
import logging
|
|
11
|
+
import random
|
|
10
12
|
import struct
|
|
11
13
|
import time
|
|
12
14
|
|
|
13
|
-
from typing import Optional
|
|
15
|
+
from typing import Any, Optional
|
|
14
16
|
|
|
15
17
|
from .constants import (
|
|
16
18
|
_PTZ_DIR_CODES,
|
|
@@ -19,7 +21,12 @@ from .constants import (
|
|
|
19
21
|
IOTYPE_USER_IPCAM_SETSTREAMCTRL_REQ,
|
|
20
22
|
IOTYPE_USER_IPCAM_SETSTREAMCTRL_RESP,
|
|
21
23
|
)
|
|
22
|
-
from .models import
|
|
24
|
+
from .models import (
|
|
25
|
+
FirmwareInfo,
|
|
26
|
+
_cloud_reports_offline,
|
|
27
|
+
parse_firmware_version_list,
|
|
28
|
+
)
|
|
29
|
+
from .stream_health import _tracker_of
|
|
23
30
|
|
|
24
31
|
_LOGGER = logging.getLogger(__name__)
|
|
25
32
|
|
|
@@ -205,6 +212,8 @@ class _CameraControlsMixin:
|
|
|
205
212
|
# A device-list poll that was in flight can still carry the old
|
|
206
213
|
# value; _camera_powered_off prefers this write for a while.
|
|
207
214
|
self._power_write = (time.monotonic(), on)
|
|
215
|
+
# stream_health reads the switch: tell its listeners.
|
|
216
|
+
_tracker_of(self).notify()
|
|
208
217
|
return ok
|
|
209
218
|
|
|
210
219
|
async def async_set_microphone(self, enabled: bool) -> bool:
|
|
@@ -460,6 +469,101 @@ class _CameraControlsMixin:
|
|
|
460
469
|
"RebootFunc", [], expect_ack=False
|
|
461
470
|
)
|
|
462
471
|
|
|
472
|
+
async def async_get_firmware_info(
|
|
473
|
+
self, *, timeout: float = 8.0
|
|
474
|
+
) -> "Optional[FirmwareInfo]":
|
|
475
|
+
"""Ask whether a newer firmware exists. Read-only; installs nothing.
|
|
476
|
+
|
|
477
|
+
The request the vendor app sends on entering a camera's live page
|
|
478
|
+
(``NewLivePresenter``): ``getVerListReq`` on the ``ota`` service,
|
|
479
|
+
|
|
480
|
+
Topic: iot/v1/s/{userId}/ota/getVerListReq
|
|
481
|
+
Payload: {"method": "getVerListReq", "devId": ..., "service": "ota",
|
|
482
|
+
"payload": {"devId", "productId", "homeId", "devType": "IPC"}}
|
|
483
|
+
|
|
484
|
+
with ``srcAddr``, ``seq`` and ``tst`` stamped on by the app's MQTT
|
|
485
|
+
layer. The reply is matched on ``seq``, as the app matches it, and read
|
|
486
|
+
as the app reads it: ``payload.verList[0]`` with ``newVersion`` and
|
|
487
|
+
``oldVersion``.
|
|
488
|
+
|
|
489
|
+
Returns a :class:`FirmwareInfo`, or ``None`` when nothing usable came
|
|
490
|
+
back. ``None`` means UNKNOWN, never "up to date". It returns as soon as
|
|
491
|
+
the reply arrives; ``timeout`` is how long to wait for one.
|
|
492
|
+
|
|
493
|
+
The cloud's ``ota`` service answers by itself, on
|
|
494
|
+
``iot/v1/c/{userId}/ota/getVerListResp``; the camera is not involved.
|
|
495
|
+
Measured 2026-11-14: a battery camera that was offline with no session
|
|
496
|
+
open was answered like any other, so the request is sent whatever the
|
|
497
|
+
camera's state. A camera that is up to date gets one entry whose two
|
|
498
|
+
versions are equal.
|
|
499
|
+
"""
|
|
500
|
+
user_id = self.user_id
|
|
501
|
+
device_id = self.device_id
|
|
502
|
+
raw = getattr(self, "_raw_device", None)
|
|
503
|
+
raw = raw if isinstance(raw, dict) else {}
|
|
504
|
+
seq = f"ap{random.randint(1000000, 9999999)}"
|
|
505
|
+
request = json.dumps(
|
|
506
|
+
{
|
|
507
|
+
"method": "getVerListReq",
|
|
508
|
+
"devId": device_id,
|
|
509
|
+
"service": "ota",
|
|
510
|
+
"srcAddr": f"0.{user_id}",
|
|
511
|
+
"seq": seq,
|
|
512
|
+
"tst": int(time.time() * 1000),
|
|
513
|
+
"payload": {
|
|
514
|
+
"devId": device_id,
|
|
515
|
+
"productId": str(raw.get("productId") or ""),
|
|
516
|
+
# The device record names its house ``houseId`` (the
|
|
517
|
+
# upstream client's DeviceInformation). The cloud answers
|
|
518
|
+
# without it, so a record that lacks it sends "".
|
|
519
|
+
"homeId": str(raw.get("houseId") or ""),
|
|
520
|
+
"devType": "IPC",
|
|
521
|
+
},
|
|
522
|
+
}
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
# The seq IS a filter here. The connection carries the whole account,
|
|
526
|
+
# the reply is not known to name its camera anywhere else, and the app
|
|
527
|
+
# itself finds this reply by seq alone.
|
|
528
|
+
def _our_reply(body: Any) -> "Optional[dict]":
|
|
529
|
+
try:
|
|
530
|
+
msg = json.loads(body)
|
|
531
|
+
except Exception:
|
|
532
|
+
return None
|
|
533
|
+
if not isinstance(msg, dict) or msg.get("seq") != seq:
|
|
534
|
+
return None
|
|
535
|
+
if msg.get("method") == "getVerListReq":
|
|
536
|
+
return None # our own request, should the broker hand it back
|
|
537
|
+
return msg
|
|
538
|
+
|
|
539
|
+
messages, status = await self._persistent_request(
|
|
540
|
+
[(f"iot/v1/s/{user_id}/ota/getVerListReq", request)],
|
|
541
|
+
[f"iot/v1/c/{user_id}/#", f"iot/v1/cb/{user_id}/#"],
|
|
542
|
+
timeout,
|
|
543
|
+
# One reply per request: stop collecting when it is in.
|
|
544
|
+
until=lambda _topic, body: _our_reply(body) is not None,
|
|
545
|
+
)
|
|
546
|
+
if status.get("error"):
|
|
547
|
+
_LOGGER.debug(
|
|
548
|
+
"getVerListReq: MQTT failed for %s (%s)", device_id, status.get("error")
|
|
549
|
+
)
|
|
550
|
+
answered = False
|
|
551
|
+
for _topic, body in messages:
|
|
552
|
+
msg = _our_reply(body)
|
|
553
|
+
if msg is None:
|
|
554
|
+
continue
|
|
555
|
+
answered = True
|
|
556
|
+
info = parse_firmware_version_list(msg)
|
|
557
|
+
if info is not None:
|
|
558
|
+
return info
|
|
559
|
+
_LOGGER.debug(
|
|
560
|
+
"getVerListReq: %s for %s (%d messages seen)",
|
|
561
|
+
"a reply without a usable version list" if answered else "no reply",
|
|
562
|
+
device_id,
|
|
563
|
+
len(messages),
|
|
564
|
+
)
|
|
565
|
+
return None
|
|
566
|
+
|
|
463
567
|
async def async_set_night_vision(self, mode: str) -> bool:
|
|
464
568
|
"""mode: 'auto' (0), 'on' (1), 'off' (2)"""
|
|
465
569
|
_modes = {"auto": 0, "on": 1, "off": 2}
|