Commit ae90106b by Иван Кубота

config

parent db715fd6
{
"signal": "wss://signaling.because-why-not.com/conferenceapp",
"ice": [
{
"urls": "turn:turn.because-why-not.com:443",
"username": "testuser14",
"credential": "pass14"
},
{
"urls": "stun:stun.l.google.com:19302"
}
]
}
\ No newline at end of file
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
<div id="content"></div> <div id="content"></div>
<div style="position: fixed;background: transparent;color:black;border:1px solid rgba(0,0,0,0.5);padding:4px 8px; font-size:12px;bottom:0;right:0" id="logger"></div> <div style="position: fixed;background: transparent;color:black;border:1px solid rgba(0,0,0,0.5);padding:4px 8px; font-size:12px;bottom:0;right:0" id="logger"></div>
<script> <script>
Ajax.get('/config.json', function(err, data) {
window.appConfig = data;
store.set('configLoaded', true);
});
window.appConfig
window.logging = function(msg) { window.logging = function(msg) {
D.div({renderTo: document.getElementById('logger')}, msg); D.div({renderTo: document.getElementById('logger')}, msg);
}; };
......
...@@ -22,21 +22,21 @@ export class VideoInputApp { ...@@ -22,21 +22,21 @@ export class VideoInputApp {
public connectMessage: any; public connectMessage: any;
public constructor() { public constructor() {
this.mNetConfig.IceServers = [ this.mNetConfig.IceServers = window['appConfig']['ice'];/* [
{ urls: 'turn:turn.because-why-not.com:443', username:'testuser14', credential: 'pass14' }, { urls: 'turn:turn.because-why-not.com:443', username:'testuser14', credential: 'pass14' },
{ urls: "stun:stun.l.google.com:19302" }, { urls: "stun:stun.l.google.com:19302" },
/*{ urls: 'stun:stun1.l.google.com:19302'}, /!*{ urls: 'stun:stun1.l.google.com:19302'},
{ urls: 'stun:stun2.l.google.com:19302'}, { urls: 'stun:stun2.l.google.com:19302'},
{ urls: 'stun:stun3.l.google.com:19302'}, { urls: 'stun:stun3.l.google.com:19302'},
{ urls: 'stun:stun4.l.google.com:19302'}*/ { urls: 'stun:stun4.l.google.com:19302'}*!/
/*{ urls: "stun:stun.because-why-not.com:443" }, /!*{ urls: "stun:stun.because-why-not.com:443" },
{ urls: "stun:stun.l.google.com:19302" }*/ { urls: "stun:stun.l.google.com:19302" }*!/
]; ];*/
//use for testing conferences //use for testing conferences
//this.mNetConfig.IsConference = true; //this.mNetConfig.IsConference = true;
//this.mNetConfig.SignalingUrl = "wss://signaling.because-why-not.com/testshared"; //this.mNetConfig.SignalingUrl = "wss://signaling.because-why-not.com/testshared";
this.mNetConfig.IsConference = true; this.mNetConfig.IsConference = true;
this.mNetConfig.SignalingUrl = "wss://signaling.because-why-not.com/conferenceapp"; this.mNetConfig.SignalingUrl = window['appConfig']['signal'];// "wss://signaling.because-why-not.com/conferenceapp";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment