@remotion/media-parser 4.0.320 → 4.0.321

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,9 +16,9 @@ const parseWav = (state) => {
16
16
  if (insideMediaSection === 'in-section') {
17
17
  return (0, parse_media_section_1.parseMediaSection)({ state });
18
18
  }
19
- const type = iterator.getByteString(4, false);
19
+ const type = iterator.getByteString(4, false).toLowerCase();
20
20
  log_1.Log.trace(state.logLevel, `Processing box type ${type}`);
21
- if (type === 'RIFF') {
21
+ if (type === 'riff') {
22
22
  return (0, parse_header_1.parseHeader)({ state });
23
23
  }
24
24
  if (type === 'fmt') {
@@ -27,13 +27,13 @@ const parseWav = (state) => {
27
27
  if (type === 'data') {
28
28
  return (0, parse_data_1.parseData)({ state });
29
29
  }
30
- if (type === 'LIST') {
30
+ if (type === 'list') {
31
31
  return (0, parse_list_1.parseList)({ state });
32
32
  }
33
- if (type === 'id3' || type === 'ID3') {
33
+ if (type === 'id3') {
34
34
  return (0, parse_id3_1.parseId3)({ state });
35
35
  }
36
- if (type === 'JUNK' || type === 'FLLR') {
36
+ if (type === 'junk' || type === 'fllr') {
37
37
  return (0, parse_junk_1.parseJunk)({ state });
38
38
  }
39
39
  if (type === 'fact') {
@@ -15439,9 +15439,9 @@ var parseWav = (state) => {
15439
15439
  if (insideMediaSection === "in-section") {
15440
15440
  return parseMediaSection2({ state });
15441
15441
  }
15442
- const type = iterator.getByteString(4, false);
15442
+ const type = iterator.getByteString(4, false).toLowerCase();
15443
15443
  Log.trace(state.logLevel, `Processing box type ${type}`);
15444
- if (type === "RIFF") {
15444
+ if (type === "riff") {
15445
15445
  return parseHeader({ state });
15446
15446
  }
15447
15447
  if (type === "fmt") {
@@ -15450,13 +15450,13 @@ var parseWav = (state) => {
15450
15450
  if (type === "data") {
15451
15451
  return parseData({ state });
15452
15452
  }
15453
- if (type === "LIST") {
15453
+ if (type === "list") {
15454
15454
  return parseList({ state });
15455
15455
  }
15456
- if (type === "id3" || type === "ID3") {
15456
+ if (type === "id3") {
15457
15457
  return parseId32({ state });
15458
15458
  }
15459
- if (type === "JUNK" || type === "FLLR") {
15459
+ if (type === "junk" || type === "fllr") {
15460
15460
  return parseJunk({ state });
15461
15461
  }
15462
15462
  if (type === "fact") {
@@ -18105,7 +18105,7 @@ var downloadAndParseMedia = async (options) => {
18105
18105
  return returnValue;
18106
18106
  };
18107
18107
  // src/version.ts
18108
- var VERSION = "4.0.320";
18108
+ var VERSION = "4.0.321";
18109
18109
 
18110
18110
  // src/index.ts
18111
18111
  var MediaParserInternals = {
@@ -15170,9 +15170,9 @@ var parseWav = (state) => {
15170
15170
  if (insideMediaSection === "in-section") {
15171
15171
  return parseMediaSection2({ state });
15172
15172
  }
15173
- const type = iterator.getByteString(4, false);
15173
+ const type = iterator.getByteString(4, false).toLowerCase();
15174
15174
  Log.trace(state.logLevel, `Processing box type ${type}`);
15175
- if (type === "RIFF") {
15175
+ if (type === "riff") {
15176
15176
  return parseHeader({ state });
15177
15177
  }
15178
15178
  if (type === "fmt") {
@@ -15181,13 +15181,13 @@ var parseWav = (state) => {
15181
15181
  if (type === "data") {
15182
15182
  return parseData({ state });
15183
15183
  }
15184
- if (type === "LIST") {
15184
+ if (type === "list") {
15185
15185
  return parseList({ state });
15186
15186
  }
15187
- if (type === "id3" || type === "ID3") {
15187
+ if (type === "id3") {
15188
15188
  return parseId32({ state });
15189
15189
  }
15190
- if (type === "JUNK" || type === "FLLR") {
15190
+ if (type === "junk" || type === "fllr") {
15191
15191
  return parseJunk({ state });
15192
15192
  }
15193
15193
  if (type === "fact") {
@@ -15039,9 +15039,9 @@ var parseWav = (state) => {
15039
15039
  if (insideMediaSection === "in-section") {
15040
15040
  return parseMediaSection2({ state });
15041
15041
  }
15042
- const type = iterator.getByteString(4, false);
15042
+ const type = iterator.getByteString(4, false).toLowerCase();
15043
15043
  Log.trace(state.logLevel, `Processing box type ${type}`);
15044
- if (type === "RIFF") {
15044
+ if (type === "riff") {
15045
15045
  return parseHeader({ state });
15046
15046
  }
15047
15047
  if (type === "fmt") {
@@ -15050,13 +15050,13 @@ var parseWav = (state) => {
15050
15050
  if (type === "data") {
15051
15051
  return parseData({ state });
15052
15052
  }
15053
- if (type === "LIST") {
15053
+ if (type === "list") {
15054
15054
  return parseList({ state });
15055
15055
  }
15056
- if (type === "id3" || type === "ID3") {
15056
+ if (type === "id3") {
15057
15057
  return parseId32({ state });
15058
15058
  }
15059
- if (type === "JUNK" || type === "FLLR") {
15059
+ if (type === "junk" || type === "fllr") {
15060
15060
  return parseJunk({ state });
15061
15061
  }
15062
15062
  if (type === "fact") {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.320";
1
+ export declare const VERSION = "4.0.321";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.0.320';
5
+ exports.VERSION = '4.0.321';
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-parser"
4
4
  },
5
5
  "name": "@remotion/media-parser",
6
- "version": "4.0.320",
6
+ "version": "4.0.321",
7
7
  "main": "dist/index.js",
8
8
  "sideEffects": false,
9
9
  "devDependencies": {
10
10
  "@types/wicg-file-system-access": "2023.10.5",
11
11
  "eslint": "9.19.0",
12
12
  "@types/bun": "1.2.8",
13
- "@remotion/example-videos": "4.0.320",
14
- "@remotion/eslint-config-internal": "4.0.320"
13
+ "@remotion/example-videos": "4.0.321",
14
+ "@remotion/eslint-config-internal": "4.0.321"
15
15
  },
16
16
  "publishConfig": {
17
17
  "access": "public"