python-aidot-cameras 1.0.0b25__tar.gz → 1.0.0b27__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.0b25/python_aidot_cameras.egg-info → python_aidot_cameras-1.0.0b27}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/protocol.py +18 -2
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sdes_open.py +12 -2
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/pyproject.toml +1 -1
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27/python_aidot_cameras.egg-info}/PKG-INFO +1 -1
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/python_aidot_cameras.egg-info/SOURCES.txt +2 -0
- python_aidot_cameras-1.0.0b27/tests/test_avio_ctrl_uses_the_session_dseq.py +81 -0
- python_aidot_cameras-1.0.0b27/tests/test_nack_cannot_add_load_in_a_burst.py +92 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/LICENSE +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/MANIFEST.in +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/README.md +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/__init__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/__main__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_upstream.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/__init__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/LICENSE +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/__init__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/clock.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/__init__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/base.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/g711.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/g722.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/h264.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/opus.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/codecs/vpx.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/contrib/__init__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/contrib/media.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/contrib/signaling.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/events.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/jitterbuffer.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/mediastreams.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rate.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcconfiguration.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcdatachannel.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcdtlstransport.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcicetransport.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcpeerconnection.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcrtpparameters.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcrtpreceiver.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcrtpsender.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcrtptransceiver.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcsctptransport.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtcsessiondescription.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtp.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/sdp.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/stats.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/utils.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/ble_gateway.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/__init__.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/client.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/constants.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/controls.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/hwaccel.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/lan_control.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/models.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/playback.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sd_events.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sdes.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/tutk.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/webrtc.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/webrtc_open.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/client.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/const.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/credentials.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/crypto.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/device_client.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/discover.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/exceptions.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/g711.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/lan_retry.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/py.typed +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/python_aidot_cameras.egg-info/dependency_links.txt +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/python_aidot_cameras.egg-info/entry_points.txt +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/python_aidot_cameras.egg-info/requires.txt +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/python_aidot_cameras.egg-info/top_level.txt +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/setup.cfg +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_aioice_compat.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_alarm_event.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_answer_sdp_video_pt.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_answer_section_selection.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_audio_mux_offline.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_avio_request.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_avio_response_parse.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_avio_response_router.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_backoff.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_battery_detection.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_battery_evidence_corroboration.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_battery_skip_turn.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_bitrate_campaign_arms.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_ble_gateway.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_bridge_state_sentinels.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_busy_backoff.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_canary_log_names_the_camera.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_cloud_count.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_cloud_plan.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_constants_imports_resolve.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_control_verdicts.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_deferred_hardening.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_device_cmd_seq_match.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_device_login_guard.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_device_user_info_cache.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_direct_ts_serve.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dormant_camera_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_drain_is_cancellable.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_mux_terminal_write.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_not_ready_burst.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_pinning.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_resolution_ack.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_serve_decode_skip.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_serve_ice_wait.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_serve_open_timeout.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_skip_signaling_wait.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_slow_probe.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_stdout_producer.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_video_presence.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_egress_guard.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_env_seams.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_feature_probe_needs_a_live_session.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_ffmpeg_signal_exit_is_not_a_crash.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_futile_keepalive.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_gate_requires_a_decoded_frame.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_go2rtc_cli.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_h264_decode_rate_limit.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_highport_nomination.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_hwaccel_probe.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_ice_config_cache.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_ice_peer_reflexive.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_idle_release_both_loops.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_keepalive_renew.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_key_restart_sdp.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_keyframe_prompter.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_lan_control.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_lan_retry_reaches_the_storming_devices.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_late_repeats_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_light_active_color_mode.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_live_session_carries_talk.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_live_stream_param.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_live_validate_policy.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_live_video_canary.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_local_only_controls.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_logging_caps.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_login_connect_deadline.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_login_reconnect_backoff.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_media_counted_only_when_plaintext.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_media_socket_rcvbuf.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_media_wait_floor.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_motion_poll.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_mqtt_client_id_is_exact.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_mqtt_credential_refetch.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_mqtt_credential_self_heal.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_mqtt_password_not_persisted.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_mqtt_session_reconnect.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_mqtt_thread_not_orphaned.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_nack.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_narrow_pc_ice.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_no_key_material_in_logs.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_no_self_referential_go2rtc.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_no_undefined_names.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_offer_keeps_rtcp_feedback.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_offline_keepalive_pause.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_on_frame_is_an_av_frame.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_open_fail_logger.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_open_gate_delay.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_peerid_reuse.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_persistent_mqtt.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_persistent_mqtt_robustness.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_playback_tls.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_post_merge_hardening.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_ptz_probe_reads_what_it_is_told.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_public_signature_matches_impl.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_quality_campaign_in_session.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_recent_recordings.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_remb.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_resent_frames_are_dropped.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_resolution_persists.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_restart_cycle.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_retry_policy.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_scripts_importable.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sctp_init_ack_tsn.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sd_card_presence.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sd_event_decode.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sd_event_probe_payloads.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sd_listing.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sd_playback.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_adaptive.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_avio_dispatch.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_bridge_break_gate.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_echo_wait_timeout.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_fast_liveplay.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_ffmpeg_stderr_log.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_first_media_stall_report.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_idle_release.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_nack_bridge.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_offer_video_order.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_offer_video_pin.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_open_cleanup.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_sctp_abort.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_serve_audio.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_serve_cmd.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_serve_stderr_drain.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_sprop.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_talk.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_teardown_exit_log.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_terminal_ack_latency.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdes_watchdog.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdp_narrowing_properties.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sdp_payload_type_narrowing.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_security_hardening.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_self_peer_is_an_address_not_an_ip.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_serializable_login_info.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_serve_loss_tolerance.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_serve_pt_respects_the_pin.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_serve_relay.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_serve_stderr_keeps_the_reason.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_session_stats.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_shared_house_seam.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_snapshot_cancellation.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_speak.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sprop_capture_gate.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sprop_staleness.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sprop_unstable_public.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_sprop_write_is_reported_truthfully.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_srtp_rx_rekey.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_srtp_tx_key_note.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stall_report_says_what_the_answer_carried.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stall_report_says_whether_the_trigger_was_answered.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stall_report_separates_silence_from_undecryptable.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stall_report_survives_a_caller_giving_up.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stall_reports_reach_the_artifact.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stream_cap.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stream_drain_ownership.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stream_idle.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stream_slot_cap.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_stream_teardown.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_talk.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_talk_reports_a_speaker_that_never_opened.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_tap_to_mux_end_to_end.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_terminal_ack.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_token_file_robustness.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_token_refresh.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_turn_create_permission.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_tutk_path_is_out_of_reach.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_upstream_compat.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_video_profile_log.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_video_pts_dts.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_video_ts_unwrap.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_viewer_check_throttle.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_viewer_presence.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_viewer_present_push_mode.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_wait_or_event.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_wake_gate_camera_evidence.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_wake_readiness_retry.py +0 -0
- {python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/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.0b27
|
|
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
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/protocol.py
RENAMED
|
@@ -3029,13 +3029,24 @@ class NackTracker:
|
|
|
3029
3029
|
(RFC 3550 s5.1), and treating that as a 40000-packet loss would emit a
|
|
3030
3030
|
NACK storm at the exact moment the stream is trying to start.
|
|
3031
3031
|
* One report is capped at ``max_report`` numbers, which is also what fits
|
|
3032
|
-
in a single FCI entry
|
|
3032
|
+
in a single FCI entry, and reports are at least ``min_report_interval``
|
|
3033
|
+
apart. This link is bandwidth-limited -- measured on the reference
|
|
3034
|
+
camera, loss rises monotonically with offered load (2.21 Mbps -> 0.37%,
|
|
3035
|
+
3.90 Mbps -> 7.25%) -- so a request costs the very resource it is trying
|
|
3036
|
+
to repair. Without the interval a single wide gap fires a full report on
|
|
3037
|
+
each of the next several packets (measured: 12 sends across 31 packets),
|
|
3038
|
+
which is a burst of extra load at the moment the link is worst. The
|
|
3039
|
+
interval coalesces those into fewer, fuller reports; it never discards a
|
|
3040
|
+
sequence number, and at the measured steady-state loss it never triggers.
|
|
3033
3041
|
"""
|
|
3034
3042
|
|
|
3035
3043
|
def __init__(self, *, max_gap: int = 250, max_behind: int = 200,
|
|
3036
3044
|
retry_after: float = 0.15, max_requests: int = 3,
|
|
3037
|
-
max_report: int = 17
|
|
3045
|
+
max_report: int = 17,
|
|
3046
|
+
min_report_interval: float = 0.02) -> None:
|
|
3038
3047
|
self.max_gap = max_gap
|
|
3048
|
+
self.min_report_interval = min_report_interval
|
|
3049
|
+
self._last_report_ts = None
|
|
3039
3050
|
self.max_behind = max_behind
|
|
3040
3051
|
self.retry_after = retry_after
|
|
3041
3052
|
self.max_requests = max_requests
|
|
@@ -3117,6 +3128,9 @@ class NackTracker:
|
|
|
3117
3128
|
del self._pending[s]
|
|
3118
3129
|
|
|
3119
3130
|
def _due(self, now: float) -> "list":
|
|
3131
|
+
if (self._last_report_ts is not None
|
|
3132
|
+
and now - self._last_report_ts < self.min_report_interval):
|
|
3133
|
+
return []
|
|
3120
3134
|
out = []
|
|
3121
3135
|
for s, state in list(self._pending.items()):
|
|
3122
3136
|
if len(out) >= self.max_report:
|
|
@@ -3130,6 +3144,8 @@ class NackTracker:
|
|
|
3130
3144
|
state[0] = sent + 1
|
|
3131
3145
|
state[1] = now
|
|
3132
3146
|
out.append(s)
|
|
3147
|
+
if out:
|
|
3148
|
+
self._last_report_ts = now
|
|
3133
3149
|
return out
|
|
3134
3150
|
|
|
3135
3151
|
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sdes_open.py
RENAMED
|
@@ -4208,10 +4208,20 @@ class _SdesOpenMixin:
|
|
|
4208
4208
|
# pattern as the LIVING send above). dcep_sock/dcep_src are the
|
|
4209
4209
|
# socket+addr the SCTP handshake (and LIVING) used.
|
|
4210
4210
|
import struct as _st_pcmd
|
|
4211
|
-
import random as _r_pcmd
|
|
4212
4211
|
|
|
4213
4212
|
def _persistent_sdes_cmd(_cmd, _extra=b''):
|
|
4214
|
-
|
|
4213
|
+
# dSeq, not a random number. The app's
|
|
4214
|
+
# sendCtrl() takes this from a per-client
|
|
4215
|
+
# counter that starts at 100 and increments
|
|
4216
|
+
# on every control command, and we keep the
|
|
4217
|
+
# same counter for livePlayReq already.
|
|
4218
|
+
# Filling the slot randomly was the only
|
|
4219
|
+
# field in the 28-byte header that differed
|
|
4220
|
+
# from the app's. Parity, not a fix: PTZ
|
|
4221
|
+
# (AVIO 0x1001) pans through this very
|
|
4222
|
+
# builder with a random dSeq, so the camera
|
|
4223
|
+
# is not validating it.
|
|
4224
|
+
_seq = self._next_dseq()
|
|
4215
4225
|
_ts = int(_time_br.time() * 1000)
|
|
4216
4226
|
_avio = _st_pcmd.pack('<IIqII4x', _seq, _cmd, _ts,
|
|
4217
4227
|
len(_extra), 0) + _extra
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-aidot-cameras"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0b27"
|
|
8
8
|
description = "Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-aidot-cameras
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0b27
|
|
4
4
|
Summary: Control AiDot/Leedarson WiFi lights and cameras (WebRTC streaming, two-way audio, PTZ, controls)
|
|
5
5
|
Author-email: cbrightly <chris.brightly@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -79,6 +79,7 @@ tests/test_alarm_event.py
|
|
|
79
79
|
tests/test_answer_sdp_video_pt.py
|
|
80
80
|
tests/test_answer_section_selection.py
|
|
81
81
|
tests/test_audio_mux_offline.py
|
|
82
|
+
tests/test_avio_ctrl_uses_the_session_dseq.py
|
|
82
83
|
tests/test_avio_request.py
|
|
83
84
|
tests/test_avio_response_parse.py
|
|
84
85
|
tests/test_avio_response_router.py
|
|
@@ -153,6 +154,7 @@ tests/test_mqtt_password_not_persisted.py
|
|
|
153
154
|
tests/test_mqtt_session_reconnect.py
|
|
154
155
|
tests/test_mqtt_thread_not_orphaned.py
|
|
155
156
|
tests/test_nack.py
|
|
157
|
+
tests/test_nack_cannot_add_load_in_a_burst.py
|
|
156
158
|
tests/test_narrow_pc_ice.py
|
|
157
159
|
tests/test_no_key_material_in_logs.py
|
|
158
160
|
tests/test_no_self_referential_go2rtc.py
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""AVIO control commands carry the session dSeq, as the app's do.
|
|
2
|
+
|
|
3
|
+
Read out of the app (`KVSWebRTCChannel`, decompiled) 2026-08-23. Its control
|
|
4
|
+
header is 28 bytes little-endian and ours agrees on every field but one:
|
|
5
|
+
|
|
6
|
+
offset app ours (before this change)
|
|
7
|
+
0 live-play dSeq random.randint(0, 0x7FFFFFFF)
|
|
8
|
+
4 cmd cmd
|
|
9
|
+
8 timestamp (long, ms) same
|
|
10
|
+
16 payload length len(payload)
|
|
11
|
+
20 0 0
|
|
12
|
+
24 pad pad
|
|
13
|
+
|
|
14
|
+
`sendCtrl(cmd, bytes)` calls `generateLivePlayDSeq()` first: a per-client
|
|
15
|
+
counter that starts at 100 and increments on EVERY control command. The app
|
|
16
|
+
routes 16 of its 17 commands that way and only the heartbeat (0x1424 / 5156)
|
|
17
|
+
without one. We already keep that counter -- `_next_dseq`, commented "app
|
|
18
|
+
parity (Q0(): starts at 100, increments)" -- and used it for `livePlayReq`
|
|
19
|
+
only, filling the control frames with a random number instead.
|
|
20
|
+
|
|
21
|
+
**This is parity, not a fix.** It is explicitly NOT the reason SETSTREAMCTRL is
|
|
22
|
+
ignored: `button.*_ptz_*` is AVIO 0x1001 sent through the identical frame
|
|
23
|
+
builder with the same random dSeq, and it is class A on physical evidence --
|
|
24
|
+
"the camera pans. Mean frame difference across a 5 s pan: 25.2 at speed 4,
|
|
25
|
+
38.6 at speed 200, against a no-command control of 2.6." A camera that pans on
|
|
26
|
+
a random dSeq is not validating it. Closing the gap removes the last known
|
|
27
|
+
framing difference from the app; it is not expected to change any behaviour,
|
|
28
|
+
and the PTZ pan must still work afterwards.
|
|
29
|
+
"""
|
|
30
|
+
import pathlib
|
|
31
|
+
import re
|
|
32
|
+
|
|
33
|
+
_SRC = pathlib.Path(__file__).resolve().parents[1] / "aidot_cameras" / "camera"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _client_cls():
|
|
37
|
+
import aidot_cameras.camera.client as cc
|
|
38
|
+
return next(v for v in vars(cc).values()
|
|
39
|
+
if isinstance(v, type) and "_next_dseq" in v.__dict__)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def test_the_counter_starts_at_100_and_increments():
|
|
43
|
+
cam = _client_cls().__new__(_client_cls())
|
|
44
|
+
cam._live_dseq = 100
|
|
45
|
+
assert [cam._next_dseq() for _ in range(4)] == [100, 101, 102, 103]
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def test_control_commands_and_live_play_share_one_counter():
|
|
49
|
+
# The app keys its counter on the client id, not on the command, so a
|
|
50
|
+
# control command consumes a number from the same run as livePlayReq.
|
|
51
|
+
cam = _client_cls().__new__(_client_cls())
|
|
52
|
+
cam._live_dseq = 100
|
|
53
|
+
first = cam._next_dseq()
|
|
54
|
+
second = cam._next_dseq()
|
|
55
|
+
assert second == first + 1
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def test_the_avio_control_frame_no_longer_uses_a_random_dseq():
|
|
59
|
+
"""Binds the test to the real send site, which lives in a closure.
|
|
60
|
+
|
|
61
|
+
Without this the unit tests above would still pass with the production
|
|
62
|
+
frame builder untouched -- the same reason the media-counter gate has a
|
|
63
|
+
source guard.
|
|
64
|
+
"""
|
|
65
|
+
src = (_SRC / "sdes_open.py").read_text()
|
|
66
|
+
m = re.search(r"def _persistent_sdes_cmd\(.*?\n(?P<body>(?:.*\n){0,12})", src)
|
|
67
|
+
assert m, "could not find the persistent AVIO command sender"
|
|
68
|
+
body = m.group("body")
|
|
69
|
+
assert "randint" not in body, (
|
|
70
|
+
"the AVIO control frame still fills the dSeq slot with a random number; "
|
|
71
|
+
"the app fills it with the live-play counter")
|
|
72
|
+
assert "_next_dseq" in body, (
|
|
73
|
+
"the AVIO control frame must take its dSeq from the session counter "
|
|
74
|
+
"(_next_dseq), the way livePlayReq already does")
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def test_the_header_layout_is_unchanged():
|
|
78
|
+
# Only the VALUE in the dSeq slot changes. The layout is verified
|
|
79
|
+
# byte-for-byte against the app: 28 bytes, little-endian, dSeq/cmd/ts/len/0.
|
|
80
|
+
src = (_SRC / "sdes_open.py").read_text()
|
|
81
|
+
assert "'<IIqII4x'" in src, "the 28-byte little-endian AVIO header must not change"
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"""The NACK must not pile load onto a link that is losing packets from load.
|
|
2
|
+
|
|
3
|
+
Measured on the reference A001064, same camera, same position, one day, wire
|
|
4
|
+
captures:
|
|
5
|
+
|
|
6
|
+
2.21 Mbps -> 0.37% loss
|
|
7
|
+
2.59 Mbps -> 0.70%
|
|
8
|
+
3.07 Mbps -> 0.94%
|
|
9
|
+
3.90 Mbps -> 7.25%
|
|
10
|
+
|
|
11
|
+
Loss rises monotonically with offered load. That rules out fixed signal
|
|
12
|
+
strength as the explanation -- position and antenna did not change -- and makes
|
|
13
|
+
this link bandwidth-limited, somewhere above ~2 Mbps.
|
|
14
|
+
|
|
15
|
+
Which makes a retransmission request a dangerous thing to send carelessly: it
|
|
16
|
+
asks the camera to put MORE bytes on the link that is already dropping them.
|
|
17
|
+
The failed 100 ms x 4 retry experiment demonstrated the feedback loop directly
|
|
18
|
+
-- recovery fell from 99.2% to 73.6% because the extra requests cost more than
|
|
19
|
+
they recovered.
|
|
20
|
+
|
|
21
|
+
The remaining hole is burst behaviour. A single wide gap has every pending
|
|
22
|
+
sequence number eligible at once with `last is None`, so the tracker emits a
|
|
23
|
+
full report on each of the next several received packets: measured, a 250-packet
|
|
24
|
+
gap produced 12 NACK sends across 31 consecutive packets. That is a burst of
|
|
25
|
+
requests fired at exactly the moment the link is worst.
|
|
26
|
+
|
|
27
|
+
A minimum interval between SENDS closes it, and costs nothing in the steady
|
|
28
|
+
state: at the measured 0.7% loss there are about two losses a second, so
|
|
29
|
+
reports are already far apart. During a burst the interval coalesces sequence
|
|
30
|
+
numbers into fewer, fuller reports -- the same cadence gating the PLI and REMB
|
|
31
|
+
paths already use.
|
|
32
|
+
"""
|
|
33
|
+
from aidot_cameras.camera.protocol import NackTracker
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _burst(t, width, now=0.0):
|
|
37
|
+
"""One wide gap: observe 1000, then jump `width` ahead."""
|
|
38
|
+
t.observe(1000, now=now)
|
|
39
|
+
t.observe(1000 + width, now=now)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def test_a_wide_gap_does_not_fire_a_report_on_every_following_packet():
|
|
43
|
+
t = NackTracker(max_gap=400, min_report_interval=0.02)
|
|
44
|
+
_burst(t, 250)
|
|
45
|
+
sends = 0
|
|
46
|
+
seq = 1251
|
|
47
|
+
now = 0.0
|
|
48
|
+
for _ in range(30): # 30 consecutive in-order packets
|
|
49
|
+
if t.observe(seq, now=now):
|
|
50
|
+
sends += 1
|
|
51
|
+
seq += 1
|
|
52
|
+
now = round(now + 0.003, 4) # ~330 packets/s, as measured
|
|
53
|
+
assert sends <= 5, (
|
|
54
|
+
f"{sends} NACK sends across 30 packets: that is a request burst aimed "
|
|
55
|
+
f"at the moment the link is least able to carry it")
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def test_the_interval_coalesces_rather_than_discards():
|
|
59
|
+
# Suppressed numbers must still go out in a later report -- the point is to
|
|
60
|
+
# send fewer, fuller reports, not to ask for less.
|
|
61
|
+
t = NackTracker(max_gap=400, min_report_interval=0.02)
|
|
62
|
+
_burst(t, 60)
|
|
63
|
+
asked = set()
|
|
64
|
+
seq, now = 1061, 0.0
|
|
65
|
+
for _ in range(40):
|
|
66
|
+
asked.update(t.observe(seq, now=now))
|
|
67
|
+
seq += 1
|
|
68
|
+
now = round(now + 0.01, 4)
|
|
69
|
+
assert len(asked) >= 55, f"only {len(asked)} of the 59 lost numbers were asked for"
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def test_the_steady_state_is_untouched():
|
|
73
|
+
# ~2 losses a second is what 0.7% at 300 pkt/s looks like. Reports that far
|
|
74
|
+
# apart must never be delayed: the measured-good 150ms x 3 schedule depends
|
|
75
|
+
# on the first request going out immediately.
|
|
76
|
+
t = NackTracker(min_report_interval=0.02)
|
|
77
|
+
t.observe(1000, now=0.0)
|
|
78
|
+
assert t.observe(1002, now=0.0) == [1001], "the first request must not be delayed"
|
|
79
|
+
|
|
80
|
+
# A later, isolated loss on a tracker with nothing outstanding must also go
|
|
81
|
+
# out at once. (Deliberately a fresh tracker: with 1001 still pending it
|
|
82
|
+
# would be re-requested first and the throttle would correctly fire -- that
|
|
83
|
+
# is the retry schedule doing its job, not the steady state.)
|
|
84
|
+
u = NackTracker(min_report_interval=0.02)
|
|
85
|
+
u.observe(2000, now=10.0)
|
|
86
|
+
assert u.observe(2002, now=10.0) == [2001]
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def test_the_default_is_short_enough_to_be_invisible_to_recovery():
|
|
90
|
+
# Recovery is 45 ms at the median against a 500 ms budget; a coalescing
|
|
91
|
+
# delay has to be small next to that or it eats the thing it protects.
|
|
92
|
+
assert 0 < NackTracker().min_report_interval <= 0.03
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/__init__.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rate.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/rtp.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/_vendor/aiortc/sdp.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/ble_gateway.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/__init__.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/client.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/constants.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/controls.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/go2rtc.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/hwaccel.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/lan_control.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/models.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/playback.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sd_events.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sd_listing.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sd_playback.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/sdes.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/tutk.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/webrtc.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/camera/webrtc_open.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/credentials.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/aidot_cameras/device_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_answer_sdp_video_pt.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_audio_mux_offline.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_avio_response_parse.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_avio_response_router.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_battery_detection.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_battery_skip_turn.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_bitrate_campaign_arms.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_bridge_state_sentinels.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_control_verdicts.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_deferred_hardening.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_device_cmd_seq_match.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_device_login_guard.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_device_user_info_cache.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_direct_ts_serve.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dormant_camera_cleanup.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_drain_is_cancellable.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_not_ready_burst.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_resolution_ack.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_serve_decode_skip.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_serve_ice_wait.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_slow_probe.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_stdout_producer.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_dtls_video_presence.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_futile_keepalive.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_h264_decode_rate_limit.py
RENAMED
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_highport_nomination.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_aidot_cameras-1.0.0b25 → python_aidot_cameras-1.0.0b27}/tests/test_ice_config_cache.py
RENAMED
|
File without changes
|