@remotion/media 4.0.509 → 4.0.511
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.
|
@@ -16,7 +16,7 @@ export declare const anchorToContinuousTime: ({ anchor, unloopedTimeInSeconds, p
|
|
|
16
16
|
unloopedTimeInSeconds: number;
|
|
17
17
|
playbackRate: number;
|
|
18
18
|
}) => number;
|
|
19
|
-
export declare const audioIteratorManager: ({ audioTrack, delayPlaybackHandleIfNotPremounting, sharedAudioContext, getSequenceEndTimestamp, getSequenceDurationInSeconds, getMediaEndTimestamp, getStartTime, initialMuted, drawDebugOverlay,
|
|
19
|
+
export declare const audioIteratorManager: ({ audioTrack, delayPlaybackHandleIfNotPremounting, sharedAudioContext, getSequenceEndTimestamp, getSequenceDurationInSeconds, getMediaEndTimestamp, getStartTime, initialMuted, drawDebugOverlay, }: {
|
|
20
20
|
audioTrack: InputAudioTrack;
|
|
21
21
|
delayPlaybackHandleIfNotPremounting: () => DelayPlaybackIfNotPremounting;
|
|
22
22
|
sharedAudioContext: SharedAudioContextForMediaPlayer;
|
|
@@ -26,13 +26,6 @@ export declare const audioIteratorManager: ({ audioTrack, delayPlaybackHandleIfN
|
|
|
26
26
|
getStartTime: () => number;
|
|
27
27
|
initialMuted: boolean;
|
|
28
28
|
drawDebugOverlay: () => void;
|
|
29
|
-
initialPlaybackRate: number;
|
|
30
|
-
initialTrimBefore: number | undefined;
|
|
31
|
-
initialTrimAfter: number | undefined;
|
|
32
|
-
initialSequenceOffset: number;
|
|
33
|
-
initialSequenceDurationInFrames: number;
|
|
34
|
-
initialLoop: boolean;
|
|
35
|
-
initialFps: number;
|
|
36
29
|
}) => {
|
|
37
30
|
startAudioIterator: ({ nonce, playbackRate, startFromSecond, unloopedStartFromSecond, scheduleAudioNode, getTargetTime, logLevel, loop, unscheduleAudioNode, getAudioContextCurrentTimeMockedInTest, }: {
|
|
38
31
|
startFromSecond: number;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -435,27 +435,11 @@ var audioIteratorManager = ({
|
|
|
435
435
|
getMediaEndTimestamp,
|
|
436
436
|
getStartTime,
|
|
437
437
|
initialMuted,
|
|
438
|
-
drawDebugOverlay
|
|
439
|
-
initialPlaybackRate,
|
|
440
|
-
initialTrimBefore,
|
|
441
|
-
initialTrimAfter,
|
|
442
|
-
initialSequenceOffset,
|
|
443
|
-
initialSequenceDurationInFrames,
|
|
444
|
-
initialLoop,
|
|
445
|
-
initialFps
|
|
438
|
+
drawDebugOverlay
|
|
446
439
|
}) => {
|
|
447
440
|
let muted = initialMuted;
|
|
448
441
|
let currentVolume = 1;
|
|
449
|
-
let currentSeek =
|
|
450
|
-
time: -1,
|
|
451
|
-
playbackRate: initialPlaybackRate,
|
|
452
|
-
trimBefore: initialTrimBefore,
|
|
453
|
-
trimAfter: initialTrimAfter,
|
|
454
|
-
sequenceOffset: initialSequenceOffset,
|
|
455
|
-
sequenceDurationInFrames: initialSequenceDurationInFrames,
|
|
456
|
-
loop: initialLoop,
|
|
457
|
-
fps: initialFps
|
|
458
|
-
};
|
|
442
|
+
let currentSeek = null;
|
|
459
443
|
const gainNode = sharedAudioContext.audioContext.createGain();
|
|
460
444
|
gainNode.connect(sharedAudioContext.gainNode);
|
|
461
445
|
const audioSink = new AudioBufferSink(audioTrack);
|
|
@@ -735,7 +719,7 @@ var audioIteratorManager = ({
|
|
|
735
719
|
if (nonce.isStale()) {
|
|
736
720
|
return;
|
|
737
721
|
}
|
|
738
|
-
if (currentSeek.time === newTime && currentSeek.playbackRate === playbackRate && currentSeek.trimBefore === trimBefore && currentSeek.trimAfter === trimAfter && currentSeek.sequenceOffset === sequenceOffset && currentSeek.sequenceDurationInFrames === sequenceDurationInFrames && currentSeek.loop === loop && currentSeek.fps === fps) {
|
|
722
|
+
if (currentSeek !== null && currentSeek.time === newTime && currentSeek.playbackRate === playbackRate && currentSeek.trimBefore === trimBefore && currentSeek.trimAfter === trimAfter && currentSeek.sequenceOffset === sequenceOffset && currentSeek.sequenceDurationInFrames === sequenceDurationInFrames && currentSeek.loop === loop && currentSeek.fps === fps) {
|
|
739
723
|
return;
|
|
740
724
|
}
|
|
741
725
|
currentSeek = {
|
|
@@ -794,6 +778,7 @@ var audioIteratorManager = ({
|
|
|
794
778
|
audioBufferIterator?.destroy();
|
|
795
779
|
audioBufferIterator = null;
|
|
796
780
|
currentAnchor = null;
|
|
781
|
+
currentSeek = null;
|
|
797
782
|
unblockCurrentDelayHandle();
|
|
798
783
|
},
|
|
799
784
|
seek,
|
|
@@ -1986,14 +1971,7 @@ class MediaPlayer {
|
|
|
1986
1971
|
getStartTime: () => this.getStartTime(),
|
|
1987
1972
|
initialMuted,
|
|
1988
1973
|
drawDebugOverlay: this.drawDebugOverlay,
|
|
1989
|
-
|
|
1990
|
-
getSequenceDurationInSeconds: () => this.getSequenceDurationInSeconds(),
|
|
1991
|
-
initialTrimBefore: this.trimBefore,
|
|
1992
|
-
initialTrimAfter: this.trimAfter,
|
|
1993
|
-
initialSequenceOffset: this.sequenceOffset,
|
|
1994
|
-
initialSequenceDurationInFrames: this.sequenceDurationInFrames,
|
|
1995
|
-
initialLoop: this.loop,
|
|
1996
|
-
initialFps: this.fps
|
|
1974
|
+
getSequenceDurationInSeconds: () => this.getSequenceDurationInSeconds()
|
|
1997
1975
|
});
|
|
1998
1976
|
}
|
|
1999
1977
|
const nonce = this.nonceManager.createAsyncOperation();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.511",
|
|
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.50.8",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.511",
|
|
27
27
|
"zod": "4.4.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"react-dom": ">=16.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
35
|
-
"@remotion/player": "4.0.
|
|
34
|
+
"@remotion/eslint-config-internal": "4.0.511",
|
|
35
|
+
"@remotion/player": "4.0.511",
|
|
36
36
|
"@vitest/browser-webdriverio": "4.0.9",
|
|
37
37
|
"eslint": "9.19.0",
|
|
38
38
|
"react": "19.2.3",
|