111
This commit is contained in:
14
WebApp/client/public/js/config.js
Normal file
14
WebApp/client/public/js/config.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import {getServers} from "./icesettings.js";
|
||||
|
||||
export async function getServerConfig() {
|
||||
const protocolEndPoint = location.origin + '/config';
|
||||
const createResponse = await fetch(protocolEndPoint);
|
||||
return await createResponse.json();
|
||||
}
|
||||
|
||||
export function getRTCConfiguration() {
|
||||
let config = {};
|
||||
config.sdpSemantics = 'unified-plan';
|
||||
config.iceServers = getServers();
|
||||
return config;
|
||||
}
|
||||
Reference in New Issue
Block a user