feat: make WebRTC media service self-contained

This commit is contained in:
illusia committed 2026-09-03 10:56:39 +08:00
1 parent d6c8ccb73f
commit c7def28a8f
14 files changed
+160 -121

No files matched your search

+1 -4
View File
@@ -55,9 +55,6 @@ test("legacy config imports once, seeds the default admin, and allows password r
siteName: "Open WebSpeak",
welcomeText: "Public gateway",
webRtcEnabled: true,
webRtcPublicHost: "voice.example.com",
webRtcUdpStart: 40000,
webRtcUdpEnd: 40099,
});
const publicConfig = service.getPublicConfig();
assert.equal(publicConfig.target, "public.example.com:9987");
@@ -66,7 +63,7 @@ test("legacy config imports once, seeds the default admin, and allows password r
assert.equal(service.getAdminSettings().hasPassword, true);
assert.equal(service.getConnectionPolicy().serverPassword, "replacement-secret");
assert.equal(service.getAdminSettings().webRtcEnabled, true);
assert.deepEqual(service.getWebRtcAudioOptions(), { enabled: true, publicHost: "voice.example.com", icePortRange: [40000, 40099] });
assert.deepEqual(service.getWebRtcAudioOptions(), { enabled: true });
database.close();
});