|
@@ -1,11 +1,11 @@
|
1
|
|
-var EventEmitter = require("events");
|
2
|
|
-var RTCEvents = require('./service/RTC/RTCEvents');
|
3
|
|
-import RTC from "./modules/RTC/RTC";
|
4
|
|
-import * as MediaType from './service/RTC/MediaType';
|
|
1
|
+import EventEmitter from "events";
|
5
|
2
|
import * as JitsiMediaDevicesEvents from "./JitsiMediaDevicesEvents";
|
6
|
|
-var Statistics = require("./modules/statistics/statistics");
|
|
3
|
+import * as MediaType from './service/RTC/MediaType';
|
|
4
|
+import RTC from "./modules/RTC/RTC";
|
|
5
|
+import RTCEvents from "./service/RTC/RTCEvents";
|
|
6
|
+import Statistics from "./modules/statistics/statistics";
|
7
|
7
|
|
8
|
|
-var eventEmitter = new EventEmitter();
|
|
8
|
+const eventEmitter = new EventEmitter();
|
9
|
9
|
|
10
|
10
|
RTC.addListener(RTCEvents.DEVICE_LIST_CHANGED,
|
11
|
11
|
function (devices) {
|