Skip to content

Commit

Permalink
Add ObserveRTC server to config
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarMarkhulis committed Oct 30, 2022
1 parent 8daab51 commit 6c8ced0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/screens/CallScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function CallScreen() {
const [audioStat, setAudioStat] = useState({});

const signalUrl = process.env.REACT_APP_SIGNAL_URL;
console.log(signalUrl);

console.log("SignalUrl: "+signalUrl);

const socket = socketio(signalUrl, {
autoConnect: false,
Expand Down Expand Up @@ -99,7 +100,15 @@ function CallScreen() {
// see full config in Configuration section
const config = {
collectingPeriodInMs: 5000,
};
sampler: {
roomId: "testRoom",
},
sender: {
websocket: {
urls: ["ws://46.101.128.74:7080/samples/myServiceId/myMediaUnitId"]
}
}
};
const monitor = ClientMonitor.create(config);
monitor.addStatsCollector({
id: "collectorId",
Expand Down

0 comments on commit 6c8ced0

Please sign in to comment.