python-aidot-cameras 1.0.0rc48__tar.gz → 1.0.0rc52__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.0rc48/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0rc52}/PKG-INFO +57 -2
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/README.md +56 -1
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/client.py +59 -6
- python_aidot_cameras-1.0.0rc52/aidot_cameras/camera/health.py +238 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/rtsp_publish.py +25 -9
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/sdes_open.py +3 -1
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/pyproject.toml +1 -1
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52/python_aidot_cameras.egg-info}/PKG-INFO +57 -2
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/python_aidot_cameras.egg-info/SOURCES.txt +2 -0
- python_aidot_cameras-1.0.0rc52/tests/test_health_line.py +280 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_live_validate_policy.py +125 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_rtsp_publish.py +56 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_serve_audio.py +34 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_upstream.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/playback.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/protocol.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/tutk.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/lan_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_lan_retry_stops_on_close.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_peer_id_class_env.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_playback_tls.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_echo_wait_is_not_dead_time.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_session_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_tmmbr.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_tutk_path_is_out_of_reach.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_unreachable_nominee_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/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.0rc52
|
|
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:
|
|
@@ -391,6 +413,35 @@ await session.async_stop_talk()
|
|
|
391
413
|
See [`docs/CAMERAS.md`](https://github.com/cbrightly/python-aidot-cameras/blob/main/docs/CAMERAS.md) for the full camera API (streaming,
|
|
392
414
|
snapshots, recordings, motion polling, two-way audio, and LAN-direct media).
|
|
393
415
|
|
|
416
|
+
### Reading the health line
|
|
417
|
+
|
|
418
|
+
Every live session logs one INFO line a minute (`AIDOT_HEALTH_LINE_S`, `0`
|
|
419
|
+
turns it off). A DTLS camera's looks like this, with the device id after
|
|
420
|
+
`camera`:
|
|
421
|
+
|
|
422
|
+
```
|
|
423
|
+
health 20s: packets=1686 (84.1/s) lost=0 (0.0%) stall=0.0s path=direct viewers=present
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
Each figure is for that period alone, so a steady trickle of loss reads as a
|
|
427
|
+
rate rather than vanishing into a session total:
|
|
428
|
+
|
|
429
|
+
- `packets` and the rate: RTP packets that arrived. An SDES camera reports
|
|
430
|
+
`bytes` as well; a DTLS camera reports `lost`, the receiver's own count.
|
|
431
|
+
- `stall`: seconds since the last media packet. A rising `stall` with
|
|
432
|
+
`lost=0` means the camera stopped sending, not that the link dropped
|
|
433
|
+
packets; a DTLS session with no video for `AIDOT_DTLS_VIDEO_GRACE_S`
|
|
434
|
+
(30 s) is torn down and re-opened on its own.
|
|
435
|
+
- `path`: `direct` when the media crosses the LAN, `relay` when it rides
|
|
436
|
+
the vendor's TURN relay (a camera with no route back, or one on another
|
|
437
|
+
subnet).
|
|
438
|
+
- `viewers`: `present`, `absent`, or `unknown` when the consumer cannot be
|
|
439
|
+
counted; a battery camera with nobody watching is released after its
|
|
440
|
+
idle window.
|
|
441
|
+
So a pasted log says which of "the link is lossy", "the picture froze" and
|
|
442
|
+
"nobody was watching" it was. A report that fails for any reason is dropped
|
|
443
|
+
and never ends the session.
|
|
444
|
+
|
|
394
445
|
## Camera controls and state
|
|
395
446
|
|
|
396
447
|
Controls are on the camera device client. Writes are confirmed by reading the
|
|
@@ -483,7 +534,10 @@ not from this library alone: **it does not run an RTSP server**, and neither do
|
|
|
483
534
|
the cameras - they have no RTSP and no ONVIF endpoint. The only way video
|
|
484
535
|
leaves them is the cloud-signalled WebRTC handshake and SRTP decrypt this
|
|
485
536
|
library does. Pair it with [go2rtc](https://github.com/AlexxIT/go2rtc) and
|
|
486
|
-
go2rtc publishes the RTSP URL for you.
|
|
537
|
+
go2rtc publishes the RTSP URL for you. (The CLI's `{output}` form is an
|
|
538
|
+
ordinary RTSP push, so a standalone setup can point it at mediamtx or any other
|
|
539
|
+
RTSP server instead; go2rtc is what Home Assistant speaks to, which is why the
|
|
540
|
+
steps below use it.)
|
|
487
541
|
|
|
488
542
|
Three steps, about five minutes.
|
|
489
543
|
|
|
@@ -596,6 +650,7 @@ stored credentials file. See [`aidot_cameras/credentials.py`](https://github.com
|
|
|
596
650
|
| `AIDOT_USERNAME` | AiDot account username/email. Used with `AIDOT_PASSWORD`. | (none) |
|
|
597
651
|
| `AIDOT_PASSWORD` | AiDot account password. Used with `AIDOT_USERNAME`. | (none) |
|
|
598
652
|
| `AIDOT_COUNTRY` | Account region/country code. | `US` |
|
|
653
|
+
| `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
654
|
|
|
600
655
|
### Camera streaming / tuning
|
|
601
656
|
|
|
@@ -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:
|
|
@@ -351,6 +373,35 @@ await session.async_stop_talk()
|
|
|
351
373
|
See [`docs/CAMERAS.md`](https://github.com/cbrightly/python-aidot-cameras/blob/main/docs/CAMERAS.md) for the full camera API (streaming,
|
|
352
374
|
snapshots, recordings, motion polling, two-way audio, and LAN-direct media).
|
|
353
375
|
|
|
376
|
+
### Reading the health line
|
|
377
|
+
|
|
378
|
+
Every live session logs one INFO line a minute (`AIDOT_HEALTH_LINE_S`, `0`
|
|
379
|
+
turns it off). A DTLS camera's looks like this, with the device id after
|
|
380
|
+
`camera`:
|
|
381
|
+
|
|
382
|
+
```
|
|
383
|
+
health 20s: packets=1686 (84.1/s) lost=0 (0.0%) stall=0.0s path=direct viewers=present
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
Each figure is for that period alone, so a steady trickle of loss reads as a
|
|
387
|
+
rate rather than vanishing into a session total:
|
|
388
|
+
|
|
389
|
+
- `packets` and the rate: RTP packets that arrived. An SDES camera reports
|
|
390
|
+
`bytes` as well; a DTLS camera reports `lost`, the receiver's own count.
|
|
391
|
+
- `stall`: seconds since the last media packet. A rising `stall` with
|
|
392
|
+
`lost=0` means the camera stopped sending, not that the link dropped
|
|
393
|
+
packets; a DTLS session with no video for `AIDOT_DTLS_VIDEO_GRACE_S`
|
|
394
|
+
(30 s) is torn down and re-opened on its own.
|
|
395
|
+
- `path`: `direct` when the media crosses the LAN, `relay` when it rides
|
|
396
|
+
the vendor's TURN relay (a camera with no route back, or one on another
|
|
397
|
+
subnet).
|
|
398
|
+
- `viewers`: `present`, `absent`, or `unknown` when the consumer cannot be
|
|
399
|
+
counted; a battery camera with nobody watching is released after its
|
|
400
|
+
idle window.
|
|
401
|
+
So a pasted log says which of "the link is lossy", "the picture froze" and
|
|
402
|
+
"nobody was watching" it was. A report that fails for any reason is dropped
|
|
403
|
+
and never ends the session.
|
|
404
|
+
|
|
354
405
|
## Camera controls and state
|
|
355
406
|
|
|
356
407
|
Controls are on the camera device client. Writes are confirmed by reading the
|
|
@@ -443,7 +494,10 @@ not from this library alone: **it does not run an RTSP server**, and neither do
|
|
|
443
494
|
the cameras - they have no RTSP and no ONVIF endpoint. The only way video
|
|
444
495
|
leaves them is the cloud-signalled WebRTC handshake and SRTP decrypt this
|
|
445
496
|
library does. Pair it with [go2rtc](https://github.com/AlexxIT/go2rtc) and
|
|
446
|
-
go2rtc publishes the RTSP URL for you.
|
|
497
|
+
go2rtc publishes the RTSP URL for you. (The CLI's `{output}` form is an
|
|
498
|
+
ordinary RTSP push, so a standalone setup can point it at mediamtx or any other
|
|
499
|
+
RTSP server instead; go2rtc is what Home Assistant speaks to, which is why the
|
|
500
|
+
steps below use it.)
|
|
447
501
|
|
|
448
502
|
Three steps, about five minutes.
|
|
449
503
|
|
|
@@ -556,6 +610,7 @@ stored credentials file. See [`aidot_cameras/credentials.py`](https://github.com
|
|
|
556
610
|
| `AIDOT_USERNAME` | AiDot account username/email. Used with `AIDOT_PASSWORD`. | (none) |
|
|
557
611
|
| `AIDOT_PASSWORD` | AiDot account password. Used with `AIDOT_USERNAME`. | (none) |
|
|
558
612
|
| `AIDOT_COUNTRY` | Account region/country code. | `US` |
|
|
613
|
+
| `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
614
|
|
|
560
615
|
### Camera streaming / tuning
|
|
561
616
|
|
{python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/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
|
|
@@ -5960,20 +5978,29 @@ class CameraMixin(
|
|
|
5960
5978
|
"off",
|
|
5961
5979
|
)
|
|
5962
5980
|
|
|
5963
|
-
def _resolve_sdes_audio_gain_db(self) -> float:
|
|
5964
|
-
"""Gain (dB) applied to the served SDES audio
|
|
5981
|
+
def _resolve_sdes_audio_gain_db(self, default: float = -8.0) -> float:
|
|
5982
|
+
"""Gain (dB) applied to the served SDES audio.
|
|
5965
5983
|
|
|
5966
5984
|
Per-camera ``sdes_audio_gain_db`` (via ``start_keepalive``) wins; else the
|
|
5967
|
-
``AIDOT_SDES_AUDIO_GAIN_DB`` env; else
|
|
5968
|
-
the default rather than raising.
|
|
5985
|
+
``AIDOT_SDES_AUDIO_GAIN_DB`` env; else ``default``. A bad value falls
|
|
5986
|
+
back to the default rather than raising.
|
|
5987
|
+
|
|
5988
|
+
The default differs by serve path. The ffmpeg serve applies the gain to
|
|
5989
|
+
the camera's raw A-law and keeps ``-8``, sized in 0.7.34 for a hot
|
|
5990
|
+
microphone. The direct publisher runs the same level normalizer as the
|
|
5991
|
+
DTLS publisher first and applies this as an offset after it, so its
|
|
5992
|
+
default is ``0``: the same loudness an A000088 is served at. A caller
|
|
5993
|
+
that sets the value explicitly gets it on either path."""
|
|
5969
5994
|
opt = getattr(self, "_sdes_audio_gain_opt", None)
|
|
5970
5995
|
src = (
|
|
5971
|
-
opt
|
|
5996
|
+
opt
|
|
5997
|
+
if opt is not None
|
|
5998
|
+
else os.environ.get("AIDOT_SDES_AUDIO_GAIN_DB", str(default))
|
|
5972
5999
|
)
|
|
5973
6000
|
try:
|
|
5974
6001
|
return float(src)
|
|
5975
6002
|
except (ValueError, TypeError):
|
|
5976
|
-
return
|
|
6003
|
+
return float(default)
|
|
5977
6004
|
|
|
5978
6005
|
def _resolve_live_stream_param(self) -> bool:
|
|
5979
6006
|
"""Whether to make the cloud ``liveStreamParam`` KVS pre-connect before
|
|
@@ -6661,6 +6688,13 @@ class CameraMixin(
|
|
|
6661
6688
|
_connected_at = loop.time()
|
|
6662
6689
|
_first_video_at = None
|
|
6663
6690
|
_no_video = False
|
|
6691
|
+
# One INFO line per AIDOT_HEALTH_LINE_S (camera/health.py):
|
|
6692
|
+
# aiortc's inbound packet and loss counts, the serve
|
|
6693
|
+
# canary's frames and keyframes, and this loop's viewer
|
|
6694
|
+
# answer. getStats() is awaited only on the ticks that
|
|
6695
|
+
# report, not every half second.
|
|
6696
|
+
_health_dtls = HealthReporter(self.device_id)
|
|
6697
|
+
_watching_dtls = None
|
|
6664
6698
|
# Wait for ffmpeg to exit (go2rtc disconnect) or idle
|
|
6665
6699
|
# release. On the direct path there is no ffmpeg to exit, so
|
|
6666
6700
|
# the cycle runs until the peer connection dies or the view
|
|
@@ -6681,6 +6715,24 @@ class CameraMixin(
|
|
|
6681
6715
|
# republishes after a short backoff.
|
|
6682
6716
|
break
|
|
6683
6717
|
_now = loop.time()
|
|
6718
|
+
if _health_dtls.due(_now):
|
|
6719
|
+
try:
|
|
6720
|
+
_get_stats = getattr(session, "get_stats", None)
|
|
6721
|
+
_health_dtls.tick(
|
|
6722
|
+
_now,
|
|
6723
|
+
_dtls_snapshot(
|
|
6724
|
+
await _get_stats() if _get_stats else {},
|
|
6725
|
+
_live_video_canary(
|
|
6726
|
+
pc,
|
|
6727
|
+
getattr(self, "_serve_video_canary", None),
|
|
6728
|
+
),
|
|
6729
|
+
progress[0],
|
|
6730
|
+
_watching_dtls,
|
|
6731
|
+
),
|
|
6732
|
+
)
|
|
6733
|
+
except Exception: # a report must never end a session
|
|
6734
|
+
_health_dtls.skip(_now)
|
|
6735
|
+
_LOGGER.debug("health line failed", exc_info=True)
|
|
6684
6736
|
if _first_video_at is None:
|
|
6685
6737
|
_canary_v = _live_video_canary(
|
|
6686
6738
|
pc, getattr(self, "_serve_video_canary", None)
|
|
@@ -6734,6 +6786,7 @@ class CameraMixin(
|
|
|
6734
6786
|
# cannot answer.
|
|
6735
6787
|
if idle_secs > 0:
|
|
6736
6788
|
_watching = await self._viewer_present(_serve_port_dtls)
|
|
6789
|
+
_watching_dtls = _watching
|
|
6737
6790
|
_window_dtls = (
|
|
6738
6791
|
idle_secs
|
|
6739
6792
|
if _viewer_seen_dtls
|
|
@@ -0,0 +1,238 @@
|
|
|
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
|
+
# The serve canary's frames, keyframes and keyframe gap are deliberately
|
|
135
|
+
# NOT on the line. Measured 2026-10-14 against a captured stream from an
|
|
136
|
+
# A000088: the canary ran at twice the picture rate (it counts what the
|
|
137
|
+
# receiver hands over, not pictures) and once reported four times that
|
|
138
|
+
# over one period while the capture stayed a regular 15 fps. Until that
|
|
139
|
+
# counting is understood the figures would mislead; the canary still logs
|
|
140
|
+
# at DEBUG as before.
|
|
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, largest frame count between keyframes); it is accepted for the
|
|
157
|
+
call sites' sake and not reported - see ``_format``. There is no byte count
|
|
158
|
+
on this transport, so the
|
|
159
|
+
snapshot carries none and the line says nothing about bytes.
|
|
160
|
+
"""
|
|
161
|
+
packets = 0
|
|
162
|
+
lost = 0
|
|
163
|
+
for row in stats.get("inbound") or ():
|
|
164
|
+
packets += int(row.get("packets_received") or 0)
|
|
165
|
+
lost += max(0, int(row.get("packets_lost") or 0))
|
|
166
|
+
pairs = stats.get("ice") or ()
|
|
167
|
+
path: Optional[str] = None
|
|
168
|
+
if pairs:
|
|
169
|
+
path = (
|
|
170
|
+
"relay" if any(p.get("remote_type") == "relay" for p in pairs) else "direct"
|
|
171
|
+
)
|
|
172
|
+
out: dict = {
|
|
173
|
+
"packets": packets,
|
|
174
|
+
"lost": lost,
|
|
175
|
+
"last_media_monotonic": last_media_monotonic,
|
|
176
|
+
"media_path": path,
|
|
177
|
+
"viewer": viewer,
|
|
178
|
+
}
|
|
179
|
+
return out
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class HealthReporter:
|
|
183
|
+
"""Turns a stream of counter snapshots into one line per period.
|
|
184
|
+
|
|
185
|
+
``tick(now, snapshot)`` is called on the loop's own cadence with the
|
|
186
|
+
monotonic clock and the current counters. It returns the line it logged,
|
|
187
|
+
or ``None`` when the period has not elapsed (or the reporter is disabled),
|
|
188
|
+
so a caller never has to track the schedule itself.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
def __init__(
|
|
192
|
+
self,
|
|
193
|
+
device_id: str,
|
|
194
|
+
period_s: Optional[float] = None,
|
|
195
|
+
logger: Optional[logging.Logger] = None,
|
|
196
|
+
) -> None:
|
|
197
|
+
self.device_id = device_id
|
|
198
|
+
self.period_s = health_line_period_s() if period_s is None else float(period_s)
|
|
199
|
+
self._log = logger or _LOGGER
|
|
200
|
+
self._last_at: Optional[float] = None
|
|
201
|
+
self._last_snapshot: Optional[dict] = None
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def enabled(self) -> bool:
|
|
205
|
+
return self.period_s > 0.0
|
|
206
|
+
|
|
207
|
+
def due(self, now: float) -> bool:
|
|
208
|
+
"""Whether a ``tick`` at ``now`` would do anything (anchor or report).
|
|
209
|
+
|
|
210
|
+
For a caller whose snapshot costs something to build (an awaited
|
|
211
|
+
``getStats()``), so it can skip the work on the ticks in between."""
|
|
212
|
+
if not self.enabled:
|
|
213
|
+
return False
|
|
214
|
+
return self._last_at is None or now - self._last_at >= self.period_s
|
|
215
|
+
|
|
216
|
+
def skip(self, now: float) -> None:
|
|
217
|
+
"""Count this period as reported without a line, for a caller whose
|
|
218
|
+
snapshot failed: the next attempt is a period away, not the next poll."""
|
|
219
|
+
self._last_at = now
|
|
220
|
+
|
|
221
|
+
def tick(self, now: float, snapshot: Mapping[str, Any]) -> Optional[str]:
|
|
222
|
+
if not self.enabled:
|
|
223
|
+
return None
|
|
224
|
+
if self._last_at is None:
|
|
225
|
+
# The first tick only anchors the period; there is no delta to report.
|
|
226
|
+
self._last_at = now
|
|
227
|
+
self._last_snapshot = dict(snapshot)
|
|
228
|
+
return None
|
|
229
|
+
elapsed = now - self._last_at
|
|
230
|
+
if elapsed < self.period_s:
|
|
231
|
+
return None
|
|
232
|
+
line = format_health_line(
|
|
233
|
+
self.device_id, elapsed, self._last_snapshot, snapshot, now
|
|
234
|
+
)
|
|
235
|
+
self._log.info("%s", line)
|
|
236
|
+
self._last_at = now
|
|
237
|
+
self._last_snapshot = dict(snapshot)
|
|
238
|
+
return line
|
|
@@ -995,13 +995,22 @@ _ALAW_SQUARES = tuple(float(v) * v for v in _ALAW_TO_LINEAR)
|
|
|
995
995
|
|
|
996
996
|
|
|
997
997
|
class AlawAgc:
|
|
998
|
-
"""The
|
|
999
|
-
|
|
1000
|
-
The PyAV mux
|
|
1001
|
-
arrived: it decoded, ran a level tracker with a gain clamp, a noise
|
|
1002
|
-
and a tanh soft-limiter toward a target level, and re-encoded.
|
|
1003
|
-
raw A-law would quietly drop all of that, so the same
|
|
1004
|
-
here, reading the same environment variables
|
|
998
|
+
"""The audio conditioning both direct publishers apply to A-law payloads.
|
|
999
|
+
|
|
1000
|
+
The PyAV mux the DTLS publisher replaces did not send the camera's audio
|
|
1001
|
+
as it arrived: it decoded, ran a level tracker with a gain clamp, a noise
|
|
1002
|
+
gate and a tanh soft-limiter toward a target level, and re-encoded.
|
|
1003
|
+
Publishing raw A-law would quietly drop all of that, so the same
|
|
1004
|
+
conditioning runs here, reading the same environment variables.
|
|
1005
|
+
|
|
1006
|
+
The SDES publisher runs it too (since the release after 1.0.0rc51). It
|
|
1007
|
+
had only a fixed trim, sized in 0.7.34 for a hot microphone, and the
|
|
1008
|
+
measured truth on 2026-10-14 was the opposite: an A001064 and an A001513
|
|
1009
|
+
send their rooms at -68 and -70 dBFS RMS, so after the trim every sample
|
|
1010
|
+
sat under the first A-law step and the published audio was digital zero,
|
|
1011
|
+
while the same room through an A000088 came out at a listening level.
|
|
1012
|
+
The two transports now get the same conditioning, and the trim is an
|
|
1013
|
+
offset applied after it. Variables:
|
|
1005
1014
|
|
|
1006
1015
|
``AIDOT_AUDIO_TARGET_DBFS`` (-15), ``AIDOT_AUDIO_MAXGAIN_DB`` (30),
|
|
1007
1016
|
``AIDOT_AUDIO_MINGAIN_DB`` (-12), ``AIDOT_AUDIO_GATE_DBFS`` (-45).
|
|
@@ -1170,6 +1179,10 @@ class LoopbackRtpPublisher:
|
|
|
1170
1179
|
]
|
|
1171
1180
|
self._reorder = [RtpReorderBuffer() for _ in self._tracks]
|
|
1172
1181
|
self._input_timeout = input_timeout_s
|
|
1182
|
+
# Same conditioning as the DTLS publisher, then the caller's trim as
|
|
1183
|
+
# an offset on top of the normalized level. The AAC track is fed the
|
|
1184
|
+
# conditioned payload too, so both audio tracks carry the same sound.
|
|
1185
|
+
self._agc: Optional[AlawAgc] = AlawAgc() if include_audio else None
|
|
1173
1186
|
self._gain = alaw_gain_table(audio_gain_db)
|
|
1174
1187
|
# An explicit policy applies to every track. Otherwise video is
|
|
1175
1188
|
# steered (the SDES camera's video clock runs ~7% fast) and audio,
|
|
@@ -1650,8 +1663,11 @@ class LoopbackRtpPublisher:
|
|
|
1650
1663
|
return # already served: not forwarded, not timelined
|
|
1651
1664
|
dedup["last_accepted_ts"] = ts
|
|
1652
1665
|
dedup["accepted_closed"] = marker
|
|
1653
|
-
if
|
|
1654
|
-
|
|
1666
|
+
if track.codec == "PCMA":
|
|
1667
|
+
if self._agc is not None:
|
|
1668
|
+
payload = self._agc.process(payload)
|
|
1669
|
+
if self._gain is not None:
|
|
1670
|
+
payload = payload.translate(self._gain)
|
|
1655
1671
|
seq, out_ts = self._timelines[idx].stamp(ts, arrival)
|
|
1656
1672
|
try:
|
|
1657
1673
|
pub.send_rtp(
|
{python_aidot_cameras-1.0.0rc48 → python_aidot_cameras-1.0.0rc52}/aidot_cameras/camera/sdes_open.py
RENAMED
|
@@ -8936,7 +8936,9 @@ class _SdesOpenMixin:
|
|
|
8936
8936
|
_direct_timeout = _resolve_serve_input_timeout_s(
|
|
8937
8937
|
bool(getattr(self, "is_battery_camera", False))
|
|
8938
8938
|
)
|
|
8939
|
-
|
|
8939
|
+
# The direct publisher normalizes the level itself, so its trim is an
|
|
8940
|
+
# offset after that and defaults to 0, not the ffmpeg serve's -8.
|
|
8941
|
+
_direct_gain_db = self._resolve_sdes_audio_gain_db(default=0.0)
|
|
8940
8942
|
|
|
8941
8943
|
async def _spawn_serve():
|
|
8942
8944
|
"""Start the serve: the direct publisher, or the ffmpeg in `cmd`.
|
|
@@ -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.0rc52"
|
|
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"
|