python-aidot-cameras 1.0.0rc47__tar.gz → 1.0.0rc49__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.0rc47/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0rc49}/PKG-INFO +28 -2
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/README.md +27 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_upstream.py +23 -2
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/client.py +44 -0
- python_aidot_cameras-1.0.0rc49/aidot_cameras/camera/health.py +240 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/lan_retry.py +73 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/pyproject.toml +1 -1
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49/python_aidot_cameras.egg-info}/PKG-INFO +28 -2
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/python_aidot_cameras.egg-info/SOURCES.txt +3 -0
- python_aidot_cameras-1.0.0rc49/tests/test_health_line.py +280 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_lan_retry_reaches_the_storming_devices.py +3 -3
- python_aidot_cameras-1.0.0rc49/tests/test_lan_retry_stops_on_close.py +460 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/playback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/protocol.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/sdes_open.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/tutk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_peer_id_class_env.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_playback_tls.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_echo_wait_is_not_dead_time.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_session_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_tmmbr.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_tutk_path_is_out_of_reach.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_unreachable_nominee_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/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.0rc49
|
|
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
|
|
@@ -79,6 +79,28 @@ companion integration repo
|
|
|
79
79
|
[`cbrightly/hass-aidot-cameras`](https://github.com/cbrightly/hass-aidot-cameras), which depends
|
|
80
80
|
on this library.
|
|
81
81
|
|
|
82
|
+
## How it fits together
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
AiDot cloud python-aidot-cameras consumers
|
|
86
|
+
----------- -------------------- ---------
|
|
87
|
+
MQTT signaling <---------------> open a session: offer, answer,
|
|
88
|
+
ICE / TURN ICE, keys (DTLS or SDES)
|
|
89
|
+
|
|
|
90
|
+
camera ====SRTP over the LAN====> decrypt, reorder, count ---(RTSP push)---> go2rtc ---> WebRTC view, rtsp:// URL
|
|
91
|
+
(relay only when there is | (Home Assistant, Frigate,
|
|
92
|
+
no route back to us) +---(MPEG-TS, loopback)--------------------------> HA HLS view, camera.record
|
|
93
|
+
+---(JPEG)----------------------------------------> snapshots
|
|
94
|
+
+---(.ts / .mp4 copy)-----------------------------> recordings
|
|
95
|
+
+<--(PCM, 20 ms)----------------------------------- two-way audio
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The cloud brokers the handshake and never carries the media: on the same
|
|
99
|
+
network the camera sends straight to this library, and only a camera with no
|
|
100
|
+
route back rides the vendor's relay. The library decrypts once and fans the
|
|
101
|
+
camera's own packets out without re-encoding; ffmpeg is used for recordings,
|
|
102
|
+
snapshots, the CLI's stdout form and any session that negotiates H.265.
|
|
103
|
+
|
|
82
104
|
## Supported cameras
|
|
83
105
|
|
|
84
106
|
The streaming transport is auto-selected per camera from its model id:
|
|
@@ -483,7 +505,10 @@ not from this library alone: **it does not run an RTSP server**, and neither do
|
|
|
483
505
|
the cameras - they have no RTSP and no ONVIF endpoint. The only way video
|
|
484
506
|
leaves them is the cloud-signalled WebRTC handshake and SRTP decrypt this
|
|
485
507
|
library does. Pair it with [go2rtc](https://github.com/AlexxIT/go2rtc) and
|
|
486
|
-
go2rtc publishes the RTSP URL for you.
|
|
508
|
+
go2rtc publishes the RTSP URL for you. (The CLI's `{output}` form is an
|
|
509
|
+
ordinary RTSP push, so a standalone setup can point it at mediamtx or any other
|
|
510
|
+
RTSP server instead; go2rtc is what Home Assistant speaks to, which is why the
|
|
511
|
+
steps below use it.)
|
|
487
512
|
|
|
488
513
|
Three steps, about five minutes.
|
|
489
514
|
|
|
@@ -596,6 +621,7 @@ stored credentials file. See [`aidot_cameras/credentials.py`](https://github.com
|
|
|
596
621
|
| `AIDOT_USERNAME` | AiDot account username/email. Used with `AIDOT_PASSWORD`. | (none) |
|
|
597
622
|
| `AIDOT_PASSWORD` | AiDot account password. Used with `AIDOT_USERNAME`. | (none) |
|
|
598
623
|
| `AIDOT_COUNTRY` | Account region/country code. | `US` |
|
|
624
|
+
| `AIDOT_TOKEN_FILE` | Path of a JSON file that caches the login across restarts; token rotations are written back to it. Used by the `aidot-go2rtc` CLI (see [Installing](#installing)); one file shared by every process on the account, since a second login invalidates the first's token. | (none) |
|
|
599
625
|
|
|
600
626
|
### Camera streaming / tuning
|
|
601
627
|
|
|
@@ -39,6 +39,28 @@ companion integration repo
|
|
|
39
39
|
[`cbrightly/hass-aidot-cameras`](https://github.com/cbrightly/hass-aidot-cameras), which depends
|
|
40
40
|
on this library.
|
|
41
41
|
|
|
42
|
+
## How it fits together
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
AiDot cloud python-aidot-cameras consumers
|
|
46
|
+
----------- -------------------- ---------
|
|
47
|
+
MQTT signaling <---------------> open a session: offer, answer,
|
|
48
|
+
ICE / TURN ICE, keys (DTLS or SDES)
|
|
49
|
+
|
|
|
50
|
+
camera ====SRTP over the LAN====> decrypt, reorder, count ---(RTSP push)---> go2rtc ---> WebRTC view, rtsp:// URL
|
|
51
|
+
(relay only when there is | (Home Assistant, Frigate,
|
|
52
|
+
no route back to us) +---(MPEG-TS, loopback)--------------------------> HA HLS view, camera.record
|
|
53
|
+
+---(JPEG)----------------------------------------> snapshots
|
|
54
|
+
+---(.ts / .mp4 copy)-----------------------------> recordings
|
|
55
|
+
+<--(PCM, 20 ms)----------------------------------- two-way audio
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The cloud brokers the handshake and never carries the media: on the same
|
|
59
|
+
network the camera sends straight to this library, and only a camera with no
|
|
60
|
+
route back rides the vendor's relay. The library decrypts once and fans the
|
|
61
|
+
camera's own packets out without re-encoding; ffmpeg is used for recordings,
|
|
62
|
+
snapshots, the CLI's stdout form and any session that negotiates H.265.
|
|
63
|
+
|
|
42
64
|
## Supported cameras
|
|
43
65
|
|
|
44
66
|
The streaming transport is auto-selected per camera from its model id:
|
|
@@ -443,7 +465,10 @@ not from this library alone: **it does not run an RTSP server**, and neither do
|
|
|
443
465
|
the cameras - they have no RTSP and no ONVIF endpoint. The only way video
|
|
444
466
|
leaves them is the cloud-signalled WebRTC handshake and SRTP decrypt this
|
|
445
467
|
library does. Pair it with [go2rtc](https://github.com/AlexxIT/go2rtc) and
|
|
446
|
-
go2rtc publishes the RTSP URL for you.
|
|
468
|
+
go2rtc publishes the RTSP URL for you. (The CLI's `{output}` form is an
|
|
469
|
+
ordinary RTSP push, so a standalone setup can point it at mediamtx or any other
|
|
470
|
+
RTSP server instead; go2rtc is what Home Assistant speaks to, which is why the
|
|
471
|
+
steps below use it.)
|
|
447
472
|
|
|
448
473
|
Three steps, about five minutes.
|
|
449
474
|
|
|
@@ -556,6 +581,7 @@ stored credentials file. See [`aidot_cameras/credentials.py`](https://github.com
|
|
|
556
581
|
| `AIDOT_USERNAME` | AiDot account username/email. Used with `AIDOT_PASSWORD`. | (none) |
|
|
557
582
|
| `AIDOT_PASSWORD` | AiDot account password. Used with `AIDOT_USERNAME`. | (none) |
|
|
558
583
|
| `AIDOT_COUNTRY` | Account region/country code. | `US` |
|
|
584
|
+
| `AIDOT_TOKEN_FILE` | Path of a JSON file that caches the login across restarts; token rotations are written back to it. Used by the `aidot-go2rtc` CLI (see [Installing](#installing)); one file shared by every process on the account, since a second login invalidates the first's token. | (none) |
|
|
559
585
|
|
|
560
586
|
### Camera streaming / tuning
|
|
561
587
|
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/_upstream.py
RENAMED
|
@@ -212,13 +212,34 @@ def cancel_pending_reconnect(device_client: Any) -> bool:
|
|
|
212
212
|
B, so on shape A it would find nothing, cancel nothing, and report success -
|
|
213
213
|
the leak fix would go quiet instead of failing. Callers that care should
|
|
214
214
|
log the False case.
|
|
215
|
+
|
|
216
|
+
``LanRetryMixin._schedule_reconnect`` (``aidot_cameras.lan_retry``) does not
|
|
217
|
+
use either handle: it replaces upstream's immediate-respawn task with a
|
|
218
|
+
delayed one, parked under its own ``_lan_retry_task`` - not upstream's
|
|
219
|
+
``_login_task``, because upstream's ``update_ip_address()`` overwrites
|
|
220
|
+
``_login_task`` unconditionally (when not mid-connect and not logged in),
|
|
221
|
+
which would silently orphan a delayed retry parked under that name rather
|
|
222
|
+
than cancel it. Without cancelling ``_lan_retry_task`` here too, a
|
|
223
|
+
pending retry armed before close still sleeps out its backoff and calls
|
|
224
|
+
``async_login()`` on a closed client - on success that leaks a socket, a
|
|
225
|
+
receive task and a ping timer for the life of the process. ``_login_task``
|
|
226
|
+
is also checked and cancelled: it is where upstream itself parks an
|
|
227
|
+
in-flight ``async_login()`` task (from ``update_ip_address()`` or its own
|
|
228
|
+
``_schedule_reconnect()``), and a closed client should not be left
|
|
229
|
+
completing one of those either.
|
|
215
230
|
"""
|
|
231
|
+
cancelled = False
|
|
216
232
|
for attr in RECONNECT_HANDLE_ATTRS:
|
|
217
233
|
handle = getattr(device_client, attr, None)
|
|
218
234
|
if handle is not None:
|
|
219
235
|
handle.cancel()
|
|
220
|
-
|
|
221
|
-
|
|
236
|
+
cancelled = True
|
|
237
|
+
for attr in ("_lan_retry_task", "_login_task"):
|
|
238
|
+
task = getattr(device_client, attr, None)
|
|
239
|
+
if task is not None and not task.done():
|
|
240
|
+
task.cancel()
|
|
241
|
+
cancelled = True
|
|
242
|
+
return cancelled
|
|
222
243
|
|
|
223
244
|
|
|
224
245
|
# --------------------------------------------------------------------------- #
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/camera/client.py
RENAMED
|
@@ -122,6 +122,7 @@ from .protocol import ( # noqa: F401 - re-exported for device_client / back-com
|
|
|
122
122
|
_highport_nomination_decision,
|
|
123
123
|
_parse_alarm_event,
|
|
124
124
|
)
|
|
125
|
+
from .health import HealthReporter, dtls_snapshot as _dtls_snapshot
|
|
125
126
|
|
|
126
127
|
_LOGGER = logging.getLogger(__name__)
|
|
127
128
|
|
|
@@ -5300,9 +5301,25 @@ class CameraMixin(
|
|
|
5300
5301
|
# (a stream worker or recording that retries late on a slow wake).
|
|
5301
5302
|
_viewer_seen = False
|
|
5302
5303
|
_startup_grace = _stream_startup_grace_s()
|
|
5304
|
+
# One INFO line per AIDOT_HEALTH_LINE_S with this period's packets,
|
|
5305
|
+
# bytes, stall and media path (see camera/health.py). The bridge's
|
|
5306
|
+
# counters are what media_stats() already exposes; the viewer
|
|
5307
|
+
# answer is the one this loop computes below.
|
|
5308
|
+
_health = HealthReporter(self.device_id)
|
|
5309
|
+
_health_viewer = None
|
|
5303
5310
|
try:
|
|
5304
5311
|
while True:
|
|
5305
5312
|
_fin, _ = await asyncio.wait({_done}, timeout=5.0)
|
|
5313
|
+
_h_now = time.monotonic()
|
|
5314
|
+
if _health.due(_h_now):
|
|
5315
|
+
try:
|
|
5316
|
+
_health.tick(
|
|
5317
|
+
_h_now,
|
|
5318
|
+
{**session.media_stats(), "viewer": _health_viewer},
|
|
5319
|
+
)
|
|
5320
|
+
except Exception: # a report must never end a session
|
|
5321
|
+
_health.skip(_h_now)
|
|
5322
|
+
_LOGGER.debug("health line failed", exc_info=True)
|
|
5306
5323
|
if _done in _fin:
|
|
5307
5324
|
break # ffmpeg exited on its own (consumer gone, error)
|
|
5308
5325
|
if session.is_stalled(
|
|
@@ -5336,6 +5353,7 @@ class CameraMixin(
|
|
|
5336
5353
|
break
|
|
5337
5354
|
if _idle_on and _serve_port is not None:
|
|
5338
5355
|
_present = await self._viewer_present(_serve_port)
|
|
5356
|
+
_health_viewer = _present
|
|
5339
5357
|
if _present: # True -> a viewer is pulling; stay alive
|
|
5340
5358
|
_last_consumer = time.monotonic()
|
|
5341
5359
|
_last_known_viewer = _last_consumer
|
|
@@ -6661,6 +6679,13 @@ class CameraMixin(
|
|
|
6661
6679
|
_connected_at = loop.time()
|
|
6662
6680
|
_first_video_at = None
|
|
6663
6681
|
_no_video = False
|
|
6682
|
+
# One INFO line per AIDOT_HEALTH_LINE_S (camera/health.py):
|
|
6683
|
+
# aiortc's inbound packet and loss counts, the serve
|
|
6684
|
+
# canary's frames and keyframes, and this loop's viewer
|
|
6685
|
+
# answer. getStats() is awaited only on the ticks that
|
|
6686
|
+
# report, not every half second.
|
|
6687
|
+
_health_dtls = HealthReporter(self.device_id)
|
|
6688
|
+
_watching_dtls = None
|
|
6664
6689
|
# Wait for ffmpeg to exit (go2rtc disconnect) or idle
|
|
6665
6690
|
# release. On the direct path there is no ffmpeg to exit, so
|
|
6666
6691
|
# the cycle runs until the peer connection dies or the view
|
|
@@ -6681,6 +6706,24 @@ class CameraMixin(
|
|
|
6681
6706
|
# republishes after a short backoff.
|
|
6682
6707
|
break
|
|
6683
6708
|
_now = loop.time()
|
|
6709
|
+
if _health_dtls.due(_now):
|
|
6710
|
+
try:
|
|
6711
|
+
_get_stats = getattr(session, "get_stats", None)
|
|
6712
|
+
_health_dtls.tick(
|
|
6713
|
+
_now,
|
|
6714
|
+
_dtls_snapshot(
|
|
6715
|
+
await _get_stats() if _get_stats else {},
|
|
6716
|
+
_live_video_canary(
|
|
6717
|
+
pc,
|
|
6718
|
+
getattr(self, "_serve_video_canary", None),
|
|
6719
|
+
),
|
|
6720
|
+
progress[0],
|
|
6721
|
+
_watching_dtls,
|
|
6722
|
+
),
|
|
6723
|
+
)
|
|
6724
|
+
except Exception: # a report must never end a session
|
|
6725
|
+
_health_dtls.skip(_now)
|
|
6726
|
+
_LOGGER.debug("health line failed", exc_info=True)
|
|
6684
6727
|
if _first_video_at is None:
|
|
6685
6728
|
_canary_v = _live_video_canary(
|
|
6686
6729
|
pc, getattr(self, "_serve_video_canary", None)
|
|
@@ -6734,6 +6777,7 @@ class CameraMixin(
|
|
|
6734
6777
|
# cannot answer.
|
|
6735
6778
|
if idle_secs > 0:
|
|
6736
6779
|
_watching = await self._viewer_present(_serve_port_dtls)
|
|
6780
|
+
_watching_dtls = _watching
|
|
6737
6781
|
_window_dtls = (
|
|
6738
6782
|
idle_secs
|
|
6739
6783
|
if _viewer_seen_dtls
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
"""One INFO line per live session per period, saying what the link did.
|
|
2
|
+
|
|
3
|
+
The loops that hold a session open (the SDES keepalive and the DTLS serve loop)
|
|
4
|
+
already poll every few seconds. They hand each poll's counters to a
|
|
5
|
+
:class:`HealthReporter`, which says nothing until ``period_s`` has elapsed and
|
|
6
|
+
then logs one line with the **deltas** for that period:
|
|
7
|
+
|
|
8
|
+
camera <id>: health 60s: packets=1200 (20.0/s) bytes=60.0KB lost=2 (0.2%)
|
|
9
|
+
stall=0.5s path=direct viewers=present
|
|
10
|
+
|
|
11
|
+
Zero loss and a sub-second stall is the normal reading between reconnects. A
|
|
12
|
+
steady non-zero loss is packet loss on the path from the camera. A growing
|
|
13
|
+
stall with a present viewer is the picture freezing. These were all available
|
|
14
|
+
before, as totals in end-of-session reports or at DEBUG; reporting the rate
|
|
15
|
+
once a minute, by default, is what lets a pasted log say which it was.
|
|
16
|
+
|
|
17
|
+
Everything here is pure: the reporter never reads a session itself. The loops
|
|
18
|
+
build the snapshot from what they already have (``SdesSession.media_stats()``,
|
|
19
|
+
``WebRTCSession.get_stats()``, the serve canary, their viewer-presence answer),
|
|
20
|
+
so the reporter can be tested with dicts and a fake clock.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
from __future__ import annotations
|
|
24
|
+
|
|
25
|
+
import logging
|
|
26
|
+
import math
|
|
27
|
+
from typing import Any, Mapping, Optional
|
|
28
|
+
|
|
29
|
+
import os
|
|
30
|
+
|
|
31
|
+
_LOGGER = logging.getLogger(__name__)
|
|
32
|
+
|
|
33
|
+
_PERIOD_ENV = "AIDOT_HEALTH_LINE_S"
|
|
34
|
+
_PERIOD_DEFAULT_S = 60.0
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def health_line_period_s(env: Optional[Mapping[str, str]] = None) -> float:
|
|
38
|
+
"""Seconds between health lines; ``0`` disables them (negative reads as 0).
|
|
39
|
+
|
|
40
|
+
A malformed or non-finite value is the default: this is read when a session
|
|
41
|
+
opens, and a typo in a unit file must not be able to stop a camera."""
|
|
42
|
+
raw = (os.environ if env is None else env).get(_PERIOD_ENV)
|
|
43
|
+
if raw is None:
|
|
44
|
+
return _PERIOD_DEFAULT_S
|
|
45
|
+
try:
|
|
46
|
+
v = float(raw)
|
|
47
|
+
except (TypeError, ValueError):
|
|
48
|
+
v = None
|
|
49
|
+
if v is None or not math.isfinite(v):
|
|
50
|
+
_LOGGER.debug(
|
|
51
|
+
"%s=%r is not a number; using %.0f", _PERIOD_ENV, raw, _PERIOD_DEFAULT_S
|
|
52
|
+
)
|
|
53
|
+
return _PERIOD_DEFAULT_S
|
|
54
|
+
return max(0.0, v)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _fmt_bytes(n: float) -> str:
|
|
58
|
+
n = float(max(0.0, n))
|
|
59
|
+
if n < 1000:
|
|
60
|
+
return f"{int(n)}B"
|
|
61
|
+
for unit, div in (("KB", 1000.0), ("MB", 1000.0**2), ("GB", 1000.0**3)):
|
|
62
|
+
if n < div * 1000 or unit == "GB":
|
|
63
|
+
return f"{n / div:.1f}{unit}"
|
|
64
|
+
return f"{n:.0f}B" # unreachable; keeps the type checker honest
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _reset(prev: Optional[Mapping[str, Any]], cur: Mapping[str, Any]) -> bool:
|
|
68
|
+
"""Whether the counters were reset between the two snapshots.
|
|
69
|
+
|
|
70
|
+
Judged on ``packets`` alone: it only goes backwards when a session was
|
|
71
|
+
rebuilt under the same reporter. The other counters are not trusted for
|
|
72
|
+
this, because aiortc's ``packetsLost`` is expected-minus-received and drops
|
|
73
|
+
by a few when late packets arrive, which is not a reset."""
|
|
74
|
+
if prev is None:
|
|
75
|
+
return True
|
|
76
|
+
return int(cur.get("packets") or 0) < int(prev.get("packets") or 0)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _delta(
|
|
80
|
+
prev: Optional[Mapping[str, Any]], cur: Mapping[str, Any], key: str, reset: bool
|
|
81
|
+
) -> int:
|
|
82
|
+
"""``cur[key] - prev[key]``, or ``cur[key]`` after a reset (there is no
|
|
83
|
+
previous reading, or the session was rebuilt). A counter that went
|
|
84
|
+
backwards without a reset reads as 0, never as a negative or as its
|
|
85
|
+
absolute value."""
|
|
86
|
+
now = int(cur.get(key) or 0)
|
|
87
|
+
if reset:
|
|
88
|
+
return now
|
|
89
|
+
return max(0, now - int(prev.get(key) or 0))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def _pct(part: int, whole: int) -> float:
|
|
93
|
+
if whole <= 0:
|
|
94
|
+
return 100.0 if part > 0 else 0.0
|
|
95
|
+
return 100.0 * part / whole
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def format_health_line(
|
|
99
|
+
device_id: str,
|
|
100
|
+
period_s: float,
|
|
101
|
+
prev: Optional[Mapping[str, Any]],
|
|
102
|
+
cur: Mapping[str, Any],
|
|
103
|
+
now: float,
|
|
104
|
+
) -> str:
|
|
105
|
+
"""The line for one period. ``prev`` is the snapshot at the previous line
|
|
106
|
+
(or ``None`` for the first); ``cur`` the snapshot now; ``now`` the
|
|
107
|
+
monotonic clock the snapshot's ``last_media_monotonic`` is on."""
|
|
108
|
+
secs = max(period_s, 1e-9)
|
|
109
|
+
reset = _reset(prev, cur)
|
|
110
|
+
packets = _delta(prev, cur, "packets", reset)
|
|
111
|
+
parts = [
|
|
112
|
+
f"camera {device_id}: health {period_s:.0f}s:",
|
|
113
|
+
f"packets={packets} ({packets / secs:.1f}/s)",
|
|
114
|
+
]
|
|
115
|
+
if "bytes" in cur:
|
|
116
|
+
parts.append(f"bytes={_fmt_bytes(_delta(prev, cur, 'bytes', reset))}")
|
|
117
|
+
if "lost" in cur:
|
|
118
|
+
# Only a transport that counts loss says so: aiortc's inbound-rtp
|
|
119
|
+
# report on DTLS. The SDES bridge recovers loss with NACK and has no
|
|
120
|
+
# receiver-side count, so its line carries no misleading zero.
|
|
121
|
+
lost = _delta(prev, cur, "lost", reset)
|
|
122
|
+
parts.append(f"lost={lost} ({_pct(lost, packets + lost):.1f}%)")
|
|
123
|
+
last_media = float(cur.get("last_media_monotonic") or 0.0)
|
|
124
|
+
if last_media > 0.0 and math.isfinite(last_media):
|
|
125
|
+
parts.append(f"stall={max(0.0, now - last_media):.1f}s")
|
|
126
|
+
else:
|
|
127
|
+
parts.append("no media yet")
|
|
128
|
+
parts.append(f"path={cur.get('media_path') or '?'}")
|
|
129
|
+
viewer = cur.get("viewer")
|
|
130
|
+
parts.append(
|
|
131
|
+
"viewers="
|
|
132
|
+
+ ("present" if viewer is True else "absent" if viewer is False else "unknown")
|
|
133
|
+
)
|
|
134
|
+
if "frames" in cur:
|
|
135
|
+
frames = _delta(prev, cur, "frames", reset)
|
|
136
|
+
parts.append(f"frames={frames} ({frames / secs:.1f}/s)")
|
|
137
|
+
if "keyframes" in cur:
|
|
138
|
+
parts.append(f"keyframes={_delta(prev, cur, 'keyframes', reset)}")
|
|
139
|
+
if cur.get("max_gap_s") is not None:
|
|
140
|
+
parts.append(f"max_gap={float(cur['max_gap_s']):.2f}s")
|
|
141
|
+
return " ".join(parts)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def dtls_snapshot(
|
|
145
|
+
stats: Mapping[str, Any],
|
|
146
|
+
canary: Optional[Mapping[str, Any]],
|
|
147
|
+
last_media_monotonic: float,
|
|
148
|
+
viewer: Optional[bool],
|
|
149
|
+
) -> dict:
|
|
150
|
+
"""A reporter snapshot from what the DTLS serve loop already has.
|
|
151
|
+
|
|
152
|
+
``stats`` is ``WebRTCSession.get_stats()``: inbound RTP packets received
|
|
153
|
+
and lost, summed over audio and video, and the nominated ICE pairs, from
|
|
154
|
+
which the path is ``relay`` when any remote candidate is a relay, else
|
|
155
|
+
``direct``, else unknown. ``canary`` is the serve's video canary (frames,
|
|
156
|
+
keyframes, max gap). There is no byte count on this transport, so the
|
|
157
|
+
snapshot carries none and the line says nothing about bytes.
|
|
158
|
+
"""
|
|
159
|
+
packets = 0
|
|
160
|
+
lost = 0
|
|
161
|
+
for row in stats.get("inbound") or ():
|
|
162
|
+
packets += int(row.get("packets_received") or 0)
|
|
163
|
+
lost += max(0, int(row.get("packets_lost") or 0))
|
|
164
|
+
pairs = stats.get("ice") or ()
|
|
165
|
+
path: Optional[str] = None
|
|
166
|
+
if pairs:
|
|
167
|
+
path = (
|
|
168
|
+
"relay" if any(p.get("remote_type") == "relay" for p in pairs) else "direct"
|
|
169
|
+
)
|
|
170
|
+
out: dict = {
|
|
171
|
+
"packets": packets,
|
|
172
|
+
"lost": lost,
|
|
173
|
+
"last_media_monotonic": last_media_monotonic,
|
|
174
|
+
"media_path": path,
|
|
175
|
+
"viewer": viewer,
|
|
176
|
+
}
|
|
177
|
+
if canary:
|
|
178
|
+
out["frames"] = int(canary.get("frames") or 0)
|
|
179
|
+
out["keyframes"] = int(canary.get("keyframes") or 0)
|
|
180
|
+
out["max_gap_s"] = float(canary.get("max_gap") or 0.0)
|
|
181
|
+
return out
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class HealthReporter:
|
|
185
|
+
"""Turns a stream of counter snapshots into one line per period.
|
|
186
|
+
|
|
187
|
+
``tick(now, snapshot)`` is called on the loop's own cadence with the
|
|
188
|
+
monotonic clock and the current counters. It returns the line it logged,
|
|
189
|
+
or ``None`` when the period has not elapsed (or the reporter is disabled),
|
|
190
|
+
so a caller never has to track the schedule itself.
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
def __init__(
|
|
194
|
+
self,
|
|
195
|
+
device_id: str,
|
|
196
|
+
period_s: Optional[float] = None,
|
|
197
|
+
logger: Optional[logging.Logger] = None,
|
|
198
|
+
) -> None:
|
|
199
|
+
self.device_id = device_id
|
|
200
|
+
self.period_s = health_line_period_s() if period_s is None else float(period_s)
|
|
201
|
+
self._log = logger or _LOGGER
|
|
202
|
+
self._last_at: Optional[float] = None
|
|
203
|
+
self._last_snapshot: Optional[dict] = None
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def enabled(self) -> bool:
|
|
207
|
+
return self.period_s > 0.0
|
|
208
|
+
|
|
209
|
+
def due(self, now: float) -> bool:
|
|
210
|
+
"""Whether a ``tick`` at ``now`` would do anything (anchor or report).
|
|
211
|
+
|
|
212
|
+
For a caller whose snapshot costs something to build (an awaited
|
|
213
|
+
``getStats()``), so it can skip the work on the ticks in between."""
|
|
214
|
+
if not self.enabled:
|
|
215
|
+
return False
|
|
216
|
+
return self._last_at is None or now - self._last_at >= self.period_s
|
|
217
|
+
|
|
218
|
+
def skip(self, now: float) -> None:
|
|
219
|
+
"""Count this period as reported without a line, for a caller whose
|
|
220
|
+
snapshot failed: the next attempt is a period away, not the next poll."""
|
|
221
|
+
self._last_at = now
|
|
222
|
+
|
|
223
|
+
def tick(self, now: float, snapshot: Mapping[str, Any]) -> Optional[str]:
|
|
224
|
+
if not self.enabled:
|
|
225
|
+
return None
|
|
226
|
+
if self._last_at is None:
|
|
227
|
+
# The first tick only anchors the period; there is no delta to report.
|
|
228
|
+
self._last_at = now
|
|
229
|
+
self._last_snapshot = dict(snapshot)
|
|
230
|
+
return None
|
|
231
|
+
elapsed = now - self._last_at
|
|
232
|
+
if elapsed < self.period_s:
|
|
233
|
+
return None
|
|
234
|
+
line = format_health_line(
|
|
235
|
+
self.device_id, elapsed, self._last_snapshot, snapshot, now
|
|
236
|
+
)
|
|
237
|
+
self._log.info("%s", line)
|
|
238
|
+
self._last_at = now
|
|
239
|
+
self._last_snapshot = dict(snapshot)
|
|
240
|
+
return line
|
{python_aidot_cameras-1.0.0rc47 → python_aidot_cameras-1.0.0rc49}/aidot_cameras/lan_retry.py
RENAMED
|
@@ -191,6 +191,16 @@ class LanRetryMixin:
|
|
|
191
191
|
#: bare module read so a subclass (or a test) can shorten it in place.
|
|
192
192
|
_login_connect_timeout_s: float = _LOGIN_CONNECT_TIMEOUT_S
|
|
193
193
|
|
|
194
|
+
#: The delayed retry task armed by `_schedule_reconnect`, or None. Its
|
|
195
|
+
#: own attribute, deliberately not upstream's `_login_task`: upstream's
|
|
196
|
+
#: `update_ip_address()` overwrites `_login_task` with a fresh in-flight
|
|
197
|
+
#: login task, without cancelling whatever was already parked there -
|
|
198
|
+
#: which would silently orphan a sleeping retry rather than cancel it.
|
|
199
|
+
#: (`connect()` itself never touches `_login_task`; only
|
|
200
|
+
#: `update_ip_address()` and upstream's own `_schedule_reconnect()` do,
|
|
201
|
+
#: and this mixin's override of the latter never calls super().)
|
|
202
|
+
_lan_retry_task: Optional[asyncio.Task] = None
|
|
203
|
+
|
|
194
204
|
@property
|
|
195
205
|
def lan_address(self) -> Optional[str]:
|
|
196
206
|
"""The LAN address the login is tried at, or None before discovery."""
|
|
@@ -313,6 +323,36 @@ class LanRetryMixin:
|
|
|
313
323
|
self._connect_failures,
|
|
314
324
|
)
|
|
315
325
|
return
|
|
326
|
+
# Upstream's own update_ip_address (below, via super()) spawns a fresh
|
|
327
|
+
# `_login_task` with a plain `asyncio.create_task`, but ONLY when it
|
|
328
|
+
# is not mid-connect and not logged in - `if self._connecting is not
|
|
329
|
+
# True and self._connect_and_login is not True`. Discovery calls this
|
|
330
|
+
# on every broadcast, same address or not, so under that same
|
|
331
|
+
# condition a `_lan_retry_task` from _schedule_reconnect that is still
|
|
332
|
+
# asleep would be overwritten rather than cancelled: it fires anyway a
|
|
333
|
+
# few seconds later, a second login attempt for one discovery update.
|
|
334
|
+
#
|
|
335
|
+
# The gate below mirrors upstream's own condition exactly, rather than
|
|
336
|
+
# cancelling unconditionally: a sleeping retry that has already woken
|
|
337
|
+
# and is mid-`connect()` (`_connecting` True, a socket open) must NOT
|
|
338
|
+
# be cancelled here. `task.cancel()` only schedules a CancelledError
|
|
339
|
+
# at the next suspension point - it is not visible to `_connecting`
|
|
340
|
+
# synchronously - so `super().update_ip_address(ip)` below would still
|
|
341
|
+
# see `_connecting` True and spawn no replacement login, while the
|
|
342
|
+
# cancelled task's `finally: self._connecting = False` (inside
|
|
343
|
+
# upstream's `connect()`) runs later without closing `self.writer`:
|
|
344
|
+
# a non-closed light left with no login, no retry, and a leaked
|
|
345
|
+
# socket until the next discovery cycle. Only cancel when upstream's
|
|
346
|
+
# own check says it is about to supersede this with a fresh login.
|
|
347
|
+
pending = getattr(self, "_lan_retry_task", None)
|
|
348
|
+
if (
|
|
349
|
+
pending is not None
|
|
350
|
+
and pending is not asyncio.current_task()
|
|
351
|
+
and not pending.done()
|
|
352
|
+
and not getattr(self, "_connecting", False)
|
|
353
|
+
and not getattr(self, "_connect_and_login", False)
|
|
354
|
+
):
|
|
355
|
+
pending.cancel()
|
|
316
356
|
super().update_ip_address(ip)
|
|
317
357
|
|
|
318
358
|
def _schedule_reconnect(self) -> None:
|
|
@@ -353,6 +393,13 @@ class LanRetryMixin:
|
|
|
353
393
|
async def _retry() -> None:
|
|
354
394
|
try:
|
|
355
395
|
await asyncio.sleep(delay)
|
|
396
|
+
# Close can land while this is asleep: a caller that closes
|
|
397
|
+
# without going through `_upstream.cancel_pending_reconnect`
|
|
398
|
+
# must still not log a closed client back in. Checked AFTER
|
|
399
|
+
# the sleep, not before scheduling: a close between here and
|
|
400
|
+
# the schedule call is exactly what the cancel on close is for.
|
|
401
|
+
if getattr(self, "_is_close", False):
|
|
402
|
+
return
|
|
356
403
|
await self.async_login()
|
|
357
404
|
except asyncio.CancelledError:
|
|
358
405
|
raise
|
|
@@ -363,4 +410,29 @@ class LanRetryMixin:
|
|
|
363
410
|
exc_info=True,
|
|
364
411
|
)
|
|
365
412
|
|
|
366
|
-
|
|
413
|
+
# Cancel a still-pending retry from an earlier failure before
|
|
414
|
+
# replacing it: reset() can call back in here (an address change, or
|
|
415
|
+
# another dropped connection) while the previous delayed retry is
|
|
416
|
+
# still asleep, and overwriting it without cancelling would let both
|
|
417
|
+
# reach `async_login()`. Never the currently running task though:
|
|
418
|
+
# `_retry()`'s own `async_login()` can fail and end in
|
|
419
|
+
# `reset()` -> `_schedule_reconnect()` on the SAME task (this call
|
|
420
|
+
# frame), in which case `previous` IS `asyncio.current_task()` and
|
|
421
|
+
# cancelling it would cut the retry we are in the middle of arming.
|
|
422
|
+
#
|
|
423
|
+
# Tracked under our OWN attribute, `_lan_retry_task`, rather than
|
|
424
|
+
# upstream's `_login_task`: upstream's `update_ip_address` overwrites
|
|
425
|
+
# `_login_task` with a fresh in-flight login task, with no cancel of
|
|
426
|
+
# whatever was there - a delayed retry parked under the same name
|
|
427
|
+
# would then be orphaned (unreachable to cancel) but still fire on
|
|
428
|
+
# its own a few seconds later. See `update_ip_address` below for the
|
|
429
|
+
# matching cancel on the discovery path, and
|
|
430
|
+
# `_upstream.cancel_pending_reconnect` for the one on close.
|
|
431
|
+
previous = getattr(self, "_lan_retry_task", None)
|
|
432
|
+
if (
|
|
433
|
+
previous is not None
|
|
434
|
+
and previous is not asyncio.current_task()
|
|
435
|
+
and not previous.done()
|
|
436
|
+
):
|
|
437
|
+
previous.cancel()
|
|
438
|
+
self._lan_retry_task = asyncio.create_task(_retry())
|
|
@@ -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.0rc49"
|
|
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.0rc49
|
|
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
|
|
@@ -79,6 +79,28 @@ companion integration repo
|
|
|
79
79
|
[`cbrightly/hass-aidot-cameras`](https://github.com/cbrightly/hass-aidot-cameras), which depends
|
|
80
80
|
on this library.
|
|
81
81
|
|
|
82
|
+
## How it fits together
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
AiDot cloud python-aidot-cameras consumers
|
|
86
|
+
----------- -------------------- ---------
|
|
87
|
+
MQTT signaling <---------------> open a session: offer, answer,
|
|
88
|
+
ICE / TURN ICE, keys (DTLS or SDES)
|
|
89
|
+
|
|
|
90
|
+
camera ====SRTP over the LAN====> decrypt, reorder, count ---(RTSP push)---> go2rtc ---> WebRTC view, rtsp:// URL
|
|
91
|
+
(relay only when there is | (Home Assistant, Frigate,
|
|
92
|
+
no route back to us) +---(MPEG-TS, loopback)--------------------------> HA HLS view, camera.record
|
|
93
|
+
+---(JPEG)----------------------------------------> snapshots
|
|
94
|
+
+---(.ts / .mp4 copy)-----------------------------> recordings
|
|
95
|
+
+<--(PCM, 20 ms)----------------------------------- two-way audio
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The cloud brokers the handshake and never carries the media: on the same
|
|
99
|
+
network the camera sends straight to this library, and only a camera with no
|
|
100
|
+
route back rides the vendor's relay. The library decrypts once and fans the
|
|
101
|
+
camera's own packets out without re-encoding; ffmpeg is used for recordings,
|
|
102
|
+
snapshots, the CLI's stdout form and any session that negotiates H.265.
|
|
103
|
+
|
|
82
104
|
## Supported cameras
|
|
83
105
|
|
|
84
106
|
The streaming transport is auto-selected per camera from its model id:
|
|
@@ -483,7 +505,10 @@ not from this library alone: **it does not run an RTSP server**, and neither do
|
|
|
483
505
|
the cameras - they have no RTSP and no ONVIF endpoint. The only way video
|
|
484
506
|
leaves them is the cloud-signalled WebRTC handshake and SRTP decrypt this
|
|
485
507
|
library does. Pair it with [go2rtc](https://github.com/AlexxIT/go2rtc) and
|
|
486
|
-
go2rtc publishes the RTSP URL for you.
|
|
508
|
+
go2rtc publishes the RTSP URL for you. (The CLI's `{output}` form is an
|
|
509
|
+
ordinary RTSP push, so a standalone setup can point it at mediamtx or any other
|
|
510
|
+
RTSP server instead; go2rtc is what Home Assistant speaks to, which is why the
|
|
511
|
+
steps below use it.)
|
|
487
512
|
|
|
488
513
|
Three steps, about five minutes.
|
|
489
514
|
|
|
@@ -596,6 +621,7 @@ stored credentials file. See [`aidot_cameras/credentials.py`](https://github.com
|
|
|
596
621
|
| `AIDOT_USERNAME` | AiDot account username/email. Used with `AIDOT_PASSWORD`. | (none) |
|
|
597
622
|
| `AIDOT_PASSWORD` | AiDot account password. Used with `AIDOT_USERNAME`. | (none) |
|
|
598
623
|
| `AIDOT_COUNTRY` | Account region/country code. | `US` |
|
|
624
|
+
| `AIDOT_TOKEN_FILE` | Path of a JSON file that caches the login across restarts; token rotations are written back to it. Used by the `aidot-go2rtc` CLI (see [Installing](#installing)); one file shared by every process on the account, since a second login invalidates the first's token. | (none) |
|
|
599
625
|
|
|
600
626
|
### Camera streaming / tuning
|
|
601
627
|
|
|
@@ -58,6 +58,7 @@ aidot_cameras/camera/constants.py
|
|
|
58
58
|
aidot_cameras/camera/controls.py
|
|
59
59
|
aidot_cameras/camera/go2rtc.py
|
|
60
60
|
aidot_cameras/camera/h264_sps.py
|
|
61
|
+
aidot_cameras/camera/health.py
|
|
61
62
|
aidot_cameras/camera/hls_ts.py
|
|
62
63
|
aidot_cameras/camera/hwaccel.py
|
|
63
64
|
aidot_cameras/camera/lan_control.py
|
|
@@ -154,6 +155,7 @@ tests/test_go2rtc.py
|
|
|
154
155
|
tests/test_go2rtc_cli.py
|
|
155
156
|
tests/test_h264_decode_rate_limit.py
|
|
156
157
|
tests/test_h264_sps.py
|
|
158
|
+
tests/test_health_line.py
|
|
157
159
|
tests/test_highport_nomination.py
|
|
158
160
|
tests/test_hls_ts_end_to_end.py
|
|
159
161
|
tests/test_hls_ts_wiring.py
|
|
@@ -169,6 +171,7 @@ tests/test_lan_control.py
|
|
|
169
171
|
tests/test_lan_login_accessors.py
|
|
170
172
|
tests/test_lan_retry_reaches_the_storming_devices.py
|
|
171
173
|
tests/test_lan_retry_silences_upstream_over_ceiling.py
|
|
174
|
+
tests/test_lan_retry_stops_on_close.py
|
|
172
175
|
tests/test_lan_sweep_only_with_lights.py
|
|
173
176
|
tests/test_late_repeats_are_dropped.py
|
|
174
177
|
tests/test_light_active_color_mode.py
|