Publish and subscribe over wss://livekit.uni-wh.de:7800 and refuse cleartext ws://. Conference room is uwh-telhai. Includes the uncommitted encoded H.264 publish path, Rally hairpin, and KMS wall overlay.
17 lines
659 B
Python
17 lines
659 B
Python
from uvc_exposure import pin_cmd
|
|
|
|
|
|
def test_pin_cmd_order_manual_then_time_then_dynfps():
|
|
cmd = pin_cmd("/dev/cam07")
|
|
assert cmd[:3] == ["v4l2-ctl", "-d", "/dev/cam07"]
|
|
assert cmd[3] == "--set-ctrl=auto_exposure=1"
|
|
assert cmd[4] == "--set-ctrl=exposure_time_absolute=333"
|
|
assert cmd[5] == "--set-ctrl=exposure_dynamic_framerate=0"
|
|
|
|
|
|
def test_pin_cmd_auto_skips_inactive_time():
|
|
cmd = pin_cmd("/dev/cam07", auto_exposure=3, dynamic_framerate=1)
|
|
assert "--set-ctrl=auto_exposure=3" in cmd
|
|
assert "--set-ctrl=exposure_dynamic_framerate=1" in cmd
|
|
assert not any(c.startswith("--set-ctrl=exposure_time_absolute=") for c in cmd)
|