Skip to content

HTTPVideo: Allow to specify port in URL#1860

Merged
Emantor merged 2 commits intolabgrid-project:masterfrom
gbetous-missingno:fixhttp
Apr 30, 2026
Merged

HTTPVideo: Allow to specify port in URL#1860
Emantor merged 2 commits intolabgrid-project:masterfrom
gbetous-missingno:fixhttp

Conversation

@gbetous-missingno
Copy link
Copy Markdown

This PR fixes and improves HTTPVideoStream usage:

Fix:

  • Adds dummy controls parameter to be compatible with other streams (used by remote/client.py in drv.stream() call)

Improvement:

  • Use declared port in URL if present (e.g. http://lab.local:8080/stream.mjpg)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.8%. Comparing base (c246fab) to head (6456948).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
labgrid/driver/httpvideodriver.py 25.0% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1860     +/-   ##
========================================
- Coverage    45.8%   45.8%   -0.1%     
========================================
  Files         182     182             
  Lines       14718   14720      +2     
========================================
  Hits         6743    6743             
- Misses       7975    7977      +2     
Flag Coverage Δ
3.10 45.8% <25.0%> (-0.1%) ⬇️
3.11 45.8% <25.0%> (-0.1%) ⬇️
3.12 45.8% <25.0%> (-0.1%) ⬇️
3.13 45.7% <25.0%> (-0.1%) ⬇️
3.14 45.7% <25.0%> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Use declared port in URL if present
- Declare `controls` parameter to be compatible with other streams
  (used by remote/client.py in drv.stream() call)

Signed-off-by: Guillaume Betous <guillaume@missingno.tech>
Test URL using:
- http://
- https://
- http:// with port in URL

Signed-off-by: Guillaume Betous <guillaume@missingno.tech>
@Emantor Emantor merged commit 2653c42 into labgrid-project:master Apr 30, 2026
8 of 10 checks passed
@gbetous-missingno gbetous-missingno deleted the fixhttp branch April 30, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants