python-aidot-cameras 1.4.1__tar.gz → 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_aidot_cameras-1.4.1/python_aidot_cameras.egg-info → python_aidot_cameras-1.5.0}/PKG-INFO +42 -12
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/README.md +41 -11
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/__init__.py +5 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/client.py +55 -1
- python_aidot_cameras-1.5.0/aidot_cameras/camera/dtls_pins.py +269 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/stream_health.py +4 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/webrtc_open.py +196 -41
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/client.py +11 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/device_client.py +5 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/exceptions.py +12 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/settings.py +6 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/pyproject.toml +1 -1
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0/python_aidot_cameras.egg-info}/PKG-INFO +42 -12
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/python_aidot_cameras.egg-info/SOURCES.txt +2 -0
- python_aidot_cameras-1.5.0/tests/test_dtls_learned_pin.py +533 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/LICENSE +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_bg_tasks.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_private_file.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_upstream.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/_seq.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/aac_track.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/agc.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/health.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/hls_ts.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/protocol.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/recording.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/rtsp_publish.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/sdes_open.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/lan_retry.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/mqtt_config2.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/setup.cfg +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_avio_ctrl_uses_the_session_dseq.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_avio_header_single_layout.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_battery_cap_spans_sessions.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_camera_closed_session.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_camera_power.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_close_mid_ice_leaves_nothing_pending.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_controls_ride_the_direct_session.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_credentials.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_crypto.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_discover.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_open_abort_covers_every_exit.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_open_pacer.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_refusal_after_the_echo.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_serve_backoff.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_event_notice_watch.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_every_exception_is_exported.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ffmpeg_rx_sdp_single_template.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_firmware_info.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_first_media_abandon_rules.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_g711_law_conversion.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_health_line.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_health_line_counts_pictures.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_hot_path_rewrites_match_reference.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ice_credentials_match_the_app.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ipc_envelope_single_builder.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_control_framing.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_retry_short_sessions.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_retry_stops_on_close.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_learned_prflx_is_nominated_at_once.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_live_validate_token_refresh.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_loop_break_ends_the_loop.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mqtt_config2.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_mypy_new_findings.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_no_private_notes_on_the_public_surface.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_nominates_as_soon_as_the_answer_lands.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_open_errors_are_aidot_errors.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_phase_returns_reach_the_caller.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_phase_state_is_complete.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_plaintext_mqtt_refused.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_region_allowlist.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sctp_in_order.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_clock.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_controls.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_dtls.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_end.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_entry.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_media_hold.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_playback_open.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sd_thumbnails_and_delete.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_bridge_starts_without_the_answer.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_open_refuses_an_undecryptable_model.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_open_yields_the_loop.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_pinned_codec_retry.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_turn_preallocated_in_offer.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_loop_releases_on_error.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_session_mode_seq.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_set_dev_attr_payload.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_settings_registry.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_skip_guard.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sleep_camera.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_health.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_settings.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_stun_attr_single_builder.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_swallowed_exception_names.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_turn_target_shared.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_unbind_notice.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/tests/test_webrtc_answer_race.py +0 -0
{python_aidot_cameras-1.4.1/python_aidot_cameras.egg-info → python_aidot_cameras-1.5.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
|
|
5
5
|
Author-email: cbrightly <chris.brightly@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -474,16 +474,46 @@ when one is left permissive. `AIDOT_ALLOW_PLAINTEXT_MQTT` and
|
|
|
474
474
|
| `AIDOT_EXTRA_REGIONS` | Comma-separated account regions to accept beyond `us`, `eu` and `jp`; an unknown region is refused with `AidotUnknownRegion`. Each entry must be a hostname label. | unset |
|
|
475
475
|
| `AIDOT_ALLOW_LAN_SERVE` | Silence the warning when decrypted media is served on a non-loopback bind (e.g. `0.0.0.0`), where any LAN host can read it. | unset (warn) |
|
|
476
476
|
| `AIDOT_CRED_KEY_FILE` | Fernet key file for stored credentials; point it outside the config dir. Default credentials path only (ignored with an explicit `creds_path`). | `$XDG_CONFIG_HOME/aidot/.key` (else `~/.config/aidot/.key`) |
|
|
477
|
-
| `AIDOT_DTLS_PINNED_FP` | Pin DTLS
|
|
477
|
+
| `AIDOT_DTLS_PINNED_FP` | Pin every DTLS camera's certificate to this one `sha-256` fingerprint (case and `:` ignored). Set, any other certificate, or none, fails the handshake. Wins over the per-camera pins below. | unset (per-camera pins) |
|
|
478
|
+
| `AIDOT_DTLS_PIN_LEARN` | Learn each DTLS camera's certificate and pin it (see below). `0` turns learning off: certificates are then accepted unverified, with a warning, unless `AIDOT_DTLS_PINNED_FP` is set. | `1` (on) |
|
|
478
479
|
| `AIDOT_SDES_HOLEPUNCH_HOST` | NAT hole-punch target when the cloud supplies no TURN entry. Unset uses a hardcoded vendor TURN host; empty disables that fallback. | unset (vendor host + warn) |
|
|
479
480
|
|
|
480
|
-
**
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
481
|
+
**A DTLS camera's (A000088's) certificate cannot be checked against signaling.**
|
|
482
|
+
The camera echoes our own fingerprint back, or sends an empty one, and any
|
|
483
|
+
fingerprint it does send arrives over the same cloud signaling. So the library
|
|
484
|
+
pins each camera's certificate on first use instead:
|
|
485
|
+
|
|
486
|
+
- The first certificate a camera presents is recorded. Once the same
|
|
487
|
+
certificate has been presented on 3 handshakes in a row, it is pinned, and
|
|
488
|
+
from then on any other certificate, or none, fails the handshake: the open
|
|
489
|
+
raises `AidotDtlsPinMismatch` and `stream_health.last_end_reason` reads
|
|
490
|
+
`dtls_pin_mismatch`. The log names the camera and the first 8 hex digits of
|
|
491
|
+
each fingerprint.
|
|
492
|
+
- A certificate that changes before it is pinned replaces the recorded one and
|
|
493
|
+
learning starts again, so a camera that makes a new certificate for every
|
|
494
|
+
session is never locked out; it streams unverified, as before, with one
|
|
495
|
+
warning.
|
|
496
|
+
- After a camera is reset or replaced, call
|
|
497
|
+
`CameraDeviceClient.forget_dtls_pin()` and its next open learns the new
|
|
498
|
+
certificate. `CameraDeviceClient.dtls_pin` shows the current record.
|
|
499
|
+
- Pins live in the client's `dtls_pin_store`. By default that is in memory and
|
|
500
|
+
lasts as long as the `CameraClient`; pass
|
|
501
|
+
`CameraClient(..., dtls_pin_store=...)` to keep them across restarts (see
|
|
502
|
+
below).
|
|
503
|
+
|
|
504
|
+
Until a camera's pin is learned, and on a camera whose certificate keeps
|
|
505
|
+
changing, its media is encrypted but not authenticated against something
|
|
506
|
+
standing in for the camera. `AIDOT_DTLS_PINNED_FP` checks every DTLS camera
|
|
507
|
+
against one fingerprint from the first open, so it suits a one-camera process
|
|
508
|
+
(the CLI) or cameras that share a certificate. SDES cameras key their media
|
|
509
|
+
through signaling and have no certificate to check.
|
|
510
|
+
|
|
511
|
+
A pin store is any object with three synchronous methods, called from inside
|
|
512
|
+
the handshake: `get(device_id)` returns the record last stored for that
|
|
513
|
+
camera or `None`, `set(device_id, record)` stores one, and `delete(device_id)`
|
|
514
|
+
drops it. A record is a small JSON-safe dict; store it as it comes. A host
|
|
515
|
+
with asynchronous storage keeps the records in memory and schedules its own
|
|
516
|
+
save from `set` and `delete`. `MemoryDtlsPinStore(records)` is the default
|
|
517
|
+
and can be seeded with records saved earlier; its `as_dict()` returns them
|
|
518
|
+
all. A store that fails to read or write is logged and treated as empty, so a
|
|
519
|
+
storage error never stops a stream.
|
|
@@ -424,16 +424,46 @@ when one is left permissive. `AIDOT_ALLOW_PLAINTEXT_MQTT` and
|
|
|
424
424
|
| `AIDOT_EXTRA_REGIONS` | Comma-separated account regions to accept beyond `us`, `eu` and `jp`; an unknown region is refused with `AidotUnknownRegion`. Each entry must be a hostname label. | unset |
|
|
425
425
|
| `AIDOT_ALLOW_LAN_SERVE` | Silence the warning when decrypted media is served on a non-loopback bind (e.g. `0.0.0.0`), where any LAN host can read it. | unset (warn) |
|
|
426
426
|
| `AIDOT_CRED_KEY_FILE` | Fernet key file for stored credentials; point it outside the config dir. Default credentials path only (ignored with an explicit `creds_path`). | `$XDG_CONFIG_HOME/aidot/.key` (else `~/.config/aidot/.key`) |
|
|
427
|
-
| `AIDOT_DTLS_PINNED_FP` | Pin DTLS
|
|
427
|
+
| `AIDOT_DTLS_PINNED_FP` | Pin every DTLS camera's certificate to this one `sha-256` fingerprint (case and `:` ignored). Set, any other certificate, or none, fails the handshake. Wins over the per-camera pins below. | unset (per-camera pins) |
|
|
428
|
+
| `AIDOT_DTLS_PIN_LEARN` | Learn each DTLS camera's certificate and pin it (see below). `0` turns learning off: certificates are then accepted unverified, with a warning, unless `AIDOT_DTLS_PINNED_FP` is set. | `1` (on) |
|
|
428
429
|
| `AIDOT_SDES_HOLEPUNCH_HOST` | NAT hole-punch target when the cloud supplies no TURN entry. Unset uses a hardcoded vendor TURN host; empty disables that fallback. | unset (vendor host + warn) |
|
|
429
430
|
|
|
430
|
-
**
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
431
|
+
**A DTLS camera's (A000088's) certificate cannot be checked against signaling.**
|
|
432
|
+
The camera echoes our own fingerprint back, or sends an empty one, and any
|
|
433
|
+
fingerprint it does send arrives over the same cloud signaling. So the library
|
|
434
|
+
pins each camera's certificate on first use instead:
|
|
435
|
+
|
|
436
|
+
- The first certificate a camera presents is recorded. Once the same
|
|
437
|
+
certificate has been presented on 3 handshakes in a row, it is pinned, and
|
|
438
|
+
from then on any other certificate, or none, fails the handshake: the open
|
|
439
|
+
raises `AidotDtlsPinMismatch` and `stream_health.last_end_reason` reads
|
|
440
|
+
`dtls_pin_mismatch`. The log names the camera and the first 8 hex digits of
|
|
441
|
+
each fingerprint.
|
|
442
|
+
- A certificate that changes before it is pinned replaces the recorded one and
|
|
443
|
+
learning starts again, so a camera that makes a new certificate for every
|
|
444
|
+
session is never locked out; it streams unverified, as before, with one
|
|
445
|
+
warning.
|
|
446
|
+
- After a camera is reset or replaced, call
|
|
447
|
+
`CameraDeviceClient.forget_dtls_pin()` and its next open learns the new
|
|
448
|
+
certificate. `CameraDeviceClient.dtls_pin` shows the current record.
|
|
449
|
+
- Pins live in the client's `dtls_pin_store`. By default that is in memory and
|
|
450
|
+
lasts as long as the `CameraClient`; pass
|
|
451
|
+
`CameraClient(..., dtls_pin_store=...)` to keep them across restarts (see
|
|
452
|
+
below).
|
|
453
|
+
|
|
454
|
+
Until a camera's pin is learned, and on a camera whose certificate keeps
|
|
455
|
+
changing, its media is encrypted but not authenticated against something
|
|
456
|
+
standing in for the camera. `AIDOT_DTLS_PINNED_FP` checks every DTLS camera
|
|
457
|
+
against one fingerprint from the first open, so it suits a one-camera process
|
|
458
|
+
(the CLI) or cameras that share a certificate. SDES cameras key their media
|
|
459
|
+
through signaling and have no certificate to check.
|
|
460
|
+
|
|
461
|
+
A pin store is any object with three synchronous methods, called from inside
|
|
462
|
+
the handshake: `get(device_id)` returns the record last stored for that
|
|
463
|
+
camera or `None`, `set(device_id, record)` stores one, and `delete(device_id)`
|
|
464
|
+
drops it. A record is a small JSON-safe dict; store it as it comes. A host
|
|
465
|
+
with asynchronous storage keeps the records in memory and schedules its own
|
|
466
|
+
save from `set` and `delete`. `MemoryDtlsPinStore(records)` is the default
|
|
467
|
+
and can be seeded with records saved earlier; its `as_dict()` returns them
|
|
468
|
+
all. A store that fails to read or write is logged and treated as empty, so a
|
|
469
|
+
storage error never stops a stream.
|
|
@@ -20,6 +20,7 @@ from .settings import StreamSettings
|
|
|
20
20
|
# not drag in av or aiortc, so a plain (non-[webrtc]) install still imports.
|
|
21
21
|
from .camera.models import CameraDeviceInformation, CameraStatusData
|
|
22
22
|
from .camera.sdes import SdesSession
|
|
23
|
+
from .camera.dtls_pins import DtlsPinStore, MemoryDtlsPinStore
|
|
23
24
|
from .camera.stream_health import StreamHealth
|
|
24
25
|
from .camera.webrtc import WebRTCSession
|
|
25
26
|
from .discover import CameraDiscover, Discover
|
|
@@ -30,6 +31,7 @@ from .exceptions import (
|
|
|
30
31
|
AidotCameraNoMedia,
|
|
31
32
|
AidotCameraNotReady,
|
|
32
33
|
AidotCameraWrongCodec,
|
|
34
|
+
AidotDtlsPinMismatch,
|
|
33
35
|
AidotError,
|
|
34
36
|
AidotFfmpegMissing,
|
|
35
37
|
AidotIceNotEstablished,
|
|
@@ -172,6 +174,7 @@ __all__ = [
|
|
|
172
174
|
"AidotCameraNotReady",
|
|
173
175
|
"AidotCameraWrongCodec",
|
|
174
176
|
"AidotClient",
|
|
177
|
+
"AidotDtlsPinMismatch",
|
|
175
178
|
"AidotError",
|
|
176
179
|
"AidotFfmpegMissing",
|
|
177
180
|
"AidotIceNotEstablished",
|
|
@@ -196,9 +199,11 @@ __all__ = [
|
|
|
196
199
|
"DeviceInformation",
|
|
197
200
|
"DeviceStatusData",
|
|
198
201
|
"Discover",
|
|
202
|
+
"DtlsPinStore",
|
|
199
203
|
"HTTPError",
|
|
200
204
|
"InvalidHost",
|
|
201
205
|
"InvalidURL",
|
|
206
|
+
"MemoryDtlsPinStore",
|
|
202
207
|
"RtspPublishError",
|
|
203
208
|
"SdesSession",
|
|
204
209
|
"StreamHealth",
|
|
@@ -19,6 +19,7 @@ from ..exceptions import (
|
|
|
19
19
|
AidotCameraNoMedia,
|
|
20
20
|
AidotCameraNotReady,
|
|
21
21
|
AidotCameraWrongCodec,
|
|
22
|
+
AidotDtlsPinMismatch,
|
|
22
23
|
AidotIceNotEstablished,
|
|
23
24
|
)
|
|
24
25
|
from ..const import APP_ID as _AIDOT_APP_ID
|
|
@@ -1631,6 +1632,8 @@ def _open_failure_reason(exc: BaseException) -> str:
|
|
|
1631
1632
|
return _sh.END_WRONG_CODEC
|
|
1632
1633
|
if isinstance(exc, AidotCameraNoMedia):
|
|
1633
1634
|
return _sh.END_NO_MEDIA
|
|
1635
|
+
if isinstance(exc, AidotDtlsPinMismatch):
|
|
1636
|
+
return _sh.END_DTLS_PIN_MISMATCH
|
|
1634
1637
|
return _sh.END_OPEN_FAILED
|
|
1635
1638
|
|
|
1636
1639
|
|
|
@@ -2318,6 +2321,10 @@ async def _dtls_serve_loop_session_end(
|
|
|
2318
2321
|
return None
|
|
2319
2322
|
_n = ps._session_pacer.attempt
|
|
2320
2323
|
_end_reason = _dtls_end_reason(str(ps._session_end_reason), _camera_close)
|
|
2324
|
+
if getattr(self, "_dtls_pin_refused", False):
|
|
2325
|
+
# The handshake was refused on the pin after the open returned, so
|
|
2326
|
+
# the connection failed rather than the open: say why.
|
|
2327
|
+
_end_reason = _sh.END_DTLS_PIN_MISMATCH
|
|
2321
2328
|
if _wait is None:
|
|
2322
2329
|
_sh._tracker_of(self).ending(_end_reason)
|
|
2323
2330
|
_LOGGER.warning(
|
|
@@ -2936,6 +2943,14 @@ class CameraMixin(
|
|
|
2936
2943
|
#: and defaults only). Read through ``settings.stream_settings_of``.
|
|
2937
2944
|
stream_settings = None
|
|
2938
2945
|
|
|
2946
|
+
#: The account client's ``DtlsPinStore`` (``camera/dtls_pins.py``), or
|
|
2947
|
+
#: None: then this camera's DTLS certificate is not learned or pinned.
|
|
2948
|
+
dtls_pin_store = None
|
|
2949
|
+
|
|
2950
|
+
#: Set when a DTLS handshake on the latest open was refused on a pin;
|
|
2951
|
+
#: cleared at the start of each open. Read to name the failure.
|
|
2952
|
+
_dtls_pin_refused = False
|
|
2953
|
+
|
|
2939
2954
|
# MQTT credential state, defaulted at class level so the credential path is
|
|
2940
2955
|
# safe on any client whose __init__ did not run to completion.
|
|
2941
2956
|
_mqtt_credential_refresh_cb = None
|
|
@@ -3327,6 +3342,35 @@ class CameraMixin(
|
|
|
3327
3342
|
and the reboot guard ask this same question."""
|
|
3328
3343
|
return _cloud_reports_offline(self)
|
|
3329
3344
|
|
|
3345
|
+
@property
|
|
3346
|
+
def dtls_pin(self) -> "Optional[dict]":
|
|
3347
|
+
"""This camera's learned DTLS pin record, or None.
|
|
3348
|
+
|
|
3349
|
+
A copy of what the pin store holds: ``fingerprint`` (lowercase hex),
|
|
3350
|
+
``seen`` (handshakes in a row that presented it), ``enforced`` (True
|
|
3351
|
+
once a different certificate fails the handshake) and ``changes``
|
|
3352
|
+
(how often the certificate changed before it was pinned). Reading it
|
|
3353
|
+
sends nothing. ``AIDOT_DTLS_PINNED_FP``, when set, wins over it.
|
|
3354
|
+
"""
|
|
3355
|
+
store = self.dtls_pin_store
|
|
3356
|
+
if store is None:
|
|
3357
|
+
return None
|
|
3358
|
+
record = store.get(str(self.device_id))
|
|
3359
|
+
return dict(record) if isinstance(record, dict) else None
|
|
3360
|
+
|
|
3361
|
+
def forget_dtls_pin(self) -> None:
|
|
3362
|
+
"""Drop this camera's learned DTLS pin.
|
|
3363
|
+
|
|
3364
|
+
For a camera that was reset or replaced and now presents a new
|
|
3365
|
+
certificate: its next open records the new one and pins it again
|
|
3366
|
+
after a few handshakes. Does nothing without a pin store, and does
|
|
3367
|
+
not touch ``AIDOT_DTLS_PINNED_FP``.
|
|
3368
|
+
"""
|
|
3369
|
+
store = self.dtls_pin_store
|
|
3370
|
+
if store is not None:
|
|
3371
|
+
store.delete(str(self.device_id))
|
|
3372
|
+
self._dtls_pin_refused = False
|
|
3373
|
+
|
|
3330
3374
|
@property
|
|
3331
3375
|
def stream_health(self) -> _sh.StreamHealth:
|
|
3332
3376
|
"""What this camera's background stream is doing right now.
|
|
@@ -7890,6 +7934,7 @@ class CameraMixin(
|
|
|
7890
7934
|
# connection, the track tasks and the recorder's file.
|
|
7891
7935
|
abort_holder: list = []
|
|
7892
7936
|
async with _get_webrtc_open_gate():
|
|
7937
|
+
self._dtls_pin_refused = False
|
|
7893
7938
|
try:
|
|
7894
7939
|
session = await self._async_open_webrtc_stream_impl(
|
|
7895
7940
|
on_frame,
|
|
@@ -7908,7 +7953,7 @@ class CameraMixin(
|
|
|
7908
7953
|
)
|
|
7909
7954
|
self._note_direct_session(session)
|
|
7910
7955
|
return session
|
|
7911
|
-
except BaseException:
|
|
7956
|
+
except BaseException as _open_exc:
|
|
7912
7957
|
if abort_holder:
|
|
7913
7958
|
try:
|
|
7914
7959
|
await abort_holder[-1]()
|
|
@@ -7919,4 +7964,13 @@ class CameraMixin(
|
|
|
7919
7964
|
"async_open_webrtc_stream",
|
|
7920
7965
|
exc_info=True,
|
|
7921
7966
|
)
|
|
7967
|
+
if self._dtls_pin_refused and not isinstance(
|
|
7968
|
+
_open_exc, (AidotDtlsPinMismatch, asyncio.CancelledError)
|
|
7969
|
+
):
|
|
7970
|
+
# The handshake failed on the pin; whatever the open saw
|
|
7971
|
+
# next (ICE or connection failure, a timeout) is a symptom.
|
|
7972
|
+
raise AidotDtlsPinMismatch(
|
|
7973
|
+
"camera %s: its DTLS certificate does not match the pinned one"
|
|
7974
|
+
% self.device_id
|
|
7975
|
+
) from _open_exc
|
|
7922
7976
|
raise
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"""Per-camera DTLS certificate pinning, learned on first use.
|
|
2
|
+
|
|
3
|
+
A DTLS camera (A000088) puts nothing of its own in signaling to verify its
|
|
4
|
+
certificate against: on role reversal it echoes our own fingerprint, and its
|
|
5
|
+
answer carries empty fingerprint lines (an answer that echoes our own
|
|
6
|
+
fingerprint instead is handled the same way). ``AIDOT_DTLS_PINNED_FP`` pins
|
|
7
|
+
one fingerprint for the whole process, which suits the CLI and one camera but
|
|
8
|
+
not a home with several.
|
|
9
|
+
|
|
10
|
+
This module keeps one pin per camera instead. The first certificate a camera
|
|
11
|
+
presents is recorded; once the same certificate has been presented on
|
|
12
|
+
``LEARN_HANDSHAKES`` handshakes in a row the pin is ENFORCED, and from then on
|
|
13
|
+
any other certificate fails the handshake. A camera whose certificate changes
|
|
14
|
+
before that point is still learning: the new certificate replaces the old one
|
|
15
|
+
and the count starts again. So a camera that makes a new certificate for every
|
|
16
|
+
session never reaches enforcement and streams exactly as it did before, with a
|
|
17
|
+
warning that its certificate cannot be pinned; it is never locked out.
|
|
18
|
+
|
|
19
|
+
Where the pins live is the caller's choice: anything with the ``DtlsPinStore``
|
|
20
|
+
methods, passed as ``CameraClient(..., dtls_pin_store=...)``. A record is a
|
|
21
|
+
plain JSON-safe dict, so a host such as Home Assistant can keep it in its own
|
|
22
|
+
storage. Without one, each ``CameraClient`` keeps its pins in memory for the
|
|
23
|
+
life of the process.
|
|
24
|
+
|
|
25
|
+
After a camera is reset (and so may come back with a new certificate), call
|
|
26
|
+
``CameraDeviceClient.forget_dtls_pin()``: the next handshake starts learning
|
|
27
|
+
again.
|
|
28
|
+
|
|
29
|
+
``AIDOT_DTLS_PINNED_FP`` still works and wins over the store when set.
|
|
30
|
+
``AIDOT_DTLS_PIN_LEARN=0`` turns learning off (the previous behaviour: accept
|
|
31
|
+
the certificate with a warning).
|
|
32
|
+
|
|
33
|
+
Only certificate fingerprints are handled here. They are digests of a public
|
|
34
|
+
certificate, not key material; even so, logs show only their first 8 hex
|
|
35
|
+
digits, enough to tell two certificates apart.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
from __future__ import annotations
|
|
39
|
+
|
|
40
|
+
import logging
|
|
41
|
+
import threading
|
|
42
|
+
from typing import Any, Optional, Protocol, runtime_checkable
|
|
43
|
+
|
|
44
|
+
_LOGGER = logging.getLogger(__name__)
|
|
45
|
+
|
|
46
|
+
#: Handshakes in a row that must present the same certificate before the pin
|
|
47
|
+
#: is enforced. A camera that changes certificate between sessions never gets
|
|
48
|
+
#: there, so learning cannot lock it out.
|
|
49
|
+
LEARN_HANDSHAKES = 3
|
|
50
|
+
|
|
51
|
+
#: Record keys. Every value is a str, int or bool, so a record round-trips
|
|
52
|
+
#: through JSON unchanged.
|
|
53
|
+
FINGERPRINT = "fingerprint"
|
|
54
|
+
SEEN = "seen"
|
|
55
|
+
ENFORCED = "enforced"
|
|
56
|
+
CHANGES = "changes"
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def normalize_fingerprint(value: str) -> str:
|
|
60
|
+
"""Lowercase hex with no separators, for comparison and storage.
|
|
61
|
+
|
|
62
|
+
Accepts the colon-separated uppercase hex aiortc emits as well as an
|
|
63
|
+
operator-typed value that differs in case, colons or whitespace.
|
|
64
|
+
"""
|
|
65
|
+
return value.replace(":", "").replace(" ", "").strip().lower()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def short_fingerprint(value: Optional[str]) -> str:
|
|
69
|
+
"""The first 8 hex digits, for log lines."""
|
|
70
|
+
if not value:
|
|
71
|
+
return "<none>"
|
|
72
|
+
return normalize_fingerprint(value)[:8]
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@runtime_checkable
|
|
76
|
+
class DtlsPinStore(Protocol):
|
|
77
|
+
"""Where per-camera pins are kept.
|
|
78
|
+
|
|
79
|
+
Called from inside the DTLS handshake, so every method is synchronous and
|
|
80
|
+
should return quickly: a host with asynchronous storage keeps the records
|
|
81
|
+
in memory and schedules its own save from ``set`` and ``delete``.
|
|
82
|
+
|
|
83
|
+
``get`` returns the record ``set`` last stored for ``device_id`` (a dict
|
|
84
|
+
with the keys ``fingerprint``, ``seen``, ``enforced`` and ``changes``), or
|
|
85
|
+
None. Records are plain JSON-safe dicts; treat them as opaque.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
def get(self, device_id: str) -> Optional[dict]: ...
|
|
89
|
+
|
|
90
|
+
def set(self, device_id: str, record: dict) -> None: ...
|
|
91
|
+
|
|
92
|
+
def delete(self, device_id: str) -> None: ...
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class MemoryDtlsPinStore:
|
|
96
|
+
"""The default store: a dict, kept for the life of the process."""
|
|
97
|
+
|
|
98
|
+
def __init__(self, records: Optional[dict] = None) -> None:
|
|
99
|
+
self._records: dict = {}
|
|
100
|
+
self._lock = threading.Lock()
|
|
101
|
+
for device_id, record in (records or {}).items():
|
|
102
|
+
self.set(device_id, record)
|
|
103
|
+
|
|
104
|
+
def get(self, device_id: str) -> Optional[dict]:
|
|
105
|
+
with self._lock:
|
|
106
|
+
record = self._records.get(str(device_id))
|
|
107
|
+
return dict(record) if isinstance(record, dict) else None
|
|
108
|
+
|
|
109
|
+
def set(self, device_id: str, record: dict) -> None:
|
|
110
|
+
with self._lock:
|
|
111
|
+
self._records[str(device_id)] = dict(record)
|
|
112
|
+
|
|
113
|
+
def delete(self, device_id: str) -> None:
|
|
114
|
+
with self._lock:
|
|
115
|
+
self._records.pop(str(device_id), None)
|
|
116
|
+
|
|
117
|
+
def as_dict(self) -> dict:
|
|
118
|
+
"""Every record, by device id (a copy), for a host to save."""
|
|
119
|
+
with self._lock:
|
|
120
|
+
return {k: dict(v) for k, v in self._records.items()}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class DtlsPinMismatch(ValueError):
|
|
124
|
+
"""An enforced pin did not match the certificate the camera presented.
|
|
125
|
+
|
|
126
|
+
A ``ValueError`` so the handshake fails exactly as an env-pin mismatch
|
|
127
|
+
does. Carries only short fingerprints.
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def _valid_record(record: Any) -> Optional[dict]:
|
|
132
|
+
"""``record`` as a clean dict, or None when it is missing or malformed.
|
|
133
|
+
|
|
134
|
+
A malformed record (a host's storage edited by hand, an older format) is
|
|
135
|
+
treated as no record: learning starts again rather than the open failing
|
|
136
|
+
on a stored value nobody can see.
|
|
137
|
+
"""
|
|
138
|
+
if not isinstance(record, dict):
|
|
139
|
+
return None
|
|
140
|
+
fp = record.get(FINGERPRINT)
|
|
141
|
+
if not isinstance(fp, str) or not normalize_fingerprint(fp):
|
|
142
|
+
return None
|
|
143
|
+
seen = record.get(SEEN, 0)
|
|
144
|
+
changes = record.get(CHANGES, 0)
|
|
145
|
+
return {
|
|
146
|
+
FINGERPRINT: normalize_fingerprint(fp),
|
|
147
|
+
SEEN: seen if isinstance(seen, int) and seen > 0 else 1,
|
|
148
|
+
ENFORCED: record.get(ENFORCED) is True,
|
|
149
|
+
CHANGES: changes if isinstance(changes, int) and changes > 0 else 0,
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def _save(store: DtlsPinStore, device_id: str, record: dict) -> None:
|
|
154
|
+
try:
|
|
155
|
+
store.set(device_id, record)
|
|
156
|
+
except Exception:
|
|
157
|
+
_LOGGER.debug(
|
|
158
|
+
"camera %s: DTLS pin store write failed", device_id, exc_info=True
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def check_learned_pin(
|
|
163
|
+
store: DtlsPinStore, device_id: str, presented_fp: Optional[str]
|
|
164
|
+
) -> None:
|
|
165
|
+
"""Check ``presented_fp`` against ``device_id``'s pin and update the record.
|
|
166
|
+
|
|
167
|
+
Returns when the handshake may go on; raises :class:`DtlsPinMismatch`
|
|
168
|
+
(a ``ValueError``) when it must fail. The rules:
|
|
169
|
+
|
|
170
|
+
* no record: record this certificate, seen once; accept.
|
|
171
|
+
* same certificate: count it, and enforce the pin at ``LEARN_HANDSHAKES``.
|
|
172
|
+
* different certificate, pin enforced: refuse, and leave the record as it
|
|
173
|
+
is, so whoever is presenting the new certificate cannot replace the pin.
|
|
174
|
+
* different certificate, still learning: replace the record and start
|
|
175
|
+
counting again; accept.
|
|
176
|
+
* no certificate: refuse when enforced, else accept and record nothing.
|
|
177
|
+
|
|
178
|
+
A store that fails to read or write is logged at DEBUG and treated as
|
|
179
|
+
holding nothing: the handshake goes on unpinned, as before pinning
|
|
180
|
+
existed, rather than failing on a host's storage error.
|
|
181
|
+
|
|
182
|
+
Call it once per handshake.
|
|
183
|
+
"""
|
|
184
|
+
device_id = str(device_id)
|
|
185
|
+
try:
|
|
186
|
+
record = _valid_record(store.get(device_id))
|
|
187
|
+
except Exception:
|
|
188
|
+
_LOGGER.debug("camera %s: DTLS pin store read failed", device_id, exc_info=True)
|
|
189
|
+
return
|
|
190
|
+
|
|
191
|
+
if presented_fp is None:
|
|
192
|
+
if record is not None and record[ENFORCED]:
|
|
193
|
+
_LOGGER.warning(
|
|
194
|
+
"camera %s: refusing the stream: the camera presented no DTLS "
|
|
195
|
+
"certificate, but its certificate is pinned (%s...)",
|
|
196
|
+
device_id,
|
|
197
|
+
short_fingerprint(record[FINGERPRINT]),
|
|
198
|
+
)
|
|
199
|
+
raise DtlsPinMismatch(
|
|
200
|
+
"DTLS peer presented no certificate; cannot verify against "
|
|
201
|
+
"the camera's pin"
|
|
202
|
+
)
|
|
203
|
+
return
|
|
204
|
+
|
|
205
|
+
fp = normalize_fingerprint(presented_fp)
|
|
206
|
+
|
|
207
|
+
if record is None:
|
|
208
|
+
_save(store, device_id, {FINGERPRINT: fp, SEEN: 1, ENFORCED: False, CHANGES: 0})
|
|
209
|
+
_LOGGER.info(
|
|
210
|
+
"camera %s: recorded its DTLS certificate (%s...); it is pinned "
|
|
211
|
+
"after %d handshakes in a row present the same one",
|
|
212
|
+
device_id,
|
|
213
|
+
short_fingerprint(fp),
|
|
214
|
+
LEARN_HANDSHAKES,
|
|
215
|
+
)
|
|
216
|
+
return
|
|
217
|
+
|
|
218
|
+
if fp == record[FINGERPRINT]:
|
|
219
|
+
if record[ENFORCED]:
|
|
220
|
+
return
|
|
221
|
+
record[SEEN] += 1
|
|
222
|
+
if record[SEEN] >= LEARN_HANDSHAKES:
|
|
223
|
+
record[ENFORCED] = True
|
|
224
|
+
_LOGGER.info(
|
|
225
|
+
"camera %s: DTLS certificate pinned (%s...); a different "
|
|
226
|
+
"certificate now fails the handshake",
|
|
227
|
+
device_id,
|
|
228
|
+
short_fingerprint(fp),
|
|
229
|
+
)
|
|
230
|
+
_save(store, device_id, record)
|
|
231
|
+
return
|
|
232
|
+
|
|
233
|
+
if record[ENFORCED]:
|
|
234
|
+
_LOGGER.warning(
|
|
235
|
+
"camera %s: refusing the stream: its DTLS certificate (%s...) does "
|
|
236
|
+
"not match the pinned one (%s...). Someone on the network path may "
|
|
237
|
+
"be intercepting the stream. If the camera was reset or replaced, "
|
|
238
|
+
"clear its pin (forget_dtls_pin) and it is learned again on the "
|
|
239
|
+
"next connect.",
|
|
240
|
+
device_id,
|
|
241
|
+
short_fingerprint(fp),
|
|
242
|
+
short_fingerprint(record[FINGERPRINT]),
|
|
243
|
+
)
|
|
244
|
+
raise DtlsPinMismatch(
|
|
245
|
+
"DTLS fingerprint mismatch: camera presented "
|
|
246
|
+
f"{short_fingerprint(fp)}..., pinned {short_fingerprint(record[FINGERPRINT])}..."
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
changes = record[CHANGES] + 1
|
|
250
|
+
_save(
|
|
251
|
+
store, device_id, {FINGERPRINT: fp, SEEN: 1, ENFORCED: False, CHANGES: changes}
|
|
252
|
+
)
|
|
253
|
+
if changes == 1:
|
|
254
|
+
_LOGGER.info(
|
|
255
|
+
"camera %s: DTLS certificate changed before it was pinned "
|
|
256
|
+
"(%s... -> %s...); learning again",
|
|
257
|
+
device_id,
|
|
258
|
+
short_fingerprint(record[FINGERPRINT]),
|
|
259
|
+
short_fingerprint(fp),
|
|
260
|
+
)
|
|
261
|
+
elif changes == 2:
|
|
262
|
+
# Said once per record, not once per open: after the second change
|
|
263
|
+
# this camera very likely makes a new certificate every session.
|
|
264
|
+
_LOGGER.warning(
|
|
265
|
+
"camera %s: DTLS certificate keeps changing between sessions, so "
|
|
266
|
+
"it cannot be pinned and stays unverified. Streams keep working; "
|
|
267
|
+
"AIDOT_DTLS_PINNED_FP does not help a camera like this either.",
|
|
268
|
+
device_id,
|
|
269
|
+
)
|
{python_aidot_cameras-1.4.1 → python_aidot_cameras-1.5.0}/aidot_cameras/camera/stream_health.py
RENAMED
|
@@ -99,6 +99,9 @@ END_WRONG_CODEC = "wrong_codec"
|
|
|
99
99
|
END_BUSY = "busy"
|
|
100
100
|
#: The camera answered that it is not ready yet (waking, encoder cold).
|
|
101
101
|
END_NOT_READY = "not_ready"
|
|
102
|
+
#: The camera's DTLS certificate did not match its pin; the handshake was
|
|
103
|
+
#: refused (see ``CameraDeviceClient.forget_dtls_pin``).
|
|
104
|
+
END_DTLS_PIN_MISMATCH = "dtls_pin_mismatch"
|
|
102
105
|
#: The open failed for any other reason (no answer, ICE never established).
|
|
103
106
|
END_OPEN_FAILED = "open_failed"
|
|
104
107
|
#: The serve loop itself ended on an unexpected error; the camera was released.
|
|
@@ -119,6 +122,7 @@ STREAM_END_REASONS: "tuple[str, ...]" = (
|
|
|
119
122
|
END_WRONG_CODEC,
|
|
120
123
|
END_BUSY,
|
|
121
124
|
END_NOT_READY,
|
|
125
|
+
END_DTLS_PIN_MISMATCH,
|
|
122
126
|
END_OPEN_FAILED,
|
|
123
127
|
END_ERROR,
|
|
124
128
|
)
|