-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
properly update settings in rtsp devices (#159)
* use new list of tuple return type of scan_for_cameras * add motec_settings_interface * add mjpeg camera tests * add parameters to mjpeg camera * require control_port to not be None * implement async interface (with cooldowns) * mark tests as asyncio * remove usage of nicegui background task this is necessary for usage without nicegui (for example in tests) since background_task depends on the nicegui core loop * assume that getter and setter functions can be async (and make them async in mjpeg_camera) * ensure fixed event loop * catch errors resulting from race conditions with a disconnect * add docstrings * remove unused import * fix async errors in rtsp camera * code review * check if result is awaitable * simplify start_capture_task * tiny fix * remove deprecated event_loop fixture * fix missing value in call to setter * fix rtsp_camera test * make setter return type None or Awaitable[None] * fix missing rename to polling_interval * fix capture_task creation * give ip to camera directly * improve RtspDevice logging * explicitly save if the camera should stream * properly update settings used in the gstreamer pipeline * fix issues left from merge * remove debug print * remove extra code left from merging * use abstract setters and getters in RtspDevice instead of single set method add jovision_profile field to RtspDevice * always set jovision profile and type it as int * fix imports * remove setLevel(DEBUG) * swap parameters * handle case of process being None after wait * remove unnecessary type hint Co-authored-by: Falko Schindler <falko@zauberzeug.com> * remove backslash Co-authored-by: Falko Schindler <falko@zauberzeug.com> * remove jovision_profile field * calculate new url every time gstreamer is restarted * add assertion to make mypy happy * define url as a property * add missing return statement --------- Co-authored-by: Falko Schindler <falko@zauberzeug.com>
- Loading branch information
1 parent
f0ec0f9
commit 2894a97
Showing
2 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters