vani-meeting-client 0.5.2 → 0.5.5
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.
package/lib/MeetingHandler.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class MeetingHandler {
|
|
|
22
22
|
muteUser(userId?: string): Promise<TaskResponse>;
|
|
23
23
|
resumeCamera(userId?: string): Promise<TaskResponse>;
|
|
24
24
|
unmute(userId?: string): Promise<TaskResponse>;
|
|
25
|
-
|
|
25
|
+
resumeStreamWithoutAdding(streamKind: TrackKind): TaskResponse | undefined;
|
|
26
26
|
pauseStreamWithoutStopping(streamKind: TrackKind): TaskResponse | undefined;
|
|
27
27
|
stopTrack(track: Track): void;
|
|
28
28
|
addCustomTrack(track: Track): void;
|
package/lib/MeetingHandler.js
CHANGED
|
@@ -227,9 +227,9 @@ var MeetingHandler = /** @class */ (function () {
|
|
|
227
227
|
});
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
|
-
MeetingHandler.prototype.
|
|
230
|
+
MeetingHandler.prototype.resumeStreamWithoutAdding = function (streamKind) {
|
|
231
231
|
var _a;
|
|
232
|
-
return (_a = this.userMediaHandler) === null || _a === void 0 ? void 0 : _a.
|
|
232
|
+
return (_a = this.userMediaHandler) === null || _a === void 0 ? void 0 : _a.resumeStreamWithoutAdding(streamKind);
|
|
233
233
|
};
|
|
234
234
|
MeetingHandler.prototype.pauseStreamWithoutStopping = function (streamKind) {
|
|
235
235
|
var _a;
|
|
@@ -32,5 +32,5 @@ export declare class UserMediaHandler extends Base {
|
|
|
32
32
|
resumeCamera(userId?: string): Promise<TaskResponse>;
|
|
33
33
|
unmute(userId?: string): Promise<TaskResponse>;
|
|
34
34
|
pauseStreamWithoutStopping(streamKind: TrackKind): TaskResponse;
|
|
35
|
-
|
|
35
|
+
resumeStreamWithoutAdding(streamKind: TrackKind): TaskResponse;
|
|
36
36
|
}
|
|
@@ -457,6 +457,7 @@ var UserMediaHandler = /** @class */ (function (_super) {
|
|
|
457
457
|
resolve({ message: "No Video In Devices", error: 'NoDevice', isSuccess: false });
|
|
458
458
|
return [2 /*return*/];
|
|
459
459
|
}
|
|
460
|
+
console.log("pauseCamera UserMediaHandler");
|
|
460
461
|
track = (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.getSelfTrackByType(TrackKind.Video);
|
|
461
462
|
if (track) {
|
|
462
463
|
if (track.track) {
|
|
@@ -519,6 +520,7 @@ var UserMediaHandler = /** @class */ (function (_super) {
|
|
|
519
520
|
resolve({ message: "No Audio In Devices", error: 'NoDevice', isSuccess: false });
|
|
520
521
|
return [2 /*return*/];
|
|
521
522
|
}
|
|
523
|
+
console.log("muteUser UserMediaHandler");
|
|
522
524
|
track = (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.getSelfTrackByType(TrackKind.Audio);
|
|
523
525
|
if (track) {
|
|
524
526
|
if (track.track) {
|
|
@@ -690,7 +692,7 @@ var UserMediaHandler = /** @class */ (function (_super) {
|
|
|
690
692
|
return ({ message: "No Track Found", error: 'NoDevice', isSuccess: false });
|
|
691
693
|
}
|
|
692
694
|
};
|
|
693
|
-
UserMediaHandler.prototype.
|
|
695
|
+
UserMediaHandler.prototype.resumeStreamWithoutAdding = function (streamKind) {
|
|
694
696
|
var _a, _b, _c;
|
|
695
697
|
var track = (_a = this.communicationHandler) === null || _a === void 0 ? void 0 : _a.getSelfTrackByType(streamKind);
|
|
696
698
|
if (track && track.track) {
|