@microsoft/live-share-media 0.5.1 → 1.0.0-preview.3
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/.nycrc.json +10 -10
- package/.vscode/launch.json +29 -0
- package/.vscode/settings.json +2 -0
- package/LICENSE +86 -86
- package/README.md +138 -137
- package/bin/IMediaPlayer.d.ts.map +1 -1
- package/bin/{EphemeralMediaSession.d.ts → LiveMediaSession.d.ts} +14 -21
- package/bin/LiveMediaSession.d.ts.map +1 -0
- package/bin/{EphemeralMediaSession.js → LiveMediaSession.js} +39 -37
- package/bin/LiveMediaSession.js.map +1 -0
- package/bin/{EphemeralMediaSessionCoordinator.d.ts → LiveMediaSessionCoordinator.d.ts} +5 -5
- package/bin/LiveMediaSessionCoordinator.d.ts.map +1 -0
- package/bin/{EphemeralMediaSessionCoordinator.js → LiveMediaSessionCoordinator.js} +60 -48
- package/bin/LiveMediaSessionCoordinator.js.map +1 -0
- package/bin/{EphemeralMediaSessionCoordinatorSuspension.d.ts → LiveMediaSessionCoordinatorSuspension.d.ts} +3 -3
- package/bin/LiveMediaSessionCoordinatorSuspension.d.ts.map +1 -0
- package/bin/{EphemeralMediaSessionCoordinatorSuspension.js → LiveMediaSessionCoordinatorSuspension.js} +4 -4
- package/bin/LiveMediaSessionCoordinatorSuspension.js.map +1 -0
- package/bin/MediaPlayerSynchronizer.d.ts +11 -11
- package/bin/MediaPlayerSynchronizer.d.ts.map +1 -1
- package/bin/MediaPlayerSynchronizer.js +132 -75
- package/bin/MediaPlayerSynchronizer.js.map +1 -1
- package/bin/MediaSessionActionThrottler.d.ts +1 -1
- package/bin/MediaSessionActionThrottler.d.ts.map +1 -1
- package/bin/MediaSessionActionThrottler.js.map +1 -1
- package/bin/MediaSessionExtensions.d.ts.map +1 -1
- package/bin/RepeatedActionThrottler.d.ts +2 -2
- package/bin/RepeatedActionThrottler.d.ts.map +1 -1
- package/bin/RepeatedActionThrottler.js +9 -3
- package/bin/RepeatedActionThrottler.js.map +1 -1
- package/bin/VolumeManager.d.ts +84 -0
- package/bin/VolumeManager.d.ts.map +1 -0
- package/bin/VolumeManager.js +175 -0
- package/bin/VolumeManager.js.map +1 -0
- package/bin/index.d.ts +9 -9
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +4 -4
- package/bin/index.js.map +1 -1
- package/bin/internals/GroupCoordinatorState.d.ts +12 -12
- package/bin/internals/GroupCoordinatorState.d.ts.map +1 -1
- package/bin/internals/GroupCoordinatorState.js +94 -56
- package/bin/internals/GroupCoordinatorState.js.map +1 -1
- package/bin/internals/GroupPlaybackPosition.d.ts +3 -3
- package/bin/internals/GroupPlaybackPosition.d.ts.map +1 -1
- package/bin/internals/GroupPlaybackPosition.js +24 -15
- package/bin/internals/GroupPlaybackPosition.js.map +1 -1
- package/bin/internals/GroupPlaybackTrack.d.ts +4 -4
- package/bin/internals/GroupPlaybackTrack.d.ts.map +1 -1
- package/bin/internals/GroupPlaybackTrack.js +14 -4
- package/bin/internals/GroupPlaybackTrack.js.map +1 -1
- package/bin/internals/GroupPlaybackTrackData.d.ts +3 -3
- package/bin/internals/GroupPlaybackTrackData.d.ts.map +1 -1
- package/bin/internals/GroupPlaybackTrackData.js +8 -4
- package/bin/internals/GroupPlaybackTrackData.js.map +1 -1
- package/bin/internals/GroupTransportState.d.ts +5 -5
- package/bin/internals/GroupTransportState.d.ts.map +1 -1
- package/bin/internals/GroupTransportState.js +28 -13
- package/bin/internals/GroupTransportState.js.map +1 -1
- package/bin/internals/consts.d.ts.map +1 -1
- package/bin/internals/consts.js +54 -54
- package/bin/internals/consts.js.map +1 -1
- package/bin/internals/index.d.ts +6 -6
- package/package.json +38 -38
- package/src/IMediaPlayer.ts +29 -21
- package/src/LiveMediaSession.ts +300 -0
- package/src/LiveMediaSessionCoordinator.ts +621 -0
- package/src/{EphemeralMediaSessionCoordinatorSuspension.ts → LiveMediaSessionCoordinatorSuspension.ts} +39 -31
- package/src/MediaPlayerSynchronizer.ts +627 -450
- package/src/MediaSessionActionThrottler.ts +16 -14
- package/src/MediaSessionExtensions.ts +52 -42
- package/src/RepeatedActionThrottler.ts +74 -56
- package/src/VolumeManager.ts +197 -0
- package/src/index.ts +14 -15
- package/src/internals/GroupCoordinatorState.ts +606 -446
- package/src/internals/GroupPlaybackPosition.ts +227 -193
- package/src/internals/GroupPlaybackTrack.ts +176 -147
- package/src/internals/GroupPlaybackTrackData.ts +98 -90
- package/src/internals/GroupTransportState.ts +157 -127
- package/src/internals/consts.ts +98 -80
- package/src/internals/index.ts +11 -11
- package/src/test/GroupPlaybackPosition.spec.ts +600 -340
- package/src/test/GroupPlaybackTrack.spec.ts +122 -66
- package/src/test/SharedMediaSession.spec.ts +149 -113
- package/src/test/SharedMediaSessionCoordinator.spec.ts +271 -231
- package/src/test/VolumeManager.spec.ts +219 -0
- package/tsconfig.build.json +8 -8
- package/tsconfig.json +76 -75
- package/bin/EphemeralMediaSession.d.ts.map +0 -1
- package/bin/EphemeralMediaSession.js.map +0 -1
- package/bin/EphemeralMediaSessionCoordinator.d.ts.map +0 -1
- package/bin/EphemeralMediaSessionCoordinator.js.map +0 -1
- package/bin/EphemeralMediaSessionCoordinatorSuspension.d.ts.map +0 -1
- package/bin/EphemeralMediaSessionCoordinatorSuspension.js.map +0 -1
- package/bin/VolumeLimiter.d.ts +0 -70
- package/bin/VolumeLimiter.d.ts.map +0 -1
- package/bin/VolumeLimiter.js +0 -170
- package/bin/VolumeLimiter.js.map +0 -1
- package/src/EphemeralMediaSession.ts +0 -248
- package/src/EphemeralMediaSessionCoordinator.ts +0 -461
- package/src/VolumeLimiter.ts +0 -182
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { strict as assert } from "assert";
|
|
2
|
+
import { IMediaPlayer } from "../IMediaPlayer";
|
|
3
|
+
import { LimitLevelType, VolumeManager } from "../VolumeManager";
|
|
4
|
+
import { Deferred } from "@microsoft/live-share/src/test/Deferred";
|
|
5
|
+
|
|
6
|
+
describe("VolumeManager", () => {
|
|
7
|
+
it("should ramp down volume", async () => {
|
|
8
|
+
const testAwait = new Deferred();
|
|
9
|
+
const player = new TestMediaPlayer();
|
|
10
|
+
player.volume = 1.0;
|
|
11
|
+
const volumeManager = new VolumeManager(player);
|
|
12
|
+
|
|
13
|
+
assert(player.volume == 1.0);
|
|
14
|
+
volumeManager.startLimiting();
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
// check volume at halfway point
|
|
17
|
+
assert(player.volume > 0.4);
|
|
18
|
+
assert(player.volume < 0.6);
|
|
19
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
20
|
+
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
// check volume at end with 20ms of leeway
|
|
23
|
+
assert(player.volume == volumeManager.limitLevel);
|
|
24
|
+
testAwait.resolve();
|
|
25
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
26
|
+
|
|
27
|
+
await testAwait.promise;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it("should ramp up volume", async () => {
|
|
31
|
+
const testAwait = new Deferred();
|
|
32
|
+
const player = new TestMediaPlayer();
|
|
33
|
+
player.volume = 1.0;
|
|
34
|
+
const volumeManager = new VolumeManager(player);
|
|
35
|
+
|
|
36
|
+
// limit at start
|
|
37
|
+
volumeManager.startLimiting();
|
|
38
|
+
|
|
39
|
+
// when limited all the way, test ramp up
|
|
40
|
+
setTimeout(() => {
|
|
41
|
+
assert(player.volume == volumeManager.limitLevel);
|
|
42
|
+
volumeManager.stopLimiting();
|
|
43
|
+
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
// check volume at halfway point
|
|
46
|
+
assert(player.volume > 0.4);
|
|
47
|
+
assert(player.volume < 0.6);
|
|
48
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
49
|
+
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
// check volume at end with 20ms of leeway
|
|
52
|
+
assert(player.volume == volumeManager.volume);
|
|
53
|
+
testAwait.resolve();
|
|
54
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
55
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
56
|
+
|
|
57
|
+
await testAwait.promise;
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("should ramp down halfway, then ramp up", async () => {
|
|
61
|
+
const testAwait = new Deferred();
|
|
62
|
+
const player = new TestMediaPlayer();
|
|
63
|
+
player.volume = 1.0;
|
|
64
|
+
|
|
65
|
+
const volumeManager = new VolumeManager(player);
|
|
66
|
+
|
|
67
|
+
volumeManager.startLimiting();
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
// check volume at halfway point, begin ramping other direction
|
|
70
|
+
assert(player.volume > 0.4);
|
|
71
|
+
assert(player.volume < 0.6);
|
|
72
|
+
volumeManager.stopLimiting();
|
|
73
|
+
|
|
74
|
+
setTimeout(() => {
|
|
75
|
+
// check volume at end with 20ms of leeway
|
|
76
|
+
assert(player.volume == volumeManager.volume);
|
|
77
|
+
testAwait.resolve();
|
|
78
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
79
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
80
|
+
|
|
81
|
+
await testAwait.promise;
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
it("ramp using selected volume", async () => {
|
|
85
|
+
const testAwait = new Deferred();
|
|
86
|
+
const player = new TestMediaPlayer();
|
|
87
|
+
player.volume = 1.0;
|
|
88
|
+
|
|
89
|
+
const volumeManager = new VolumeManager(player);
|
|
90
|
+
|
|
91
|
+
volumeManager.volume = 0.3;
|
|
92
|
+
setTimeout(() => {
|
|
93
|
+
// check volume at halfway point
|
|
94
|
+
assert(player.volume > 0.6);
|
|
95
|
+
assert(player.volume < 0.7);
|
|
96
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
97
|
+
|
|
98
|
+
setTimeout(() => {
|
|
99
|
+
// check volume at end with 20ms of leeway
|
|
100
|
+
assert(player.volume == volumeManager.volume);
|
|
101
|
+
testAwait.resolve();
|
|
102
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
103
|
+
|
|
104
|
+
await testAwait.promise;
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
it("enable limit, change selected volume, then disable limit", async () => {
|
|
108
|
+
const testAwait = new Deferred();
|
|
109
|
+
const player = new TestMediaPlayer();
|
|
110
|
+
player.volume = 1.0;
|
|
111
|
+
const volumeManager = new VolumeManager(player);
|
|
112
|
+
|
|
113
|
+
volumeManager.startLimiting();
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
// check volume at halfway point, begin ramping other direction with lower selected volume
|
|
116
|
+
assert(player.volume > 0.4);
|
|
117
|
+
assert(player.volume < 0.6);
|
|
118
|
+
|
|
119
|
+
volumeManager.volume = 0.7;
|
|
120
|
+
volumeManager.stopLimiting();
|
|
121
|
+
|
|
122
|
+
setTimeout(() => {
|
|
123
|
+
// check volume at end with 20ms of leeway
|
|
124
|
+
assert(player.volume === volumeManager.volume);
|
|
125
|
+
testAwait.resolve();
|
|
126
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
127
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
128
|
+
|
|
129
|
+
await testAwait.promise;
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
it("ramp down with selected volume to 0.3, then up to 0.8", async () => {
|
|
133
|
+
const testAwait = new Deferred();
|
|
134
|
+
const player = new TestMediaPlayer();
|
|
135
|
+
player.volume = 1.0;
|
|
136
|
+
|
|
137
|
+
const volumeManager = new VolumeManager(player);
|
|
138
|
+
volumeManager.volume = 0.3;
|
|
139
|
+
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
// check volume at halfway point
|
|
142
|
+
assert(player.volume > 0.6);
|
|
143
|
+
assert(player.volume < 0.7);
|
|
144
|
+
volumeManager.volume = 0.8;
|
|
145
|
+
|
|
146
|
+
setTimeout(() => {
|
|
147
|
+
// check volume at end with 20ms of leeway
|
|
148
|
+
assert(player.volume == volumeManager.volume);
|
|
149
|
+
testAwait.resolve();
|
|
150
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
151
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
152
|
+
|
|
153
|
+
await testAwait.promise;
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
it("test 50% limiting", async () => {
|
|
157
|
+
const testAwait = new Deferred();
|
|
158
|
+
const player = new TestMediaPlayer();
|
|
159
|
+
player.volume = 1.0;
|
|
160
|
+
|
|
161
|
+
const volumeManager = new VolumeManager(player);
|
|
162
|
+
volumeManager.limitLevelType = LimitLevelType.percentage;
|
|
163
|
+
volumeManager.limitLevel = 0.5;
|
|
164
|
+
|
|
165
|
+
volumeManager.startLimiting();
|
|
166
|
+
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
// check volume at halfway point
|
|
169
|
+
assert(player.volume > 0.7);
|
|
170
|
+
assert(player.volume < 0.8);
|
|
171
|
+
}, (volumeManager.volumeChangeDuration * 1000) / 2);
|
|
172
|
+
|
|
173
|
+
setTimeout(() => {
|
|
174
|
+
// check volume at end with 20ms of leeway
|
|
175
|
+
assert(
|
|
176
|
+
player.volume == volumeManager.limitLevel * volumeManager.volume
|
|
177
|
+
);
|
|
178
|
+
testAwait.resolve();
|
|
179
|
+
}, volumeManager.volumeChangeDuration * 1000 + 20);
|
|
180
|
+
|
|
181
|
+
await testAwait.promise;
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
// test implementation
|
|
186
|
+
class TestMediaPlayer implements IMediaPlayer {
|
|
187
|
+
currentSrc: string;
|
|
188
|
+
currentTime: number;
|
|
189
|
+
duration: number;
|
|
190
|
+
ended: boolean;
|
|
191
|
+
muted: boolean;
|
|
192
|
+
paused: boolean;
|
|
193
|
+
playbackRate: number;
|
|
194
|
+
src: string;
|
|
195
|
+
volume: number;
|
|
196
|
+
load(): void {
|
|
197
|
+
throw new Error("Method not implemented.");
|
|
198
|
+
}
|
|
199
|
+
pause(): void {
|
|
200
|
+
throw new Error("Method not implemented.");
|
|
201
|
+
}
|
|
202
|
+
play(): Promise<void> {
|
|
203
|
+
throw new Error("Method not implemented.");
|
|
204
|
+
}
|
|
205
|
+
addEventListener(
|
|
206
|
+
type: string,
|
|
207
|
+
listener: EventListenerOrEventListenerObject,
|
|
208
|
+
options?: boolean | AddEventListenerOptions | undefined
|
|
209
|
+
): void {
|
|
210
|
+
throw new Error("Method not implemented.");
|
|
211
|
+
}
|
|
212
|
+
removeEventListener(
|
|
213
|
+
type: string,
|
|
214
|
+
listener: EventListenerOrEventListenerObject,
|
|
215
|
+
options?: boolean | EventListenerOptions | undefined
|
|
216
|
+
): void {
|
|
217
|
+
throw new Error("Method not implemented.");
|
|
218
|
+
}
|
|
219
|
+
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
5
|
-
},
|
|
6
|
-
"exclude": [
|
|
7
|
-
"test/**/*.ts"
|
|
8
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
5
|
+
},
|
|
6
|
+
"exclude": [
|
|
7
|
+
"test/**/*.ts"
|
|
8
|
+
]
|
|
9
9
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,75 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Basic Options */
|
|
6
|
-
// "incremental": true, /* Enable incremental compilation */
|
|
7
|
-
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
8
|
-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
9
|
-
"lib": ["es2020","DOM"], /* Specify library files to be included in the compilation. */
|
|
10
|
-
"allowJs": false, /* Allow javascript files to be compiled. */
|
|
11
|
-
// "checkJs": true, /* Report errors in .js files. */
|
|
12
|
-
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
13
|
-
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
14
|
-
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
15
|
-
"sourceMap": true, /* Generates corresponding '.map' file. */
|
|
16
|
-
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
17
|
-
"outDir": "./bin", /* Redirect output structure to the directory. */
|
|
18
|
-
// "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
19
|
-
// "composite": true, /* Enable project compilation */
|
|
20
|
-
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
21
|
-
// "removeComments": true, /* Do not emit comments to output. */
|
|
22
|
-
// "noEmit": true, /* Do not emit outputs. */
|
|
23
|
-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
24
|
-
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
25
|
-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
26
|
-
|
|
27
|
-
/* Strict Type-Checking Options */
|
|
28
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
29
|
-
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
30
|
-
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
31
|
-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
32
|
-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
33
|
-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
34
|
-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
35
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
36
|
-
|
|
37
|
-
/* Additional Checks */
|
|
38
|
-
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
39
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
40
|
-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
41
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
42
|
-
|
|
43
|
-
/* Module Resolution Options */
|
|
44
|
-
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
45
|
-
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
46
|
-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
47
|
-
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
48
|
-
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
49
|
-
// "types": [], /* Type declaration files to be included in compilation. */
|
|
50
|
-
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
51
|
-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
52
|
-
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
53
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
54
|
-
|
|
55
|
-
/* Source Map Options */
|
|
56
|
-
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
57
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
58
|
-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
59
|
-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
60
|
-
|
|
61
|
-
/* Experimental Options */
|
|
62
|
-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
63
|
-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
64
|
-
|
|
65
|
-
/* Advanced Options */
|
|
66
|
-
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
67
|
-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
68
|
-
},
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
|
+
|
|
5
|
+
/* Basic Options */
|
|
6
|
+
// "incremental": true, /* Enable incremental compilation */
|
|
7
|
+
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
8
|
+
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
9
|
+
"lib": ["es2020","DOM"], /* Specify library files to be included in the compilation. */
|
|
10
|
+
"allowJs": false, /* Allow javascript files to be compiled. */
|
|
11
|
+
// "checkJs": true, /* Report errors in .js files. */
|
|
12
|
+
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
13
|
+
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
14
|
+
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
15
|
+
"sourceMap": true, /* Generates corresponding '.map' file. */
|
|
16
|
+
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
17
|
+
"outDir": "./bin", /* Redirect output structure to the directory. */
|
|
18
|
+
// "rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
19
|
+
// "composite": true, /* Enable project compilation */
|
|
20
|
+
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
21
|
+
// "removeComments": true, /* Do not emit comments to output. */
|
|
22
|
+
// "noEmit": true, /* Do not emit outputs. */
|
|
23
|
+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
24
|
+
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
25
|
+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
26
|
+
|
|
27
|
+
/* Strict Type-Checking Options */
|
|
28
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
29
|
+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
30
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
31
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
32
|
+
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
33
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
34
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
35
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
36
|
+
|
|
37
|
+
/* Additional Checks */
|
|
38
|
+
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
39
|
+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
40
|
+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
41
|
+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
42
|
+
|
|
43
|
+
/* Module Resolution Options */
|
|
44
|
+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
45
|
+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
46
|
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
47
|
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
48
|
+
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
49
|
+
// "types": [], /* Type declaration files to be included in compilation. */
|
|
50
|
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
51
|
+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
52
|
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
53
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
54
|
+
|
|
55
|
+
/* Source Map Options */
|
|
56
|
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
57
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
58
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
59
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
60
|
+
|
|
61
|
+
/* Experimental Options */
|
|
62
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
63
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
64
|
+
|
|
65
|
+
/* Advanced Options */
|
|
66
|
+
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
67
|
+
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
68
|
+
},
|
|
69
|
+
"exclude": ["build", "dist", "node_modules"],
|
|
70
|
+
"include": [
|
|
71
|
+
"test/**/*.ts"
|
|
72
|
+
],
|
|
73
|
+
"files": [
|
|
74
|
+
"src/index.ts"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EphemeralMediaSession.d.ts","sourceRoot":"","sources":["../src/EphemeralMediaSession.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAiC,0BAA0B,EAAqC,MAAM,0BAA0B,CAAC;AACxI,OAAO,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACzG,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACF,qBAAa,qBAAsB,SAAQ,UAAU;IAClD,OAAO,CAAC,gBAAgB,CAA8D;IACtF,OAAO,CAAC,OAAO,CAAC,CAA2B;IAC3C,OAAO,CAAC,0BAA0B,CAAC,CAA0B;IAC7D,OAAO,CAAC,YAAY,CAAC,CAAmC;IACxD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAqD;IACrF,OAAO,CAAC,cAAc,CAAC,CAA0B;IAGjD,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,eAAe,CAAa;IAEpC;;OAEG;IACF,gBAAuB,QAA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AAG,IAAI;CAGpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EphemeralMediaSessionCoordinatorSuspension.js","sourceRoot":"","sources":["../src/EphemeralMediaSessionCoordinatorSuspension.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,MAAa,0CAA0C;IAInD,YAAY,SAA0C,EAAE,KAAgC;QACpF,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,IAAW,SAAS;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,GAAG,CAAC,MAAe;QACtB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;CACJ;AAvBD,gGAuBC"}
|
package/bin/VolumeLimiter.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the Microsoft Live Share SDK License.
|
|
4
|
-
*/
|
|
5
|
-
import { IMediaPlayer } from './IMediaPlayer';
|
|
6
|
-
export declare enum LevelType {
|
|
7
|
-
fixed = 0,
|
|
8
|
-
percentage = 1
|
|
9
|
-
}
|
|
10
|
-
export declare class VolumeLimiter {
|
|
11
|
-
private readonly _player;
|
|
12
|
-
private readonly _duration;
|
|
13
|
-
private readonly _rampDownDuration;
|
|
14
|
-
private readonly _rampUpDuration;
|
|
15
|
-
private _level;
|
|
16
|
-
private _levelType;
|
|
17
|
-
private _running;
|
|
18
|
-
private _endTime;
|
|
19
|
-
private _startTime;
|
|
20
|
-
private _startVolume;
|
|
21
|
-
private _inRamp;
|
|
22
|
-
constructor(player: IMediaPlayer);
|
|
23
|
-
/**
|
|
24
|
-
* Time, in seconds, that the volume should be lowered.
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* Applications should periodically call `lowerVolume()` to keep the volume lowered.
|
|
28
|
-
*/
|
|
29
|
-
get duration(): number;
|
|
30
|
-
set duration(value: number);
|
|
31
|
-
/**
|
|
32
|
-
* Target level to lower volume to.
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Expressed as a value between 0.0 and 1.0. The value is applied based upon the configured
|
|
36
|
-
* `levelType`. The default value is 0.2.
|
|
37
|
-
*
|
|
38
|
-
* For a level type of `LevelType.fixed` the value is the exact level the volume will be
|
|
39
|
-
* lowered to. The default value of 0.2 would cause the volume to be lowered to 0.2.
|
|
40
|
-
*
|
|
41
|
-
* For a level type of `LevelType.percentage` the value is the percentage by which the volume
|
|
42
|
-
* level should be lowered to. The default value of 0.2 would cause the volume to be lowered
|
|
43
|
-
* to 20% of its starting value.
|
|
44
|
-
*/
|
|
45
|
-
get level(): number;
|
|
46
|
-
set level(value: number);
|
|
47
|
-
/**
|
|
48
|
-
* The type of level represented by the `level` property.
|
|
49
|
-
*/
|
|
50
|
-
get levelType(): LevelType;
|
|
51
|
-
set levelType(value: LevelType);
|
|
52
|
-
/**
|
|
53
|
-
* Amount of time, in seconds, it should take to ramp the volume down to the desired level.
|
|
54
|
-
*/
|
|
55
|
-
get rampDownDuration(): number;
|
|
56
|
-
set rampDownDuration(value: number);
|
|
57
|
-
/**
|
|
58
|
-
* Amount of time, in seconds, it should take to ramp the volume back up to the original level.
|
|
59
|
-
*/
|
|
60
|
-
get rampUpDuration(): number;
|
|
61
|
-
set rampUpDuration(value: number);
|
|
62
|
-
/**
|
|
63
|
-
* Temporarily lowers an audio sources volume.
|
|
64
|
-
*/
|
|
65
|
-
lowerVolume(): void;
|
|
66
|
-
private startLimiter;
|
|
67
|
-
private scheduleAnimationFrame;
|
|
68
|
-
private computeTargetVolume;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=VolumeLimiter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VolumeLimiter.d.ts","sourceRoot":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