python-aidot-cameras 1.0.0rc57__tar.gz → 1.0.0rc58__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.0rc57/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0rc58}/PKG-INFO +12 -6
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/README.md +11 -5
- python_aidot_cameras-1.0.0rc58/aidot_cameras/_upstream.py +421 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/aac_track.py +3 -2
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/client.py +2050 -1211
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/constants.py +8 -8
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/health.py +27 -33
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/hls_ts.py +4 -10
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/hwaccel.py +7 -5
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/protocol.py +39 -45
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/recording.py +1 -1
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/rtsp_publish.py +4 -5
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/sdes.py +7 -7
- python_aidot_cameras-1.0.0rc58/aidot_cameras/camera/sdes_open.py +10064 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/webrtc.py +6 -6
- python_aidot_cameras-1.0.0rc58/aidot_cameras/camera/webrtc_open.py +5098 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/client.py +59 -106
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/const.py +4 -4
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/crypto.py +3 -3
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/device_client.py +37 -96
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/discover.py +24 -51
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/lan_retry.py +5 -4
- python_aidot_cameras-1.0.0rc58/aidot_cameras/settings.py +379 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/pyproject.toml +3 -3
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58/python_aidot_cameras.egg-info}/PKG-INFO +12 -6
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/python_aidot_cameras.egg-info/SOURCES.txt +9 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_abandoned_attempt_skips_the_doomed_serve.py +23 -11
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_avio_ctrl_uses_the_session_dseq.py +8 -1
- python_aidot_cameras-1.0.0rc58/tests/test_avio_header_single_layout.py +38 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_battery_cap_spans_sessions.py +2 -4
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_direct_ts_serve.py +2 -4
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dormant_camera_cleanup.py +63 -22
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_open_abort_covers_every_exit.py +5 -10
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_refusal_after_the_echo.py +5 -15
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_serve_ice_wait.py +2 -2
- python_aidot_cameras-1.0.0rc58/tests/test_ffmpeg_rx_sdp_single_template.py +178 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_first_media_abandon_rules.py +2 -1
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_health_line.py +34 -18
- python_aidot_cameras-1.0.0rc58/tests/test_health_line_counts_pictures.py +108 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ice_credentials_match_the_app.py +5 -13
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_idle_release_both_loops.py +2 -4
- python_aidot_cameras-1.0.0rc58/tests/test_ipc_envelope_single_builder.py +77 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_lan_retry_reaches_the_storming_devices.py +1 -3
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_live_session_carries_talk.py +3 -9
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_live_validate_token_refresh.py +1 -8
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_no_private_notes_on_the_public_surface.py +9 -1
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_nominates_as_soon_as_the_answer_lands.py +28 -13
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_peerid_reuse.py +3 -4
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_post_merge_hardening.py +8 -56
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_echo_wait_is_not_dead_time.py +17 -12
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_first_media_stall_report.py +5 -5
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_open_yields_the_loop.py +14 -10
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_pinned_codec_retry.py +7 -7
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_terminal_ack.py +7 -15
- python_aidot_cameras-1.0.0rc58/tests/test_settings_registry.py +407 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_shared_house_seam.py +4 -6
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_skip_guard.py +4 -4
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_srtp_rx_rekey.py +5 -2
- python_aidot_cameras-1.0.0rc58/tests/test_stun_attr_single_builder.py +43 -0
- python_aidot_cameras-1.0.0rc58/tests/test_swallowed_exception_names.py +60 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_token_refresh.py +6 -15
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_turn_create_permission.py +50 -47
- python_aidot_cameras-1.0.0rc58/tests/test_turn_target_shared.py +97 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_upstream_compat.py +70 -141
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_wake_readiness_retry.py +10 -5
- python_aidot_cameras-1.0.0rc57/aidot_cameras/_upstream.py +0 -522
- python_aidot_cameras-1.0.0rc57/aidot_cameras/camera/sdes_open.py +0 -9308
- python_aidot_cameras-1.0.0rc57/aidot_cameras/camera/webrtc_open.py +0 -4388
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_log_redaction.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/agc.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/cloud_auth.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_aac_track.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_abandoned_wait_still_maps_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_answer_pt_kinds.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_arrival_timestamps.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_auth_error_routing.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_auto_alarm.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_auto_light_settings.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_battery_stale_offer_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_battery_wake_settles_before_the_command.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ble_gateway_is_gone.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_camera_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_cloud_error_log_names_the_exception.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_cloud_error_severity.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_declared_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_detection_types.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_direct_publish_attaches_negotiated_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_direct_ts_keyframe_signal.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_direct_ts_serve_only_for_http.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_recorder_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_tap_states_no_reorder.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_ts_copy_recording.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_h264_sps.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_hls_ts_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_hls_ts_wiring.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_lan_login_accessors.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_lan_retry_silences_upstream_over_ceiling.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_lan_retry_stops_on_close.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_lan_sweep_only_with_lights.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_liveplay_echo_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_log_hygiene.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_media_path_is_reported.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_nack_cannot_add_load_in_a_burst.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_no_unbounded_hex_dumps.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_off_subnet_candidate.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_peer_id_class_env.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_peer_id_client_type.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_publish_target_readiness.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_reboot_action.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_remb_goes_out_the_relay_aware_sender.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_removed_keepalive_arguments_are_tolerated.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_review_lan_retry_and_graces.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_rtp_h264.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_rtsp_publish.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_rtsp_publish_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sctp_reassembly.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sctp_sack.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_connection_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_ice_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_session_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_bound_survives_arrival_stamping.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_input_timeout.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_loop_releases_on_error.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_session_stop_twice.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_signalling_is_attributable_to_a_camera.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stable_terminal_id.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stall_nudge_policy.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_status_and_trace_channels.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_tmmbr.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_transport_failure_reporting.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ts_fanout.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_ts_tee.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_unbuildable_summary_repeats_at_debug.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_unreachable_nominee_is_abandoned_early.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_upstream_seam_adapter.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_upstream_secrets_redacted.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_validator_shares_one_token.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_vendored_aiortc_integrity.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_video_presence_needs_a_keyframe.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/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.0rc58
|
|
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
|
|
@@ -62,9 +62,10 @@ plus a test run - see [`docs/UPSTREAM.md`](https://github.com/cbrightly/python-a
|
|
|
62
62
|
> nothing here: no upstream file is edited or merged, and upstream arrives as an
|
|
63
63
|
> ordinary pip dependency. The number that describes an install is the
|
|
64
64
|
> *resolved* upstream version, which is a range rather than a pin -- upstream
|
|
65
|
-
>
|
|
66
|
-
>
|
|
67
|
-
>
|
|
65
|
+
> changes the private API this attaches to inside patch releases, and Home
|
|
66
|
+
> Assistant core pins an older one than a bare install resolves, so two people
|
|
67
|
+
> on the same release of this library can be running different upstream
|
|
68
|
+
> releases. To see yours:
|
|
68
69
|
>
|
|
69
70
|
> ```
|
|
70
71
|
> python -c "from importlib.metadata import version; print(version('python-aidot'))"
|
|
@@ -420,7 +421,7 @@ turns it off). A DTLS camera's looks like this, with the device id after
|
|
|
420
421
|
`camera`:
|
|
421
422
|
|
|
422
423
|
```
|
|
423
|
-
health 20s: packets=1686 (84.1/s) lost=0 (0.0%) stall=0.0s path=direct viewers=present
|
|
424
|
+
health 20s: packets=1686 (84.1/s) lost=0 (0.0%) stall=0.0s path=direct viewers=present frames=300 (15.0/s) resent=207 keyframes=7 max_keyframe_gap=44
|
|
424
425
|
```
|
|
425
426
|
|
|
426
427
|
Each figure is for that period alone, so a steady trickle of loss reads as a
|
|
@@ -441,6 +442,12 @@ rate rather than vanishing into a session total:
|
|
|
441
442
|
So a pasted log says which of "the link is lossy", "the picture froze" and
|
|
442
443
|
"nobody was watching" it was. A report that fails for any reason is dropped
|
|
443
444
|
and never ends the session.
|
|
445
|
+
- `frames` and the rate, `keyframes` and `max_keyframe_gap` (DTLS cameras
|
|
446
|
+
only): pictures a viewer is served in the period, keyframes among them,
|
|
447
|
+
and the longest run of pictures between keyframes since the session
|
|
448
|
+
started. `resent` is how many frames the camera sent again that period;
|
|
449
|
+
these cameras re-send about 40% of their frames and every consumer drops
|
|
450
|
+
the repeats, so `frames` is the served picture rate, not what arrived.
|
|
444
451
|
|
|
445
452
|
## Camera controls and state
|
|
446
453
|
|
|
@@ -683,4 +690,3 @@ the permissive default.
|
|
|
683
690
|
| --- | --- | --- |
|
|
684
691
|
| `AIDOT_ALLOW_LAN_SERVE` | Silences the warning emitted when decrypted media is served on a non-loopback bind (e.g. `0.0.0.0`), where any host on the LAN can read the unencrypted stream. Set when an exposed bind is intentional. | unset (warn on non-loopback) |
|
|
685
692
|
| `AIDOT_CRED_KEY_FILE` | Path to the Fernet key file for stored credentials. Point it outside the config dir (ideally a separate secret store) so the key isn't co-located with the ciphertext. Applies to the default credentials path only (ignored when an explicit `creds_path` is passed). | `$XDG_CONFIG_HOME/aidot/.key` (falls back to `~/.config/aidot/.key`) |
|
|
686
|
-
| `AIDOT_PLAYBACK_TLS_VERIFY` | Set to `1` to require full certificate and hostname verification on the TLS connection to a camera's playback server. The camera presents a self-signed certificate, so this needs a trust anchor it chains to; unset, verification is skipped and a one-time warning is logged. | unset (skip verification, warn once) |
|
|
@@ -22,9 +22,10 @@ plus a test run - see [`docs/UPSTREAM.md`](https://github.com/cbrightly/python-a
|
|
|
22
22
|
> nothing here: no upstream file is edited or merged, and upstream arrives as an
|
|
23
23
|
> ordinary pip dependency. The number that describes an install is the
|
|
24
24
|
> *resolved* upstream version, which is a range rather than a pin -- upstream
|
|
25
|
-
>
|
|
26
|
-
>
|
|
27
|
-
>
|
|
25
|
+
> changes the private API this attaches to inside patch releases, and Home
|
|
26
|
+
> Assistant core pins an older one than a bare install resolves, so two people
|
|
27
|
+
> on the same release of this library can be running different upstream
|
|
28
|
+
> releases. To see yours:
|
|
28
29
|
>
|
|
29
30
|
> ```
|
|
30
31
|
> python -c "from importlib.metadata import version; print(version('python-aidot'))"
|
|
@@ -380,7 +381,7 @@ turns it off). A DTLS camera's looks like this, with the device id after
|
|
|
380
381
|
`camera`:
|
|
381
382
|
|
|
382
383
|
```
|
|
383
|
-
health 20s: packets=1686 (84.1/s) lost=0 (0.0%) stall=0.0s path=direct viewers=present
|
|
384
|
+
health 20s: packets=1686 (84.1/s) lost=0 (0.0%) stall=0.0s path=direct viewers=present frames=300 (15.0/s) resent=207 keyframes=7 max_keyframe_gap=44
|
|
384
385
|
```
|
|
385
386
|
|
|
386
387
|
Each figure is for that period alone, so a steady trickle of loss reads as a
|
|
@@ -401,6 +402,12 @@ rate rather than vanishing into a session total:
|
|
|
401
402
|
So a pasted log says which of "the link is lossy", "the picture froze" and
|
|
402
403
|
"nobody was watching" it was. A report that fails for any reason is dropped
|
|
403
404
|
and never ends the session.
|
|
405
|
+
- `frames` and the rate, `keyframes` and `max_keyframe_gap` (DTLS cameras
|
|
406
|
+
only): pictures a viewer is served in the period, keyframes among them,
|
|
407
|
+
and the longest run of pictures between keyframes since the session
|
|
408
|
+
started. `resent` is how many frames the camera sent again that period;
|
|
409
|
+
these cameras re-send about 40% of their frames and every consumer drops
|
|
410
|
+
the repeats, so `frames` is the served picture rate, not what arrived.
|
|
404
411
|
|
|
405
412
|
## Camera controls and state
|
|
406
413
|
|
|
@@ -643,4 +650,3 @@ the permissive default.
|
|
|
643
650
|
| --- | --- | --- |
|
|
644
651
|
| `AIDOT_ALLOW_LAN_SERVE` | Silences the warning emitted when decrypted media is served on a non-loopback bind (e.g. `0.0.0.0`), where any host on the LAN can read the unencrypted stream. Set when an exposed bind is intentional. | unset (warn on non-loopback) |
|
|
645
652
|
| `AIDOT_CRED_KEY_FILE` | Path to the Fernet key file for stored credentials. Point it outside the config dir (ideally a separate secret store) so the key isn't co-located with the ciphertext. Applies to the default credentials path only (ignored when an explicit `creds_path` is passed). | `$XDG_CONFIG_HOME/aidot/.key` (falls back to `~/.config/aidot/.key`) |
|
|
646
|
-
| `AIDOT_PLAYBACK_TLS_VERIFY` | Set to `1` to require full certificate and hostname verification on the TLS connection to a camera's playback server. The camera presents a self-signed certificate, so this needs a trust anchor it chains to; unset, verification is skipped and a one-time warning is logged. | unset (skip verification, warn once) |
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
"""One place that knows which upstream ``python-aidot`` is installed.
|
|
2
|
+
|
|
3
|
+
Upstream has changed its private API inside patch releases more than once:
|
|
4
|
+
|
|
5
|
+
0.3.53 dict-based client, ``aes_utils``, ``login_const`` <- shape A
|
|
6
|
+
0.3.54 typed dataclasses, ``api/``, ``utils/crypto`` <- shape B
|
|
7
|
+
0.3.55 shape B
|
|
8
|
+
0.3.56 shape A again (plus the ``models/`` package)
|
|
9
|
+
0.3.57 shape A, plus the account back-reference, plus API v35
|
|
10
|
+
0.3.58 same as 0.3.57
|
|
11
|
+
|
|
12
|
+
The declared range starts at 0.3.56, so only shape A is installable and only
|
|
13
|
+
shape A is supported. Shape B (0.3.54-0.3.55) stopped being installable when
|
|
14
|
+
the floor moved on 2026-09-23 and its branches have since been removed. The
|
|
15
|
+
names that used to report it (``HAS_TYPED_ACCOUNT``, ``UPSTREAM_SHAPE``,
|
|
16
|
+
``UserInformation``, ``HAS_READ_DATA_SEAM``, ``HAS_SHARED_DISCOVERY_MAP``,
|
|
17
|
+
``DEVICE_STATE_IS_UPSTREAMS``) are kept as fixed constants because consumers
|
|
18
|
+
import them. See ``docs/UPSTREAM.md``.
|
|
19
|
+
|
|
20
|
+
Two axes are still live within the range and are detected here:
|
|
21
|
+
|
|
22
|
+
* the account back-reference - 0.3.57+ is shape A in every respect except that
|
|
23
|
+
``DeviceClient.__init__`` also takes the owning ``AidotClient``
|
|
24
|
+
(``HAS_DEVICE_CLIENT_BACKREF``);
|
|
25
|
+
* the cloud API version (``API_URL_TEMPLATE``); see ``docs/UPSTREAM.md``.
|
|
26
|
+
|
|
27
|
+
Every difference is resolved here, once, at import time; no other module in
|
|
28
|
+
this package may branch on the upstream version. If you find yourself adding a
|
|
29
|
+
``try: import aidot...`` anywhere else, put it here instead.
|
|
30
|
+
|
|
31
|
+
Detection is by capability (does the name import, what does the signature
|
|
32
|
+
say?), never by parsing a version string: upstream shipped shape A under both
|
|
33
|
+
``0.3.53`` and ``0.3.56`` with a five-day excursion in between, so a version
|
|
34
|
+
comparison would encode the excursion rather than the shape.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
from enum import IntEnum
|
|
38
|
+
from typing import Any, Optional
|
|
39
|
+
|
|
40
|
+
from aidot.aes_utils import (
|
|
41
|
+
aes_decrypt,
|
|
42
|
+
aes_decrypt_to_json,
|
|
43
|
+
aes_encrypt,
|
|
44
|
+
)
|
|
45
|
+
from aidot.login_const import (
|
|
46
|
+
API_URL_TEMPLATE,
|
|
47
|
+
APP_ID,
|
|
48
|
+
DEFAULT_REGION,
|
|
49
|
+
PUBLIC_KEY_PEM,
|
|
50
|
+
)
|
|
51
|
+
from aidot.models.device_model import DeviceInformation as DeviceRecord
|
|
52
|
+
|
|
53
|
+
# --------------------------------------------------------------------------- #
|
|
54
|
+
# Retired shape-B flags
|
|
55
|
+
# --------------------------------------------------------------------------- #
|
|
56
|
+
# Shape B (0.3.54-0.3.55) is no longer supported. These keep their names and
|
|
57
|
+
# their shape-A values because consumers and tests import them.
|
|
58
|
+
|
|
59
|
+
#: Always False: the typed account layer (``user_info``, ``_cloud_api``,
|
|
60
|
+
#: ``UserInformation``) existed only on shape B.
|
|
61
|
+
HAS_TYPED_ACCOUNT = False
|
|
62
|
+
|
|
63
|
+
#: Always ``"dict"``; ``"typed"`` was shape B.
|
|
64
|
+
UPSTREAM_SHAPE = "dict"
|
|
65
|
+
|
|
66
|
+
#: Always None: upstream's ``UserInformation`` class existed only on shape B.
|
|
67
|
+
UserInformation = None
|
|
68
|
+
|
|
69
|
+
#: Always False: upstream's own ``DeviceState`` existed only on shape B, so
|
|
70
|
+
#: ``DeviceState`` below is always the local stand-in.
|
|
71
|
+
DEVICE_STATE_IS_UPSTREAMS = False
|
|
72
|
+
|
|
73
|
+
#: Always False: ``DeviceClient.read_data`` existed only on shape B. Shape A
|
|
74
|
+
#: inlines the decrypt into ``receive_data``, so there is no seam to hook.
|
|
75
|
+
HAS_READ_DATA_SEAM = False
|
|
76
|
+
|
|
77
|
+
#: Always False: the process-wide ``Discover.DISCOVERED_DEVICE`` class dict
|
|
78
|
+
#: existed only on shape B. Shape A keeps the map on the ``Discover``
|
|
79
|
+
#: instance, which upstream's ``get_device_client`` reads straight off
|
|
80
|
+
#: ``self._discover``.
|
|
81
|
+
HAS_SHARED_DISCOVERY_MAP = False
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def rsa_encrypt(message: str, public_key: Any = None) -> str:
|
|
85
|
+
"""RSA/PKCS1v15 encrypt ``message``, returned base64.
|
|
86
|
+
|
|
87
|
+
Implemented here rather than re-exported. Upstream 0.3.54-0.3.55 had
|
|
88
|
+
``aidot.utils.crypto.rsa_encrypt(message, public_key)``; the supported
|
|
89
|
+
releases have only ``aidot.client.rsa_password_encrypt(message)``, which
|
|
90
|
+
bakes the key in and takes one argument. ``aidot_cameras.crypto.rsa_encrypt``
|
|
91
|
+
is public surface the integration repo may import, and public surface is not
|
|
92
|
+
changed to track an upstream rename, so the two-argument form is kept and
|
|
93
|
+
satisfied locally. ``public_key`` defaults to upstream's
|
|
94
|
+
``PUBLIC_KEY_PEM``, which is the only key any caller ever passed.
|
|
95
|
+
"""
|
|
96
|
+
from cryptography.hazmat.backends import default_backend
|
|
97
|
+
from cryptography.hazmat.primitives import serialization
|
|
98
|
+
from cryptography.hazmat.primitives.asymmetric import padding
|
|
99
|
+
import base64
|
|
100
|
+
|
|
101
|
+
if public_key is None:
|
|
102
|
+
public_key = PUBLIC_KEY_PEM
|
|
103
|
+
loaded = serialization.load_pem_public_key(
|
|
104
|
+
public_key.encode() if isinstance(public_key, str) else public_key,
|
|
105
|
+
backend=default_backend(),
|
|
106
|
+
)
|
|
107
|
+
encrypted = loaded.encrypt(message.encode("utf-8"), padding.PKCS1v15())
|
|
108
|
+
return base64.b64encode(encrypted).decode("utf-8")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# --------------------------------------------------------------------------- #
|
|
112
|
+
# Device record
|
|
113
|
+
# --------------------------------------------------------------------------- #
|
|
114
|
+
|
|
115
|
+
#: The typed cloud device record, upstream's ``DeviceInformation``. It exposes
|
|
116
|
+
#: ``from_json`` / ``to_dict`` and the core field set this package reads
|
|
117
|
+
#: (``id``, ``modelId``, ``aesKey``, ``password``, ``product``), and defaults
|
|
118
|
+
#: everything to ``None`` rather than ``""``/empty, so never rely on a nested
|
|
119
|
+
#: default being present - check for ``None`` first.
|
|
120
|
+
DeviceModel = DeviceRecord
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
# --------------------------------------------------------------------------- #
|
|
124
|
+
# DeviceState: upstream's old LAN session enum, kept locally
|
|
125
|
+
# --------------------------------------------------------------------------- #
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class _DeviceState(IntEnum):
|
|
129
|
+
"""Stand-in for upstream's deleted ``DeviceState``.
|
|
130
|
+
|
|
131
|
+
Upstream tracks the LAN session with ``_connecting`` /
|
|
132
|
+
``_connect_and_login`` booleans instead of an enum. The enum is still
|
|
133
|
+
re-exported from ``aidot_cameras.device_client`` because the Home
|
|
134
|
+
Assistant integration annotates and compares against it, and dropping a
|
|
135
|
+
public name outright would break it at import.
|
|
136
|
+
|
|
137
|
+
Members and values are copied from 0.3.55, the last upstream release that
|
|
138
|
+
had the enum, so a stored or hard-coded comparison keeps its meaning.
|
|
139
|
+
Nothing upstream ever *produces* one of these - use
|
|
140
|
+
``device_session_authenticated()`` rather than comparing a client's private
|
|
141
|
+
state against it.
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
IDLE = 0
|
|
145
|
+
INITIALIZING = 1
|
|
146
|
+
CONNECTING = 2
|
|
147
|
+
CONNECTED = 3
|
|
148
|
+
CONNECTION_FAILED = 4
|
|
149
|
+
AUTHENTICATING = 5
|
|
150
|
+
AUTHENTICATED = 6
|
|
151
|
+
AUTHENTICATION_FAILED = 7
|
|
152
|
+
DISCONNECTED = 8
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
DeviceState = _DeviceState
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def device_session_authenticated(device_client: Any) -> bool:
|
|
159
|
+
"""Whether a device client's LAN session is logged in.
|
|
160
|
+
|
|
161
|
+
Upstream reports it through the ``connect_and_login`` property. Consumers
|
|
162
|
+
that only want the answer should call this instead of touching upstream's
|
|
163
|
+
private state.
|
|
164
|
+
"""
|
|
165
|
+
return bool(getattr(device_client, "connect_and_login", False))
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# --------------------------------------------------------------------------- #
|
|
169
|
+
# Reconnect timer handle
|
|
170
|
+
# --------------------------------------------------------------------------- #
|
|
171
|
+
|
|
172
|
+
#: Attribute names a pending reconnect may be parked under.
|
|
173
|
+
#: ``CameraClient.async_close`` cancels whichever exists so a closed account
|
|
174
|
+
#: cannot re-open a TCP connection ~45 s later (upstream cancels neither).
|
|
175
|
+
RECONNECT_HANDLE_ATTRS = ("_reconnect_handle",)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def cancel_pending_reconnect(device_client: Any) -> bool:
|
|
179
|
+
"""Cancel a device client's pending reconnect.
|
|
180
|
+
|
|
181
|
+
Returns True if something was cancelled, and False - never a silent
|
|
182
|
+
success - when nothing was found, so if upstream renames the handle again
|
|
183
|
+
(it was ``_reconnect_timer`` on 0.3.54-0.3.55) the leak fix fails visibly
|
|
184
|
+
instead of going quiet. Callers that care should log the False case.
|
|
185
|
+
|
|
186
|
+
``LanRetryMixin._schedule_reconnect`` (``aidot_cameras.lan_retry``) does not
|
|
187
|
+
use either handle: it replaces upstream's immediate-respawn task with a
|
|
188
|
+
delayed one, parked under its own ``_lan_retry_task`` - not upstream's
|
|
189
|
+
``_login_task``, because upstream's ``update_ip_address()`` overwrites
|
|
190
|
+
``_login_task`` unconditionally (when not mid-connect and not logged in),
|
|
191
|
+
which would silently orphan a delayed retry parked under that name rather
|
|
192
|
+
than cancel it. Without cancelling ``_lan_retry_task`` here too, a
|
|
193
|
+
pending retry armed before close still sleeps out its backoff and calls
|
|
194
|
+
``async_login()`` on a closed client - on success that leaks a socket, a
|
|
195
|
+
receive task and a ping timer for the life of the process. ``_login_task``
|
|
196
|
+
is also checked and cancelled: it is where upstream itself parks an
|
|
197
|
+
in-flight ``async_login()`` task (from ``update_ip_address()`` or its own
|
|
198
|
+
``_schedule_reconnect()``), and a closed client should not be left
|
|
199
|
+
completing one of those either.
|
|
200
|
+
"""
|
|
201
|
+
cancelled = False
|
|
202
|
+
for attr in RECONNECT_HANDLE_ATTRS:
|
|
203
|
+
handle = getattr(device_client, attr, None)
|
|
204
|
+
if handle is not None:
|
|
205
|
+
handle.cancel()
|
|
206
|
+
cancelled = True
|
|
207
|
+
for attr in ("_lan_retry_task", "_login_task"):
|
|
208
|
+
task = getattr(device_client, attr, None)
|
|
209
|
+
if task is not None and not task.done():
|
|
210
|
+
task.cancel()
|
|
211
|
+
cancelled = True
|
|
212
|
+
return cancelled
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
# --------------------------------------------------------------------------- #
|
|
216
|
+
# Account HTTP surface
|
|
217
|
+
# --------------------------------------------------------------------------- #
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
async def api_get_houses(client: Any) -> Optional[list]:
|
|
221
|
+
"""List the account's houses."""
|
|
222
|
+
return await client.async_get_houses()
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
async def api_get_devices(client: Any, house_id: str) -> Optional[list]:
|
|
226
|
+
"""List one house's devices."""
|
|
227
|
+
return await client.async_get_devices(house_id)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
async def api_get_products(client: Any, product_ids: str) -> Optional[list]:
|
|
231
|
+
"""Fetch product metadata for a comma-joined id list."""
|
|
232
|
+
return await client.async_get_products(product_ids)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
async def api_refresh_token(client: Any) -> Any:
|
|
236
|
+
"""Exchange the refresh token for a new access token.
|
|
237
|
+
|
|
238
|
+
Returns the response body and raises ``AidotAuthFailed`` when the refresh
|
|
239
|
+
token itself is rejected; callers treat a falsy return as "no token".
|
|
240
|
+
"""
|
|
241
|
+
return await client.async_refresh_token()
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
# --------------------------------------------------------------------------- #
|
|
245
|
+
# Account fields
|
|
246
|
+
# --------------------------------------------------------------------------- #
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def account_region(client: Any) -> str:
|
|
250
|
+
"""The account's API region ("us", "eu", ...)."""
|
|
251
|
+
return getattr(client, "_region", "") or ""
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
def account_refresh_token(client: Any) -> str:
|
|
255
|
+
"""The stored refresh token, or "" when there is none."""
|
|
256
|
+
from .const import CONF_REFRESH_TOKEN
|
|
257
|
+
|
|
258
|
+
return (client.login_info or {}).get(CONF_REFRESH_TOKEN) or ""
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def account_token_ttl(client: Any, default: int = 7200) -> int:
|
|
262
|
+
"""Access-token lifetime in seconds, defaulting to the server's 7200."""
|
|
263
|
+
raw = (client.login_info or {}).get("expiresIn", 0)
|
|
264
|
+
try:
|
|
265
|
+
return int(raw or default)
|
|
266
|
+
except (TypeError, ValueError):
|
|
267
|
+
return default
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def account_record(client: Any) -> Any:
|
|
271
|
+
"""What to pass as a device client's second constructor argument.
|
|
272
|
+
|
|
273
|
+
The account's raw ``login_info`` dict. See ``device_client_args``.
|
|
274
|
+
"""
|
|
275
|
+
return client.login_info
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def device_client_args(
|
|
279
|
+
device_record: Any,
|
|
280
|
+
raw_device: dict,
|
|
281
|
+
typed_account: Any,
|
|
282
|
+
login_info: Optional[dict],
|
|
283
|
+
*,
|
|
284
|
+
client: Any,
|
|
285
|
+
) -> tuple:
|
|
286
|
+
"""The positional args upstream's ``DeviceClient.__init__`` expects.
|
|
287
|
+
|
|
288
|
+
Upstream takes the raw cloud records - ``(dict, dict)`` - natively, so the
|
|
289
|
+
originals go straight through and no camera-only field is lost to a typed
|
|
290
|
+
round trip. ``device_record`` is accepted but unused: the camera layer
|
|
291
|
+
builds it anyway (it reads ``.id`` / ``.aesKey`` off it), and keeping the
|
|
292
|
+
signature stable keeps every caller unchanged.
|
|
293
|
+
|
|
294
|
+
``login_info`` is preferred for the account; ``typed_account`` is the
|
|
295
|
+
fallback when a caller supplied only that, used as-is when it is a dict and
|
|
296
|
+
via its ``to_dict()`` when it is a record object.
|
|
297
|
+
|
|
298
|
+
0.3.57+ also takes the owning ``AidotClient`` as a third positional and
|
|
299
|
+
stores it as ``self.client``, so callers **splat** the result - its length
|
|
300
|
+
is 2 or 3 depending on what is installed.
|
|
301
|
+
|
|
302
|
+
``client`` is keyword-only with no default on purpose. Upstream stores it
|
|
303
|
+
unchecked, so a ``None`` that slipped through here would not surface until
|
|
304
|
+
something called ``async_set_effect`` and got ``'NoneType' object has no
|
|
305
|
+
attribute 'async_execute_diff_command'`` - an upstream traceback for our
|
|
306
|
+
bug. A caller that cannot supply one has to say so explicitly.
|
|
307
|
+
"""
|
|
308
|
+
account = login_info if isinstance(login_info, dict) else None
|
|
309
|
+
if account is None:
|
|
310
|
+
account = typed_account if isinstance(typed_account, dict) else {}
|
|
311
|
+
if not isinstance(typed_account, dict) and hasattr(typed_account, "to_dict"):
|
|
312
|
+
account = typed_account.to_dict()
|
|
313
|
+
pair = (raw_device, account)
|
|
314
|
+
return pair + ((client,) if HAS_DEVICE_CLIENT_BACKREF else ())
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def light_device_client_args(client: Any, raw_device: dict) -> tuple:
|
|
318
|
+
"""Positional args for a NON-camera device client, from the account client.
|
|
319
|
+
|
|
320
|
+
The light path has only the raw cloud dict, which is exactly what upstream
|
|
321
|
+
takes, so it is handed through untouched - no typed record is built for a
|
|
322
|
+
light.
|
|
323
|
+
|
|
324
|
+
Before this existed the light branch passed the raw dict straight to
|
|
325
|
+
upstream, bypassing the seam entirely - which is why it broke on every
|
|
326
|
+
release once 0.3.57 added the account back-reference.
|
|
327
|
+
"""
|
|
328
|
+
return device_client_args(
|
|
329
|
+
None,
|
|
330
|
+
raw_device,
|
|
331
|
+
account_record(client),
|
|
332
|
+
client.login_info,
|
|
333
|
+
client=client,
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
def _init_takes_account_client(init: Any) -> bool:
|
|
338
|
+
"""True when this ``DeviceClient.__init__`` wants the account client third.
|
|
339
|
+
|
|
340
|
+
Takes the plain function, so ``self`` is ``params[0]`` and the
|
|
341
|
+
back-reference, where present, is ``params[3]``.
|
|
342
|
+
|
|
343
|
+
Matches the NAME at that position, not the arity. Accepting any fourth
|
|
344
|
+
parameter would splat our account client into whatever upstream invents
|
|
345
|
+
next; a differently-named one must instead reach the constructor short by
|
|
346
|
+
one and raise a ``TypeError`` that names it. ``POSITIONAL_OR_KEYWORD``
|
|
347
|
+
only, for the same reason: if upstream makes it keyword-only we want the
|
|
348
|
+
loud failure, not a silent stop-supplying.
|
|
349
|
+
"""
|
|
350
|
+
import inspect
|
|
351
|
+
|
|
352
|
+
try:
|
|
353
|
+
params = list(inspect.signature(init).parameters.values())
|
|
354
|
+
except (TypeError, ValueError): # pragma: no cover - builtins/slots
|
|
355
|
+
return False
|
|
356
|
+
return (
|
|
357
|
+
len(params) >= 4
|
|
358
|
+
and params[3].name == "client"
|
|
359
|
+
and params[3].kind is inspect.Parameter.POSITIONAL_OR_KEYWORD
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
#: True when upstream's ``DeviceClient`` takes the owning ``AidotClient`` as a
|
|
364
|
+
#: third positional argument and keeps it as ``self.client`` (0.3.57+). It
|
|
365
|
+
#: feeds exactly one upstream method, ``async_set_effect``, which calls
|
|
366
|
+
#: ``client.async_execute_diff_command``; nothing in this package calls it, but
|
|
367
|
+
#: a consumer's light platform may, so the real client is supplied rather than
|
|
368
|
+
#: a placeholder. 0.3.56 (Home Assistant core's pin) does not take it.
|
|
369
|
+
try:
|
|
370
|
+
from aidot.device_client import DeviceClient as _DeviceClientForSig
|
|
371
|
+
|
|
372
|
+
HAS_DEVICE_CLIENT_BACKREF = _init_takes_account_client(_DeviceClientForSig.__init__)
|
|
373
|
+
except ImportError: # pragma: no cover - upstream is a hard dependency
|
|
374
|
+
HAS_DEVICE_CLIENT_BACKREF = False
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
def broadcast_protocol_args(callback: Any, user_id: str) -> tuple:
|
|
378
|
+
"""Positional args for upstream's ``BroadcastProtocol.__init__``.
|
|
379
|
+
|
|
380
|
+
``(callback, user_id)`` on every supported release; upstream uses the
|
|
381
|
+
account id to build the request payload. (0.3.54-0.3.55 took
|
|
382
|
+
``(callback)`` alone.)
|
|
383
|
+
"""
|
|
384
|
+
return (callback, user_id)
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
#: Names this module intends as its public surface within the package.
|
|
388
|
+
__all__ = [
|
|
389
|
+
"API_URL_TEMPLATE",
|
|
390
|
+
"APP_ID",
|
|
391
|
+
"DEFAULT_REGION",
|
|
392
|
+
"DEVICE_STATE_IS_UPSTREAMS",
|
|
393
|
+
"HAS_DEVICE_CLIENT_BACKREF",
|
|
394
|
+
"HAS_READ_DATA_SEAM",
|
|
395
|
+
"HAS_SHARED_DISCOVERY_MAP",
|
|
396
|
+
"HAS_TYPED_ACCOUNT",
|
|
397
|
+
"PUBLIC_KEY_PEM",
|
|
398
|
+
"RECONNECT_HANDLE_ATTRS",
|
|
399
|
+
"UPSTREAM_SHAPE",
|
|
400
|
+
"DeviceModel",
|
|
401
|
+
"DeviceRecord",
|
|
402
|
+
"DeviceState",
|
|
403
|
+
"UserInformation",
|
|
404
|
+
"account_record",
|
|
405
|
+
"account_refresh_token",
|
|
406
|
+
"account_region",
|
|
407
|
+
"account_token_ttl",
|
|
408
|
+
"aes_decrypt",
|
|
409
|
+
"aes_decrypt_to_json",
|
|
410
|
+
"aes_encrypt",
|
|
411
|
+
"api_get_devices",
|
|
412
|
+
"api_get_houses",
|
|
413
|
+
"api_get_products",
|
|
414
|
+
"api_refresh_token",
|
|
415
|
+
"broadcast_protocol_args",
|
|
416
|
+
"cancel_pending_reconnect",
|
|
417
|
+
"device_client_args",
|
|
418
|
+
"device_session_authenticated",
|
|
419
|
+
"light_device_client_args",
|
|
420
|
+
"rsa_encrypt",
|
|
421
|
+
]
|
{python_aidot_cameras-1.0.0rc57 → python_aidot_cameras-1.0.0rc58}/aidot_cameras/camera/aac_track.py
RENAMED
|
@@ -14,7 +14,6 @@ we own. Everything that reads the first audio track (WebRTC) is unchanged.
|
|
|
14
14
|
from __future__ import annotations
|
|
15
15
|
|
|
16
16
|
import logging
|
|
17
|
-
import os
|
|
18
17
|
import random
|
|
19
18
|
import struct
|
|
20
19
|
from typing import List, Optional, Tuple
|
|
@@ -75,7 +74,9 @@ def publish_aac_enabled() -> bool:
|
|
|
75
74
|
On by default since 1.0.0rc44: it is what gives an AAC-only consumer
|
|
76
75
|
(Home Assistant's HLS player, ``camera.record``) sound at all.
|
|
77
76
|
"""
|
|
78
|
-
|
|
77
|
+
from .. import settings
|
|
78
|
+
|
|
79
|
+
return settings.read(ENV_PUBLISH_AAC)
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
def audio_specific_config(
|