@remotion/player 4.0.518 → 4.0.519

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.
@@ -232,6 +232,11 @@ const usePlayback = ({ loop, playbackRate, moveToBeginningWhenEnded, inFrame, ou
232
232
  }
233
233
  const stopListening = context.listenForResume(() => {
234
234
  stopListening.remove();
235
+ if (!muted &&
236
+ !audioContextFailed &&
237
+ (sharedAudioContext === null || sharedAudioContext === void 0 ? void 0 : sharedAudioContext._experimentalKeepAudioContextAlive)) {
238
+ sharedAudioContext.resume();
239
+ }
235
240
  startedTime = performance.now();
236
241
  framesAdvanced = 0;
237
242
  queueNextFrame();
@@ -1207,6 +1207,9 @@ var usePlayback = ({
1207
1207
  }
1208
1208
  const stopListening = context.listenForResume(() => {
1209
1209
  stopListening.remove();
1210
+ if (!muted && !audioContextFailed && sharedAudioContext?._experimentalKeepAudioContextAlive) {
1211
+ sharedAudioContext.resume();
1212
+ }
1210
1213
  startedTime = performance.now();
1211
1214
  framesAdvanced = 0;
1212
1215
  queueNextFrame();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/player"
4
4
  },
5
5
  "name": "@remotion/player",
6
- "version": "4.0.518",
6
+ "version": "4.0.519",
7
7
  "description": "React component for embedding a Remotion preview into your app",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "license": "SEE LICENSE IN LICENSE.md",
37
37
  "dependencies": {
38
- "remotion": "4.0.518"
38
+ "remotion": "4.0.519"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=16.8.0",
@@ -49,7 +49,7 @@
49
49
  "react-dom": "19.2.3",
50
50
  "webpack": "5.105.0",
51
51
  "zod": "4.4.3",
52
- "@remotion/eslint-config-internal": "4.0.518",
52
+ "@remotion/eslint-config-internal": "4.0.519",
53
53
  "eslint": "9.19.0",
54
54
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
55
55
  },