mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat: make WebRTC media service self-contained
This commit is contained in:
1 parent
d6c8ccb73f
commit
c7def28a8f
14 files changed
+160
-121
No files matched your search
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user