@remotion/webcodecs 4.0.269 → 4.0.270
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/dist/convert-media.d.ts +2 -1
- package/dist/convert-media.js +2 -1
- package/dist/esm/index.mjs +4 -1
- package/package.json +5 -5
package/dist/convert-media.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export type ConvertMediaOnAudioData = (options: {
|
|
|
35
35
|
audioData: AudioData;
|
|
36
36
|
track: AudioTrack;
|
|
37
37
|
}) => Promise<AudioData> | AudioData;
|
|
38
|
-
export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller, onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel, writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, ...more }: {
|
|
38
|
+
export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller, onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel, writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, ...more }: {
|
|
39
39
|
src: ParseMediaOptions<F>["src"];
|
|
40
40
|
container: ConvertMediaContainer;
|
|
41
41
|
onVideoFrame?: ConvertMediaOnVideoFrame;
|
|
@@ -47,6 +47,7 @@ export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src,
|
|
|
47
47
|
onAudioTrack?: ConvertMediaOnAudioTrackHandler;
|
|
48
48
|
onVideoTrack?: ConvertMediaOnVideoTrackHandler;
|
|
49
49
|
selectM3uStream?: ParseMediaOptions<F>["selectM3uStream"];
|
|
50
|
+
selectM3uAssociatedPlaylists?: ParseMediaOptions<F>["selectM3uAssociatedPlaylists"];
|
|
50
51
|
reader?: ParseMediaOptions<F>["reader"];
|
|
51
52
|
logLevel?: LogLevel;
|
|
52
53
|
writer?: WriterInterface;
|
package/dist/convert-media.js
CHANGED
|
@@ -21,7 +21,7 @@ const select_container_creator_1 = require("./select-container-creator");
|
|
|
21
21
|
const send_telemetry_event_1 = require("./send-telemetry-event");
|
|
22
22
|
const throttled_state_update_1 = require("./throttled-state-update");
|
|
23
23
|
const webcodecs_controller_1 = require("./webcodecs-controller");
|
|
24
|
-
const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller = (0, webcodecs_controller_1.webcodecsController)(), onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel = 'info', writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, ...more }) {
|
|
24
|
+
const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller = (0, webcodecs_controller_1.webcodecsController)(), onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel = 'info', writer, progressIntervalInMs, rotate, apiKey, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, ...more }) {
|
|
25
25
|
var _a, _b;
|
|
26
26
|
if (controller._internals.signal.aborted) {
|
|
27
27
|
return Promise.reject(new media_parser_1.MediaParserAbortError('Aborted'));
|
|
@@ -175,6 +175,7 @@ const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgres
|
|
|
175
175
|
apiName: 'convertMedia()',
|
|
176
176
|
onM3uStreams: onM3uStreams !== null && onM3uStreams !== void 0 ? onM3uStreams : null,
|
|
177
177
|
selectM3uStream: selectM3uStream !== null && selectM3uStream !== void 0 ? selectM3uStream : media_parser_1.defaultSelectM3uStreamFn,
|
|
178
|
+
selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists !== null && selectM3uAssociatedPlaylists !== void 0 ? selectM3uAssociatedPlaylists : media_parser_1.defaultSelectM3uAssociatedPlaylists,
|
|
178
179
|
})
|
|
179
180
|
.then(() => {
|
|
180
181
|
return state.waitForFinish();
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1429,6 +1429,7 @@ var canReencodeVideoTrack = async ({
|
|
|
1429
1429
|
};
|
|
1430
1430
|
// src/convert-media.ts
|
|
1431
1431
|
import {
|
|
1432
|
+
defaultSelectM3uAssociatedPlaylists,
|
|
1432
1433
|
defaultSelectM3uStreamFn,
|
|
1433
1434
|
MediaParserAbortError as MediaParserAbortError3,
|
|
1434
1435
|
MediaParserInternals as MediaParserInternals9
|
|
@@ -4869,6 +4870,7 @@ var convertMedia = async function({
|
|
|
4869
4870
|
onVideoCodec,
|
|
4870
4871
|
onM3uStreams,
|
|
4871
4872
|
selectM3uStream,
|
|
4873
|
+
selectM3uAssociatedPlaylists,
|
|
4872
4874
|
...more
|
|
4873
4875
|
}) {
|
|
4874
4876
|
if (controller._internals.signal.aborted) {
|
|
@@ -5019,7 +5021,8 @@ var convertMedia = async function({
|
|
|
5019
5021
|
onVideoCodec: onVideoCodec ?? null,
|
|
5020
5022
|
apiName: "convertMedia()",
|
|
5021
5023
|
onM3uStreams: onM3uStreams ?? null,
|
|
5022
|
-
selectM3uStream: selectM3uStream ?? defaultSelectM3uStreamFn
|
|
5024
|
+
selectM3uStream: selectM3uStream ?? defaultSelectM3uStreamFn,
|
|
5025
|
+
selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? defaultSelectM3uAssociatedPlaylists
|
|
5023
5026
|
}).then(() => {
|
|
5024
5027
|
return state.waitForFinish();
|
|
5025
5028
|
}).then(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/webcodecs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.270",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
18
18
|
"license": "Remotion License (See https://remotion.dev/docs/webcodecs#license)",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@remotion/media-parser": "4.0.
|
|
21
|
-
"@remotion/licensing": "4.0.
|
|
20
|
+
"@remotion/media-parser": "4.0.270",
|
|
21
|
+
"@remotion/licensing": "4.0.270"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/dom-webcodecs": "0.1.11",
|
|
26
26
|
"eslint": "9.19.0",
|
|
27
|
-
"@remotion/
|
|
28
|
-
"@remotion/
|
|
27
|
+
"@remotion/eslint-config-internal": "4.0.270",
|
|
28
|
+
"@remotion/example-videos": "4.0.270"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [],
|
|
31
31
|
"publishConfig": {
|