@remotion/webcodecs 4.0.270 → 4.0.271

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.
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.convertMedia = void 0;
8
8
  const media_parser_1 = require("@remotion/media-parser");
9
- const fetch_1 = require("@remotion/media-parser/fetch");
9
+ const web_1 = require("@remotion/media-parser/web");
10
10
  const auto_select_writer_1 = require("./auto-select-writer");
11
11
  const calculate_progress_1 = require("./calculate-progress");
12
12
  const progress_tracker_1 = require("./create/progress-tracker");
@@ -117,7 +117,7 @@ const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgres
117
117
  ...fields,
118
118
  durationInSeconds: true,
119
119
  },
120
- reader: reader !== null && reader !== void 0 ? reader : fetch_1.fetchReader,
120
+ reader: reader !== null && reader !== void 0 ? reader : web_1.webReader,
121
121
  ...more,
122
122
  onDurationInSeconds: (durationInSeconds) => {
123
123
  var _a;
@@ -176,6 +176,7 @@ const convertMedia = async function ({ src, onVideoFrame, onAudioData, onProgres
176
176
  onM3uStreams: onM3uStreams !== null && onM3uStreams !== void 0 ? onM3uStreams : null,
177
177
  selectM3uStream: selectM3uStream !== null && selectM3uStream !== void 0 ? selectM3uStream : media_parser_1.defaultSelectM3uStreamFn,
178
178
  selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists !== null && selectM3uAssociatedPlaylists !== void 0 ? selectM3uAssociatedPlaylists : media_parser_1.defaultSelectM3uAssociatedPlaylists,
179
+ mp4HeaderSegment: null,
179
180
  })
180
181
  .then(() => {
181
182
  return state.waitForFinish();
@@ -1434,7 +1434,7 @@ import {
1434
1434
  MediaParserAbortError as MediaParserAbortError3,
1435
1435
  MediaParserInternals as MediaParserInternals9
1436
1436
  } from "@remotion/media-parser";
1437
- import { fetchReader } from "@remotion/media-parser/fetch";
1437
+ import { webReader } from "@remotion/media-parser/web";
1438
1438
 
1439
1439
  // src/auto-select-writer.ts
1440
1440
  var autoSelectWriter = async (writer, logLevel) => {
@@ -4965,7 +4965,7 @@ var convertMedia = async function({
4965
4965
  ...fields,
4966
4966
  durationInSeconds: true
4967
4967
  },
4968
- reader: reader ?? fetchReader,
4968
+ reader: reader ?? webReader,
4969
4969
  ...more,
4970
4970
  onDurationInSeconds: (durationInSeconds) => {
4971
4971
  if (durationInSeconds === null) {
@@ -5022,7 +5022,8 @@ var convertMedia = async function({
5022
5022
  apiName: "convertMedia()",
5023
5023
  onM3uStreams: onM3uStreams ?? null,
5024
5024
  selectM3uStream: selectM3uStream ?? defaultSelectM3uStreamFn,
5025
- selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? defaultSelectM3uAssociatedPlaylists
5025
+ selectM3uAssociatedPlaylists: selectM3uAssociatedPlaylists ?? defaultSelectM3uAssociatedPlaylists,
5026
+ mp4HeaderSegment: null
5026
5027
  }).then(() => {
5027
5028
  return state.waitForFinish();
5028
5029
  }).then(() => {
@@ -1,2 +1,3 @@
1
+ import type { ParseMediaSrc } from '@remotion/media-parser';
1
2
  import type { ConvertMediaContainer } from './get-available-containers';
2
- export declare const generateOutputFilename: (source: string | Blob, container: ConvertMediaContainer) => string;
3
+ export declare const generateOutputFilename: (source: ParseMediaSrc, container: ConvertMediaContainer) => string;
package/dist/index.d.ts CHANGED
@@ -40,6 +40,6 @@ export declare const WebCodecsInternals: {
40
40
  height: number;
41
41
  rotation: number;
42
42
  resizeOperation: import("./resizing/mode").ResizeOperation | null;
43
- videoCodec: import("./get-available-video-codecs").ConvertMediaVideoCodec | import("@remotion/media-parser").MediaParserVideoCodec;
43
+ videoCodec: import("./get-available-video-codecs").ConvertMediaVideoCodec | import("@remotion/media-parser/src").MediaParserVideoCodec;
44
44
  }) => import("./resizing/mode").Dimensions;
45
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/webcodecs",
3
- "version": "4.0.270",
3
+ "version": "4.0.271",
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.270",
21
- "@remotion/licensing": "4.0.270"
20
+ "@remotion/media-parser": "4.0.271",
21
+ "@remotion/licensing": "4.0.271"
22
22
  },
23
23
  "peerDependencies": {},
24
24
  "devDependencies": {
25
25
  "@types/dom-webcodecs": "0.1.11",
26
26
  "eslint": "9.19.0",
27
- "@remotion/eslint-config-internal": "4.0.270",
28
- "@remotion/example-videos": "4.0.270"
27
+ "@remotion/example-videos": "4.0.271",
28
+ "@remotion/eslint-config-internal": "4.0.271"
29
29
  },
30
30
  "keywords": [],
31
31
  "publishConfig": {