vani-meeting-client 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseVideoCallHandler } from "./BaseVideoCallHandler";
|
|
2
2
|
import { WebSocketMessageBody } from "../websocket-handler/WebsocketHandler";
|
|
3
3
|
import { Track } from "../model/Track";
|
|
4
|
+
import { MeetingStartRequest } from '..';
|
|
5
|
+
import { CommunicationHandler } from '../inter-communication-handler/CommunicationHandler';
|
|
4
6
|
export declare class SFUHandler extends BaseVideoCallHandler {
|
|
5
7
|
private device;
|
|
6
8
|
private transportCallBacks;
|
|
@@ -12,6 +14,7 @@ export declare class SFUHandler extends BaseVideoCallHandler {
|
|
|
12
14
|
private consumers;
|
|
13
15
|
private dataProducers;
|
|
14
16
|
private dataConsumer;
|
|
17
|
+
constructor(_meetingStartRequest: MeetingStartRequest, _communicationHandler: CommunicationHandler);
|
|
15
18
|
onReconnect(): Promise<void>;
|
|
16
19
|
stopTrack(track: Track): void;
|
|
17
20
|
pauseTrack(track: Track): void;
|
|
@@ -62,14 +62,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
62
62
|
};
|
|
63
63
|
import log from 'loglevel';
|
|
64
64
|
import { BaseVideoCallHandler } from "./BaseVideoCallHandler";
|
|
65
|
-
import { Device } from 'mediasoup-client';
|
|
65
|
+
import { detectDevice, Device } from 'mediasoup-client';
|
|
66
66
|
import { SFUMessageType } from "../websocket-handler/WebsocketHandler";
|
|
67
67
|
import { Track, TrackKind } from "../model/Track";
|
|
68
68
|
import { VaniEvent } from '..';
|
|
69
69
|
var SFUHandler = /** @class */ (function (_super) {
|
|
70
70
|
__extends(SFUHandler, _super);
|
|
71
|
-
function SFUHandler() {
|
|
72
|
-
var _this = _super
|
|
71
|
+
function SFUHandler(_meetingStartRequest, _communicationHandler) {
|
|
72
|
+
var _this = _super.call(this, _meetingStartRequest, _communicationHandler) || this;
|
|
73
73
|
_this.device = new Device();
|
|
74
74
|
_this.transportCallBacks = {};
|
|
75
75
|
_this.isProduceTrackIntialWorkDone = false;
|
|
@@ -77,6 +77,13 @@ var SFUHandler = /** @class */ (function (_super) {
|
|
|
77
77
|
_this.consumers = [];
|
|
78
78
|
_this.dataProducers = [];
|
|
79
79
|
_this.dataConsumer = [];
|
|
80
|
+
var handlerName = detectDevice();
|
|
81
|
+
if (handlerName) {
|
|
82
|
+
console.log("detected handler: %s", handlerName);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
console.warn("no suitable handler found for current browser/device");
|
|
86
|
+
}
|
|
80
87
|
return _this;
|
|
81
88
|
}
|
|
82
89
|
SFUHandler.prototype.onReconnect = function () {
|