Implement RTC store (#1081)

* implement RTC store

* fix ffmpeg_builder

* add RtcSdpOffer type
This commit is contained in:
Harisreedhar
2026-04-28 15:07:12 +05:30
committed by henryruhs
parent 31a16982f3
commit cc8bfc1af4
7 changed files with 84 additions and 12 deletions
+5 -5
View File
@@ -259,13 +259,13 @@ def test_sanitize_video() -> None:
def test_spawn_stream() -> None: # TODO: Improve test
test_set =\
[
((426, 240), 25, 500),
((640, 360), 30, 1000),
((1280, 720), 30, 2000)
((426, 240), 25, 400, 800),
((640, 360), 30, 1000, 2000),
((1280, 720), 30, 2000, 4000)
]
for resolution, stream_fps, stream_bitrate in test_set:
encoder = spawn_stream(resolution, stream_fps, stream_bitrate)
for resolution, stream_fps, stream_bitrate, stream_bufsize in test_set:
encoder = spawn_stream(resolution, stream_fps, stream_bitrate, stream_bufsize)
frame_size = resolution[0] * resolution[1] * 3
stdout, _ = encoder.communicate(input = bytes(frame_size))