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.
20 lines
593 B
Python
20 lines
593 B
Python
from audio_gst import grouped_audio, shared_audio_cmd
|
|
|
|
|
|
def test_shared_audio_cmd_no_video_elements():
|
|
cams = [("cam-01", 4), ("cam-02", 5)]
|
|
cmd = shared_audio_cmd(cams, 16000, [8, 9])
|
|
joined = " ".join(cmd)
|
|
assert joined.count("alsasrc") == 2
|
|
assert "device=hw:4,0" in joined
|
|
assert "device=hw:5,0" in joined
|
|
assert "h264enc" not in joined
|
|
assert "v4l2src" not in joined
|
|
|
|
|
|
def test_grouped_audio_splits():
|
|
cams = [(f"cam-{i:02d}", i + 1) for i in range(1, 21)]
|
|
fds = list(range(20))
|
|
groups = grouped_audio(cams, fds, 5)
|
|
assert len(groups) == 4
|