openpilot0/selfdrive
Kacper Rączy d062a97a26 webrtcd: webrtc streaming server (audio/video/cereal) (#30186)
* WebRTCClient and WebRTCServer abstractions

* webrtc client implementation

* Interactive test scripts

* Send localDescriptions as offer/asnwer, as they are different

* Tracks need to be added after setting remote description for multi-cam streaming to work

* Remove WebRTCStreamingMetadata

* Wait for tracks

* Move stuff to separate files, rename some things

* Refactor everything, create WebRTCStreamBuilder for both offer and answers

* ta flight done time to grind

* wait for incoming tracks and channels

* Dummy track and frame reader track. Fix timing.

* dt based on camera type

* first trial of the new api

* Fix audio track

* methods for checking for incoming tracks

* Web migration part 2

* Fixes for stream api

* use rtc description for web.py

* experimental cereal proxy

* remove old code from bodyav

* fix is_started

* serialize session description

* fix audio

* messaging channel wrapper

* fix audiotrack

* h264 codec preference

* Add codec preference to tracks

* override sdp codecs

* add logging

* Move cli stuff to separate file

* slight cleanup

* Fix audio track

* create codec_mime inside force_codec function

* fix incoming media estimation

* move builders to __init__

* stream updates following builders

* Update example script

* web.py support for new builder

* web speaker fixes

* StreamingMediaInfo API

* Move things around

* should_add_data_channel rename

* is_connected_and_ready

* fix linter errors

* make cli executable

* remove dumb comments

* logging support

* fix parse_info_from_offer

* improve type annotations

* satisfy linters

* Support for waiting for disconnection

* Split device tracks into video/audio files. Move audio speaker to audio.py

* default dt for dummy video track

* Fix cli

* new speaker fixes

* Remove almost all functionality from web.py

* webrtcd

* continue refactoring web.py

* after handling joystick reset in controlsd with #30409, controls are not necessary anymore

* ping endpoint

* Update js files to at least support what worked previously

* Fixes after some tests on the body

* Streaming fixes

* Remove the use of WebRTCStreamBuilder. Subclass use is now required

* Add todo

* delete all streams on shutdown

* Replace lastPing with lastChannelMessageTime

* Update ping text only if rtc is still on

* That should affect the chart too

* Fix paths in web

* use protocol in SSLContext

* remove warnings since aiortc is not used directly anymore

* check if task is done in stop

* remove channel handler wrapper, since theres only one channel

* Move things around

* Moved webrtc abstractions to separate repository

* Moved webrtcd to tools/webrtc

* Update imports

* Add bodyrtc as dependency

* Add webrtcd to process_config

* Remove usage of DummyVideoStreamTrack

* Add main to webrtcd

* Move webrtcd to system

* Fix imports

* Move cereal proxy logic outside of runner

* Incoming proxy abstractions

* Add some tests

* Make it executable

* Fix process config

* Fix imports

* Additional tests. Add tests to pyproject.toml

* Update poetry lock

* New line

* Bump aiortc to 1.6.0

* Added teleoprtc_repo as submodule, and linked its source dir

* Add init file to webrtc module

* Handle aiortc warnings

* Ignore deprecation warnings

* Ignore resource warning too

* Ignore the warnings

* find free port for test_webrtcd

* Start process inside the test case

* random sleep test

* test 2

* Test endpoint function instead

* Update comment

* Add system/webrtc to release

* default arguments for body fields

* Add teleoprtc to release

* Bump teleoprtc

* Exclude teleoprtc from static analysis

* Use separate event loop for stream session tests
old-commit-hash: f058b5d64e
2023-12-01 21:13:37 -08:00
..
assets Revert "move big assets into LFS (#30030)" 2023-09-25 19:24:13 -07:00
athena Pytest: more post-test path cleanup (#30556) 2023-11-30 09:55:48 -08:00
boardd SOM boot recovery (#30427) 2023-11-09 18:09:18 -08:00
car Hyundai: add FW for 2019 AZERA_HEV_6TH_GEN (#30548) 2023-12-01 14:59:49 -08:00
controls Revert "Pytest: run tests in random order" (#30469) 2023-11-15 10:41:11 -08:00
debug update profiler docs again (#30503) 2023-11-20 13:30:16 -08:00
locationd locationd: remove models unused in openpilot (#30481) 2023-11-22 13:25:29 -08:00
manager webrtcd: webrtc streaming server (audio/video/cereal) (#30186) 2023-12-01 21:13:37 -08:00
modeld modeld: handle division by zero (#30411) 2023-11-08 10:06:30 -08:00
monitoring cleanup old sm pm args (#30241) 2023-10-13 23:27:04 -07:00
navd allow onscreen cpu rendering (#30510) 2023-11-22 12:44:32 -08:00
test Pytest: more post-test path cleanup (#30556) 2023-11-30 09:55:48 -08:00
thermald bump pandaStates to 10Hz (#29889) 2023-09-21 18:35:14 -07:00
ui cleanup cameraview shader (#30520) 2023-11-24 20:17:51 -08:00
__init__.py
sentry.py don't upload crash logs from forks (#30203) 2023-10-06 15:30:43 -07:00
statsd.py Pytest: more post-test path cleanup (#30556) 2023-11-30 09:55:48 -08:00
tombstoned.py don't upload crash logs from forks (#30203) 2023-10-06 15:30:43 -07:00
updated.py updated: wait 1m before first cycle (#30492) 2023-11-18 21:55:56 -08:00