@remotion/media 4.0.433 → 4.0.435
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.
|
@@ -7,6 +7,10 @@ export type QueuedNode = {
|
|
|
7
7
|
scheduledTime: number;
|
|
8
8
|
playbackRate: number;
|
|
9
9
|
};
|
|
10
|
+
export type QueuedPeriod = {
|
|
11
|
+
from: number;
|
|
12
|
+
until: number;
|
|
13
|
+
};
|
|
10
14
|
export declare const makeAudioIterator: (startFromSecond: number, maximumTimestamp: number, cache: {
|
|
11
15
|
prewarmIteratorForLooping: ({ timeToSeek, maximumTimestamp, }: {
|
|
12
16
|
timeToSeek: number;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -781,7 +781,11 @@ var audioIteratorManager = ({
|
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
783
|
const queuedPeriod = audioBufferIterator.getQueuedPeriod();
|
|
784
|
-
const
|
|
784
|
+
const queuedPeriodMinusLatency = queuedPeriod ? {
|
|
785
|
+
from: queuedPeriod.from - ALLOWED_GLOBAL_TIME_ANCHOR_SHIFT - sharedAudioContext.baseLatency - sharedAudioContext.outputLatency,
|
|
786
|
+
until: queuedPeriod.until
|
|
787
|
+
} : null;
|
|
788
|
+
const currentTimeIsAlreadyQueued = isAlreadyQueued(newTime, queuedPeriodMinusLatency);
|
|
785
789
|
if (!currentTimeIsAlreadyQueued) {
|
|
786
790
|
const audioSatisfyResult = await audioBufferIterator.tryToSatisfySeek(newTime, (buffer) => {
|
|
787
791
|
if (!nonce.isStale()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.435",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"mediabunny": "1.37.0",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.435",
|
|
27
27
|
"zod": "4.3.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": ">=16.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.435",
|
|
35
35
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
36
36
|
"eslint": "9.19.0",
|
|
37
37
|
"react": "19.2.3",
|