@webex/media-helpers 3.0.0-next.19 → 3.0.0-next.20
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/dist/webrtc-core.d.ts +0 -14
- package/dist/webrtc-core.js +0 -18
- package/package.json +4 -4
- package/src/webrtc-core.ts +2 -22
- package/test/unit/spec/webrtc-core.js +1 -1
package/dist/webrtc-core.d.ts
CHANGED
|
@@ -22,13 +22,6 @@ declare class _LocalMicrophoneStream extends WcmeLocalMicrophoneStream {
|
|
|
22
22
|
*/
|
|
23
23
|
isUnmuteAllowed(): boolean;
|
|
24
24
|
setMuted(muted: boolean): void;
|
|
25
|
-
toJSON(): {
|
|
26
|
-
id: string;
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
label: string;
|
|
29
|
-
readyState: string;
|
|
30
|
-
numEnabledEffects: number;
|
|
31
|
-
};
|
|
32
25
|
}
|
|
33
26
|
declare class _LocalCameraStream extends WcmeLocalCameraStream {
|
|
34
27
|
private unmuteAllowed;
|
|
@@ -38,13 +31,6 @@ declare class _LocalCameraStream extends WcmeLocalCameraStream {
|
|
|
38
31
|
*/
|
|
39
32
|
isUnmuteAllowed(): boolean;
|
|
40
33
|
setMuted(muted: boolean): void;
|
|
41
|
-
toJSON(): {
|
|
42
|
-
id: string;
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
label: string;
|
|
45
|
-
readyState: string;
|
|
46
|
-
numEnabledEffects: number;
|
|
47
|
-
};
|
|
48
34
|
}
|
|
49
35
|
export declare const createMicrophoneStream: (constraints?: AudioDeviceConstraints) => Promise<{
|
|
50
36
|
on<K extends LocalMicrophoneStreamEventNames.ServerMuted, E extends LocalMicrophoneStreamEvents[K] extends infer T ? T extends LocalMicrophoneStreamEvents[K] ? T extends TypedEvent<infer X extends (...args: any[]) => void> ? X : never : never : never>(eventName: K, handler: E): void;
|
package/dist/webrtc-core.js
CHANGED
|
@@ -98,15 +98,6 @@ class _LocalMicrophoneStream extends _internalMediaCore.LocalMicrophoneStream {
|
|
|
98
98
|
this[LocalMicrophoneStreamEventNames.ServerMuted].emit(muted, reason);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
toJSON() {
|
|
102
|
-
return {
|
|
103
|
-
id: this.id,
|
|
104
|
-
enabled: this.inputTrack?.enabled,
|
|
105
|
-
label: this.label,
|
|
106
|
-
readyState: this.readyState,
|
|
107
|
-
numEnabledEffects: this.getEffects().filter(item => item.isEnabled).length
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
101
|
}
|
|
111
102
|
class _LocalCameraStream extends _internalMediaCore.LocalCameraStream {
|
|
112
103
|
unmuteAllowed = true;
|
|
@@ -143,15 +134,6 @@ class _LocalCameraStream extends _internalMediaCore.LocalCameraStream {
|
|
|
143
134
|
this[LocalCameraStreamEventNames.ServerMuted].emit(muted, reason);
|
|
144
135
|
}
|
|
145
136
|
}
|
|
146
|
-
toJSON() {
|
|
147
|
-
return {
|
|
148
|
-
id: this.id,
|
|
149
|
-
enabled: this.inputTrack?.enabled,
|
|
150
|
-
label: this.label,
|
|
151
|
-
readyState: this.readyState,
|
|
152
|
-
numEnabledEffects: this.getEffects().filter(item => item.isEnabled).length
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
137
|
}
|
|
156
138
|
const createMicrophoneStream = constraints => (0, _internalMediaCore.createMicrophoneStream)(LocalMicrophoneStream, constraints);
|
|
157
139
|
exports.createMicrophoneStream = createMicrophoneStream;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"deploy:npm": "yarn npm publish"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@webex/internal-media-core": "2.2.
|
|
26
|
+
"@webex/internal-media-core": "2.2.6",
|
|
27
27
|
"@webex/ts-events": "^1.1.0",
|
|
28
28
|
"@webex/web-media-effects": "^2.15.6"
|
|
29
29
|
},
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
40
40
|
"@webex/jest-config-legacy": "0.0.0",
|
|
41
41
|
"@webex/legacy-tools": "0.0.0",
|
|
42
|
-
"@webex/test-helper-chai": "2.60.
|
|
43
|
-
"@webex/test-helper-mock-webex": "2.60.
|
|
42
|
+
"@webex/test-helper-chai": "2.60.1-next.1",
|
|
43
|
+
"@webex/test-helper-mock-webex": "2.60.1-next.1",
|
|
44
44
|
"eslint": "^8.24.0",
|
|
45
45
|
"sinon": "^9.2.4"
|
|
46
46
|
},
|
|
47
|
-
"version": "3.0.0-next.
|
|
47
|
+
"version": "3.0.0-next.20"
|
|
48
48
|
}
|
package/src/webrtc-core.ts
CHANGED
|
@@ -63,7 +63,7 @@ class _LocalMicrophoneStream extends WcmeLocalMicrophoneStream {
|
|
|
63
63
|
/**
|
|
64
64
|
* @internal
|
|
65
65
|
*/
|
|
66
|
-
setUnmuteAllowed(allowed) {
|
|
66
|
+
setUnmuteAllowed(allowed: boolean) {
|
|
67
67
|
this.unmuteAllowed = allowed;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -93,16 +93,6 @@ class _LocalMicrophoneStream extends WcmeLocalMicrophoneStream {
|
|
|
93
93
|
this[LocalMicrophoneStreamEventNames.ServerMuted].emit(muted, reason);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
toJSON() {
|
|
98
|
-
return {
|
|
99
|
-
id: this.id,
|
|
100
|
-
enabled: this.inputTrack?.enabled,
|
|
101
|
-
label: this.label,
|
|
102
|
-
readyState: this.readyState,
|
|
103
|
-
numEnabledEffects: this.getEffects().filter((item) => item.isEnabled).length,
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
96
|
}
|
|
107
97
|
|
|
108
98
|
class _LocalCameraStream extends WcmeLocalCameraStream {
|
|
@@ -115,7 +105,7 @@ class _LocalCameraStream extends WcmeLocalCameraStream {
|
|
|
115
105
|
/**
|
|
116
106
|
* @internal
|
|
117
107
|
*/
|
|
118
|
-
setUnmuteAllowed(allowed) {
|
|
108
|
+
setUnmuteAllowed(allowed: boolean) {
|
|
119
109
|
this.unmuteAllowed = allowed;
|
|
120
110
|
}
|
|
121
111
|
|
|
@@ -145,16 +135,6 @@ class _LocalCameraStream extends WcmeLocalCameraStream {
|
|
|
145
135
|
this[LocalCameraStreamEventNames.ServerMuted].emit(muted, reason);
|
|
146
136
|
}
|
|
147
137
|
}
|
|
148
|
-
|
|
149
|
-
toJSON() {
|
|
150
|
-
return {
|
|
151
|
-
id: this.id,
|
|
152
|
-
enabled: this.inputTrack?.enabled,
|
|
153
|
-
label: this.label,
|
|
154
|
-
readyState: this.readyState,
|
|
155
|
-
numEnabledEffects: this.getEffects().filter((item) => item.isEnabled).length,
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
138
|
}
|
|
159
139
|
|
|
160
140
|
export const createMicrophoneStream = (constraints?: AudioDeviceConstraints) =>
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createMicrophoneStream,
|
|
12
12
|
createDisplayStream,
|
|
13
13
|
createDisplayStreamWithAudio,
|
|
14
|
-
} from '
|
|
14
|
+
} from '@webex/media-helpers';
|
|
15
15
|
import * as wcmestreams from '@webex/internal-media-core';
|
|
16
16
|
|
|
17
17
|
describe('media-helpers', () => {
|