@pexip/media 20.0.0 → 20.0.1

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,16 @@
1
1
  # @pexip/media
2
2
 
3
+ ## 20.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 091652a: emit `onAudioMuteStateChanged` and `onVideoMuteStateChanged` each
8
+ time we call `syncMuteState`
9
+ - @pexip/media-control@20.0.1
10
+ - @pexip/media-processor@20.0.1
11
+ - @pexip/signal@16.8.0
12
+ - @pexip/utils@17.0.0
13
+
3
14
  ## 20.0.0
4
15
 
5
16
  ### Major Changes
package/dist/media.js CHANGED
@@ -266,20 +266,19 @@ export const createMedia = ({ getMuteState, signals, audioProcessors, videoProce
266
266
  const syncMuteState = (tracks) => {
267
267
  const inputMuted = getMuteState();
268
268
  for (const track of tracks) {
269
- const prevMuted = track.muted;
270
269
  switch (track.kind) {
271
270
  case 'audioinput': {
272
271
  track.mute(inputMuted.audio);
273
- if (prevMuted !== track.muted) {
274
- signals.onAudioMuteStateChanged?.emit(track.muted);
275
- }
272
+ // FIXME: this can fire too often, but we want to make sure we signal initial state as well.
273
+ // We should only fire this when needed.
274
+ signals.onAudioMuteStateChanged?.emit(track.muted);
276
275
  break;
277
276
  }
278
277
  case 'videoinput':
279
278
  track.mute(inputMuted.video);
280
- if (prevMuted !== track.muted) {
281
- signals.onVideoMuteStateChanged?.emit(track.muted);
282
- }
279
+ // FIXME: this can fire too often, but we want to make sure we signal initial state as well.
280
+ // We should only fire this when needed.
281
+ signals.onVideoMuteStateChanged?.emit(track.muted);
283
282
  break;
284
283
  default:
285
284
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pexip/media",
3
- "version": "20.0.0",
3
+ "version": "20.0.1",
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",
@@ -44,14 +44,14 @@
44
44
  "typecheck": "yarn tsc --noEmit -p ."
45
45
  },
46
46
  "dependencies": {
47
- "@pexip/media-control": "20.0.0",
48
- "@pexip/media-processor": "20.0.0",
47
+ "@pexip/media-control": "20.0.1",
48
+ "@pexip/media-processor": "20.0.1",
49
49
  "@pexip/signal": "16.8.0",
50
50
  "@pexip/utils": "17.0.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jest/globals": "^29.7.0",
54
- "@pexip/bundler": "18.0.0",
54
+ "@pexip/bundler": "18.1.0",
55
55
  "@swc/core": "^1.10.12",
56
56
  "@swc/jest": "^0.2.37",
57
57
  "jest": "^29.5.12",