@pexip/media 20.3.0 → 20.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @pexip/media
2
2
 
3
+ ## 20.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a93f6b9: Fix audio mixer muted state
8
+ - @pexip/media-control@20.3.3
9
+ - @pexip/media-processor@20.3.3
10
+
11
+ ## 20.3.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [aac2518]
16
+ - Updated dependencies [aac2518]
17
+ - @pexip/utils@17.1.1
18
+ - @pexip/signal@16.9.2
19
+ - @pexip/media-control@20.3.2
20
+ - @pexip/media-processor@20.3.2
21
+
22
+ ## 20.3.1
23
+
24
+ ### Patch Changes
25
+
26
+ - af038f3: Update Biome v2
27
+ - Updated dependencies [4068f02]
28
+ - Updated dependencies [a551f01]
29
+ - Updated dependencies [af038f3]
30
+ - @pexip/utils@17.1.0
31
+ - @pexip/signal@16.9.1
32
+ - @pexip/media-processor@20.3.1
33
+ - @pexip/media-control@20.3.1
34
+
3
35
  ## 20.3.0
4
36
 
5
37
  ### Minor Changes
@@ -162,13 +162,9 @@ export const createAudioMixingProcess = (getCurrentMedia, signals, label = PROCE
162
162
  prevMediaTrack.mute(toMute, soft);
163
163
  },
164
164
  get muted() {
165
- return (
166
- // If the source track muted, the following processed track will
167
- // be muted as well since there is no data to process
168
- !!prevMediaTrack.muted ||
169
- mainSource.node?.mediaStream
170
- .getAudioTracks()
171
- .some(track => track.enabled === false));
165
+ return mainSource.node?.mediaStream
166
+ .getAudioTracks()
167
+ .some(track => track.enabled === false);
172
168
  },
173
169
  constraints: prevMediaTrack.getConstraints(),
174
170
  applyConstraints,
@@ -373,7 +373,7 @@ export const createPreviewStreamController = ({ getCurrentDevices, getCurrentMed
373
373
  const audioSettings = extractFeaturesToConstraints(AUDIO_SETTINGS_KEYS, previewAudio);
374
374
  // Omit the width & height settings from the preview so that the one
375
375
  // from the main can be applied
376
- const { width, height, ...videoSettings } = extractFeaturesToConstraints(VIDEO_SETTINGS_KEYS, previewVideo);
376
+ const { width: _width, height: _height, ...videoSettings } = extractFeaturesToConstraints(VIDEO_SETTINGS_KEYS, previewVideo);
377
377
  logger.info({ audioInput, videoInput, audioSettings, videoSettings }, 'Apply changes to main');
378
378
  try {
379
379
  await replaceMainStream({
package/dist/userMedia.js CHANGED
@@ -473,7 +473,9 @@ export const createGetUserMediaProcess = ({ getCurrentDevices, getUserMedia, sco
473
473
  return async ({ constraints, permission, originalConstraints, currentMedia, }) => {
474
474
  // Release the current track(s)
475
475
  if (currentMedia) {
476
- await Promise.all(currentMedia.getTracks().map(track => {
476
+ await Promise.all(
477
+ // biome-ignore lint/suspicious/useIterableCallbackReturn: False positive
478
+ currentMedia.getTracks().map(track => {
477
479
  switch (track.kind) {
478
480
  case 'audioinput':
479
481
  // When the constraints is undefined we should do nothing
@@ -91,6 +91,8 @@ export const updateFeatureProps = (constraints, props) => {
91
91
  }
92
92
  return accm;
93
93
  }
94
+ default:
95
+ return accm;
94
96
  }
95
97
  }, {});
96
98
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pexip/media",
3
- "version": "20.3.0",
3
+ "version": "20.3.3",
4
4
  "description": "Home for media related stuff",
5
5
  "homepage": "https://gitlab.com/pexip/zoo",
6
6
  "bugs": "https://gitlab.com/pexip/zoo/issues",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://gitlab.com/pexip/zoo.git",
10
- "directory": "src/aquila/packages/media"
9
+ "url": "https://github.com/pexip/aquila.git",
10
+ "directory": "packages/media"
11
11
  },
12
12
  "type": "module",
13
13
  "license": "Apache-2.0",
@@ -44,23 +44,22 @@
44
44
  "typecheck": "yarn tsc --noEmit -p ."
45
45
  },
46
46
  "dependencies": {
47
- "@pexip/media-control": "20.3.0",
48
- "@pexip/media-processor": "20.3.0",
49
- "@pexip/signal": "16.9.0",
50
- "@pexip/utils": "17.0.1"
47
+ "@pexip/media-control": "20.3.3",
48
+ "@pexip/media-processor": "20.3.3",
49
+ "@pexip/signal": "16.9.2",
50
+ "@pexip/utils": "17.1.1"
51
51
  },
52
52
  "devDependencies": {
53
- "@jest/globals": "^29.7.0",
53
+ "@jest/globals": "^30.2.0",
54
54
  "@pexip/bundler": "18.1.2",
55
55
  "@swc/core": "^1.10.12",
56
- "@swc/jest": "^0.2.37",
56
+ "@swc/jest": "^0.2.39",
57
57
  "jest": "^29.5.12",
58
58
  "jest-junit": "^16.0.0",
59
59
  "prettier": "^3.2.5",
60
60
  "typescript": "~5.7.3"
61
61
  },
62
62
  "publishConfig": {
63
- "access": "public",
64
- "registry": "https://registry.npmjs.org/"
63
+ "access": "public"
65
64
  }
66
65
  }