@remotion/media-parser 4.0.278 → 4.0.280

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.
Files changed (145) hide show
  1. package/dist/check-if-done.d.ts +2 -0
  2. package/dist/check-if-done.js +34 -0
  3. package/dist/containers/aac/parse-aac.js +15 -10
  4. package/dist/containers/avc/parse-avc.js +1 -1
  5. package/dist/containers/flac/get-block-size.d.ts +1 -1
  6. package/dist/containers/flac/get-channel-count.d.ts +2 -2
  7. package/dist/containers/flac/get-sample-rate.d.ts +1 -1
  8. package/dist/containers/flac/parse-flac-frame.d.ts +1 -1
  9. package/dist/containers/flac/parse-flac-frame.js +16 -11
  10. package/dist/containers/flac/parse-flac.d.ts +1 -1
  11. package/dist/containers/flac/parse-header.d.ts +1 -1
  12. package/dist/containers/flac/parse-metadata.d.ts +1 -1
  13. package/dist/containers/flac/parse-streaminfo.d.ts +1 -1
  14. package/dist/containers/flac/parse-unknown-block.d.ts +1 -1
  15. package/dist/containers/iso-base-media/esds/decoder-specific-config.d.ts +1 -1
  16. package/dist/containers/iso-base-media/esds/esds-descriptors.d.ts +1 -1
  17. package/dist/containers/iso-base-media/esds/esds.d.ts +1 -1
  18. package/dist/containers/iso-base-media/ftyp.d.ts +1 -1
  19. package/dist/containers/iso-base-media/get-moov-atom.js +9 -3
  20. package/dist/containers/iso-base-media/get-seeking-from-mp4.d.ts +5 -0
  21. package/dist/containers/iso-base-media/get-seeking-from-mp4.js +56 -0
  22. package/dist/containers/iso-base-media/mdat/mdat.js +29 -20
  23. package/dist/containers/iso-base-media/mdhd.d.ts +1 -1
  24. package/dist/containers/iso-base-media/meta/hdlr.d.ts +1 -1
  25. package/dist/containers/iso-base-media/meta/ilst.d.ts +1 -1
  26. package/dist/containers/iso-base-media/mvhd.d.ts +1 -1
  27. package/dist/containers/iso-base-media/mvhd.js +1 -1
  28. package/dist/containers/iso-base-media/parse-icc-profile.js +1 -1
  29. package/dist/containers/iso-base-media/stsd/av1c.d.ts +1 -1
  30. package/dist/containers/iso-base-media/stsd/avcc.d.ts +1 -1
  31. package/dist/containers/iso-base-media/stsd/colr.d.ts +1 -1
  32. package/dist/containers/iso-base-media/stsd/ctts.d.ts +1 -1
  33. package/dist/containers/iso-base-media/stsd/hvcc.d.ts +1 -1
  34. package/dist/containers/iso-base-media/stsd/keys.d.ts +1 -1
  35. package/dist/containers/iso-base-media/stsd/pasp.d.ts +1 -1
  36. package/dist/containers/iso-base-media/stsd/stco.d.ts +1 -1
  37. package/dist/containers/iso-base-media/stsd/stsc.d.ts +1 -1
  38. package/dist/containers/iso-base-media/stsd/stss.d.ts +1 -1
  39. package/dist/containers/iso-base-media/stsd/stsz.d.ts +1 -1
  40. package/dist/containers/iso-base-media/stsd/stts.d.ts +1 -1
  41. package/dist/containers/iso-base-media/tfdt.d.ts +1 -1
  42. package/dist/containers/iso-base-media/tfhd.d.ts +1 -1
  43. package/dist/containers/iso-base-media/tkhd.d.ts +1 -1
  44. package/dist/containers/iso-base-media/trun.d.ts +1 -1
  45. package/dist/containers/m3u/parse-m3u-manifest.d.ts +1 -1
  46. package/dist/containers/mp3/id3-v1.d.ts +1 -1
  47. package/dist/containers/mp3/parse-mpeg-header.js +14 -9
  48. package/dist/containers/riff/is-movi.d.ts +1 -1
  49. package/dist/containers/riff/parse-avih.d.ts +1 -1
  50. package/dist/containers/riff/parse-isft.d.ts +1 -1
  51. package/dist/containers/riff/parse-movi.js +29 -20
  52. package/dist/containers/riff/parse-strf.d.ts +1 -1
  53. package/dist/containers/riff/parse-strh.d.ts +1 -1
  54. package/dist/containers/transport-stream/adts-header.js +1 -1
  55. package/dist/containers/transport-stream/discard-rest-of-packet.d.ts +1 -1
  56. package/dist/containers/transport-stream/handle-aac-packet.js +6 -1
  57. package/dist/containers/transport-stream/handle-avc-packet.js +6 -1
  58. package/dist/containers/transport-stream/parse-pat.d.ts +1 -1
  59. package/dist/containers/transport-stream/parse-pes.d.ts +1 -1
  60. package/dist/containers/transport-stream/parse-pmt.d.ts +1 -1
  61. package/dist/containers/wav/parse-video-section.js +15 -10
  62. package/dist/containers/webm/av1-codec-private.js +1 -1
  63. package/dist/containers/webm/description.js +1 -1
  64. package/dist/containers/webm/get-sample-from-block.js +1 -1
  65. package/dist/containers/webm/make-track.js +1 -1
  66. package/dist/containers/webm/parse-ebml.js +16 -3
  67. package/dist/containers/webm/segments/block-simple-block-flags.d.ts +1 -1
  68. package/dist/emit-all-info.d.ts +3 -0
  69. package/dist/emit-all-info.js +30 -0
  70. package/dist/emit-audio-sample.d.ts +12 -0
  71. package/dist/emit-audio-sample.js +14 -0
  72. package/dist/emit-available-info.d.ts +2 -7
  73. package/dist/emit-available-info.js +34 -31
  74. package/dist/esm/index.mjs +1936 -1635
  75. package/dist/esm/worker-server-entry.mjs +855 -554
  76. package/dist/esm/worker-web-entry.mjs +855 -554
  77. package/dist/fields.d.ts +61 -0
  78. package/dist/fields.js +2 -0
  79. package/dist/get-fields-from-callbacks.d.ts +2 -1
  80. package/dist/get-seeking-info.d.ts +4 -0
  81. package/dist/get-seeking-info.js +22 -0
  82. package/dist/has-all-info.d.ts +3 -5
  83. package/dist/has-all-info.js +3 -4
  84. package/dist/index.d.ts +53 -14
  85. package/dist/index.js +1 -1
  86. package/dist/init-video.d.ts +1 -4
  87. package/dist/init-video.js +2 -1
  88. package/dist/internal-parse-media.js +25 -188
  89. package/dist/{buffer-iterator.d.ts → iterator/buffer-iterator.d.ts} +12 -15
  90. package/dist/{buffer-iterator.js → iterator/buffer-iterator.js} +8 -116
  91. package/dist/iterator/buffer-manager.d.ts +18 -0
  92. package/dist/iterator/buffer-manager.js +86 -0
  93. package/dist/iterator/offset-counter.d.ts +10 -0
  94. package/dist/iterator/offset-counter.js +31 -0
  95. package/dist/make-hvc1-codec-strings.d.ts +1 -1
  96. package/dist/make-progress-object.d.ts +6 -0
  97. package/dist/make-progress-object.js +13 -0
  98. package/dist/media-parser-controller.d.ts +3 -0
  99. package/dist/media-parser-controller.js +4 -0
  100. package/dist/options.d.ts +1 -61
  101. package/dist/parse-loop.d.ts +8 -0
  102. package/dist/parse-loop.js +93 -0
  103. package/dist/parse-media-on-worker-entry.d.ts +2 -1
  104. package/dist/perform-seek.d.ts +2 -7
  105. package/dist/perform-seek.js +23 -24
  106. package/dist/print-timings.d.ts +2 -0
  107. package/dist/print-timings.js +12 -0
  108. package/dist/register-track.js +3 -0
  109. package/dist/run-parse-iteration.d.ts +1 -4
  110. package/dist/run-parse-iteration.js +1 -4
  111. package/dist/seek-backwards.d.ts +2 -0
  112. package/dist/seek-backwards.js +26 -0
  113. package/dist/seek-forwards.d.ts +2 -0
  114. package/dist/seek-forwards.js +28 -0
  115. package/dist/seek-signal.d.ts +22 -0
  116. package/dist/seek-signal.js +26 -0
  117. package/dist/seeking-info.d.ts +8 -0
  118. package/dist/seeking-info.js +2 -0
  119. package/dist/state/can-skip-tracks.d.ts +2 -2
  120. package/dist/state/can-skip-tracks.js +5 -2
  121. package/dist/state/emitted-fields.d.ts +1 -1
  122. package/dist/state/has-tracks-section.d.ts +2 -1
  123. package/dist/state/need-samples-for-fields.d.ts +1 -1
  124. package/dist/state/parser-state.d.ts +38 -8
  125. package/dist/state/parser-state.js +22 -2
  126. package/dist/state/sample-callbacks.d.ts +8 -3
  127. package/dist/state/sample-callbacks.js +16 -3
  128. package/dist/state/slow-duration-fps.js +15 -17
  129. package/dist/state/timings.d.ts +8 -0
  130. package/dist/state/timings.js +13 -0
  131. package/dist/state/video-section.d.ts +1 -1
  132. package/dist/state/webm.d.ts +1 -1
  133. package/dist/throttled-progress.d.ts +2 -3
  134. package/dist/version.d.ts +1 -1
  135. package/dist/version.js +1 -1
  136. package/dist/work-on-seek-request.d.ts +2 -0
  137. package/dist/work-on-seek-request.js +43 -0
  138. package/dist/worker/worker-types.d.ts +2 -1
  139. package/package.json +10 -10
  140. package/dist/parse-media-on-server-worker.d.ts +0 -2
  141. package/dist/parse-media-on-server-worker.js +0 -4
  142. package/dist/parse-media-on-web-worker.d.ts +0 -2
  143. package/dist/parse-media-on-web-worker.js +0 -4
  144. package/dist/worker.module.d.ts +0 -4
  145. package/dist/worker.module.js +0 -16
@@ -6,16 +6,14 @@ const slowDurationAndFpsState = () => {
6
6
  let largestVideoSample;
7
7
  let smallestAudioSample;
8
8
  let largestAudioSample;
9
- let audioSizesInBytes = 0;
10
- let videoSizeInBytes = 0;
11
- let videoSamples = 0;
12
- let audioSamples = 0;
9
+ const videoSamples = new Map();
10
+ const audioSamples = new Map();
13
11
  const getSlowVideoDurationInSeconds = () => {
14
12
  let videoDuration = null;
15
13
  if (smallestVideoSample !== undefined && largestVideoSample !== undefined) {
16
14
  const startingTimestampDifference = largestVideoSample - smallestVideoSample;
17
- const timeBetweenSamples = startingTimestampDifference / (videoSamples - 1);
18
- videoDuration = timeBetweenSamples * videoSamples;
15
+ const timeBetweenSamples = startingTimestampDifference / (videoSamples.size - 1);
16
+ videoDuration = timeBetweenSamples * videoSamples.size;
19
17
  }
20
18
  return videoDuration;
21
19
  };
@@ -24,8 +22,8 @@ const slowDurationAndFpsState = () => {
24
22
  let audioDuration = null;
25
23
  if (smallestAudioSample !== undefined && largestAudioSample !== undefined) {
26
24
  const startingTimestampDifferenceAudio = largestAudioSample - smallestAudioSample;
27
- const timeBetweenSamplesAudio = startingTimestampDifferenceAudio / (audioSamples - 1);
28
- audioDuration = timeBetweenSamplesAudio * audioSamples;
25
+ const timeBetweenSamplesAudio = startingTimestampDifferenceAudio / (audioSamples.size - 1);
26
+ audioDuration = timeBetweenSamplesAudio * audioSamples.size;
29
27
  }
30
28
  if (videoDuration === null && audioDuration === null) {
31
29
  throw new Error('No samples');
@@ -34,7 +32,7 @@ const slowDurationAndFpsState = () => {
34
32
  };
35
33
  return {
36
34
  addVideoSample: (videoSample) => {
37
- videoSamples++;
35
+ videoSamples.set(videoSample.cts, videoSample.data.byteLength);
38
36
  const presentationTimeInSeconds = videoSample.cts / videoSample.timescale;
39
37
  if (largestVideoSample === undefined ||
40
38
  presentationTimeInSeconds > largestVideoSample) {
@@ -44,10 +42,9 @@ const slowDurationAndFpsState = () => {
44
42
  presentationTimeInSeconds < smallestVideoSample) {
45
43
  smallestVideoSample = presentationTimeInSeconds;
46
44
  }
47
- videoSizeInBytes += videoSample.data.byteLength;
48
45
  },
49
46
  addAudioSample: (audioSample) => {
50
- audioSamples++;
47
+ audioSamples.set(audioSample.cts, audioSample.data.byteLength);
51
48
  const presentationTimeInSeconds = audioSample.cts / audioSample.timescale;
52
49
  if (largestAudioSample === undefined ||
53
50
  presentationTimeInSeconds > largestAudioSample) {
@@ -57,7 +54,6 @@ const slowDurationAndFpsState = () => {
57
54
  presentationTimeInSeconds < smallestAudioSample) {
58
55
  smallestAudioSample = presentationTimeInSeconds;
59
56
  }
60
- audioSizesInBytes += audioSample.data.byteLength;
61
57
  },
62
58
  getSlowDurationInSeconds,
63
59
  getFps: () => {
@@ -66,22 +62,24 @@ const slowDurationAndFpsState = () => {
66
62
  if (videoDuration === 0) {
67
63
  return 0;
68
64
  }
69
- return videoSamples / videoDuration;
65
+ return videoSamples.size / videoDuration;
70
66
  },
71
- getSlowNumberOfFrames: () => videoSamples,
67
+ getSlowNumberOfFrames: () => videoSamples.size,
72
68
  getAudioBitrate: () => {
73
69
  const audioDuration = getSlowDurationInSeconds();
74
- if (audioDuration === 0 || audioSizesInBytes === 0) {
70
+ if (audioDuration === 0 || audioSamples.size === 0) {
75
71
  return null;
76
72
  }
73
+ const audioSizesInBytes = Array.from(audioSamples.values()).reduce((acc, size) => acc + size, 0);
77
74
  return (audioSizesInBytes * 8) / audioDuration;
78
75
  },
79
76
  getVideoBitrate: () => {
80
77
  const videoDuration = getSlowDurationInSeconds();
81
- if (videoDuration === 0 || videoSizeInBytes === 0) {
78
+ if (videoDuration === 0 || videoSamples.size === 0) {
82
79
  return null;
83
80
  }
84
- return (videoSizeInBytes * 8) / videoDuration;
81
+ const videoSizesInBytes = Array.from(videoSamples.values()).reduce((acc, size) => acc + size, 0);
82
+ return (videoSizesInBytes * 8) / videoDuration;
85
83
  },
86
84
  };
87
85
  };
@@ -0,0 +1,8 @@
1
+ export declare const timingsState: () => {
2
+ timeIterating: number;
3
+ timeReadingData: number;
4
+ timeSeeking: number;
5
+ timeCheckingIfDone: number;
6
+ timeFreeingData: number;
7
+ };
8
+ export type TimingsState = ReturnType<typeof timingsState>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timingsState = void 0;
4
+ const timingsState = () => {
5
+ return {
6
+ timeIterating: 0,
7
+ timeReadingData: 0,
8
+ timeSeeking: 0,
9
+ timeCheckingIfDone: 0,
10
+ timeFreeingData: 0,
11
+ };
12
+ };
13
+ exports.timingsState = timingsState;
@@ -3,7 +3,7 @@
3
3
  * Usually this section is in a different format and it is the only section
4
4
  * that can be read partially
5
5
  */
6
- import type { BufferIterator } from '../buffer-iterator';
6
+ import type { BufferIterator } from '../iterator/buffer-iterator';
7
7
  type VideoSection = {
8
8
  start: number;
9
9
  size: number;
@@ -1,7 +1,7 @@
1
- import type { BufferIterator } from '../buffer-iterator';
2
1
  import type { AvcProfileInfo } from '../containers/avc/parse-avc';
3
2
  import type { OnTrackEntrySegment } from '../containers/webm/segments';
4
3
  import type { TrackInfo } from '../containers/webm/segments/track-entry';
4
+ import type { BufferIterator } from '../iterator/buffer-iterator';
5
5
  export type SegmentSection = {
6
6
  start: number;
7
7
  size: number;
@@ -1,6 +1,6 @@
1
1
  import type { MediaParserController } from './media-parser-controller';
2
2
  import type { ParseMediaOnProgress, ParseMediaProgress } from './options';
3
- type ReturnType = {
3
+ export type ThrottledState = {
4
4
  get: () => ParseMediaProgress;
5
5
  update: ParseMediaProgressFn | null;
6
6
  stopAndGetLastProgress: () => void;
@@ -11,5 +11,4 @@ export declare const throttledStateUpdate: ({ updateFn, everyMilliseconds, contr
11
11
  everyMilliseconds: number;
12
12
  controller: MediaParserController;
13
13
  totalBytes: number | null;
14
- }) => ReturnType;
15
- export {};
14
+ }) => ThrottledState;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.278";
1
+ export declare const VERSION = "4.0.280";
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.278';
5
+ exports.VERSION = '4.0.280';
@@ -0,0 +1,2 @@
1
+ import type { ParserState } from './state/parser-state';
2
+ export declare const workOnSeekRequest: (state: ParserState) => Promise<void>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workOnSeekRequest = void 0;
4
+ const get_seeking_info_1 = require("./get-seeking-info");
5
+ const log_1 = require("./log");
6
+ const perform_seek_1 = require("./perform-seek");
7
+ const turnSeekIntoByte = (seek, state) => {
8
+ if (seek.type === 'keyframe-before-time-in-seconds') {
9
+ const seekingInfo = (0, get_seeking_info_1.getSeekingInfo)(state);
10
+ if (!seekingInfo) {
11
+ return {
12
+ type: 'valid-but-must-wait',
13
+ };
14
+ }
15
+ const seekingByte = (0, get_seeking_info_1.getSeekingByte)(seekingInfo, seek.time);
16
+ return {
17
+ type: 'do-seek',
18
+ byte: seekingByte,
19
+ };
20
+ }
21
+ throw new Error(`Cannot process seek request ${JSON.stringify(seek)}`);
22
+ };
23
+ const workOnSeekRequest = async (state) => {
24
+ const seek = state.controller._internals.seekSignal.getSeek();
25
+ if (!seek) {
26
+ return;
27
+ }
28
+ log_1.Log.trace(state.logLevel, `Has seek request: ${JSON.stringify(seek)}`);
29
+ const resolution = turnSeekIntoByte(seek, state);
30
+ log_1.Log.trace(state.logLevel, `Seek action: ${JSON.stringify(resolution)}`);
31
+ if (resolution.type === 'do-seek') {
32
+ await (0, perform_seek_1.performSeek)({ state, seekTo: resolution.byte });
33
+ const { hasChanged } = state.controller._internals.seekSignal.clearSeekIfStillSame(seek);
34
+ if (hasChanged) {
35
+ log_1.Log.trace(state.logLevel, `Seek request has changed while seeking, seeking again`);
36
+ await (0, exports.workOnSeekRequest)(state);
37
+ }
38
+ }
39
+ if (resolution.type === 'invalid') {
40
+ throw new Error(`The seek request ${JSON.stringify(seek)} cannot be processed`);
41
+ }
42
+ };
43
+ exports.workOnSeekRequest = workOnSeekRequest;
@@ -1,10 +1,11 @@
1
1
  import type { M3uAssociatedPlaylist, M3uStream } from '../containers/m3u/get-streams';
2
2
  import type { SelectM3uAssociatedPlaylistsFnOptions, SelectM3uStreamFnOptions } from '../containers/m3u/select-stream';
3
3
  import type { Dimensions, ImageType } from '../errors';
4
+ import type { Options, ParseMediaFields } from '../fields';
4
5
  import type { MediaParserLocation } from '../get-location';
5
6
  import type { MediaParserAudioCodec, MediaParserVideoCodec } from '../get-tracks';
6
7
  import type { MediaParserMetadataEntry } from '../metadata/get-metadata';
7
- import type { MediaParserContainer, MediaParserKeyframe, MediaParserTracks, Options, ParseMediaFields, ParseMediaProgress, ParseMediaResult, ParseMediaSrc, SerializeableOptionalParseMediaParams } from '../options';
8
+ import type { MediaParserContainer, MediaParserKeyframe, MediaParserTracks, ParseMediaProgress, ParseMediaResult, ParseMediaSrc, SerializeableOptionalParseMediaParams } from '../options';
8
9
  import type { MediaParserStructureUnstable } from '../parse-result';
9
10
  import type { MediaParserEmbeddedImage } from '../state/images';
10
11
  import type { InternalStats } from '../state/parser-state';
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.278",
6
+ "version": "4.0.280",
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.5",
13
- "@remotion/example-videos": "4.0.278",
14
- "@remotion/eslint-config-internal": "4.0.278"
13
+ "@remotion/example-videos": "4.0.280",
14
+ "@remotion/eslint-config-internal": "4.0.280"
15
15
  },
16
16
  "publishConfig": {
17
17
  "access": "public"
@@ -73,25 +73,25 @@
73
73
  "typesVersions": {
74
74
  ">=1.0": {
75
75
  "node": [
76
- "dist/node.d.ts"
76
+ "./dist/node.d.ts"
77
77
  ],
78
78
  "web": [
79
- "dist/web.d.ts"
79
+ "./dist/web.d.ts"
80
80
  ],
81
81
  "universal": [
82
- "dist/universal.d.ts"
82
+ "./dist/universal.d.ts"
83
83
  ],
84
84
  "node-writer": [
85
- "dist/node-writer.d.ts"
85
+ "./dist/node-writer.d.ts"
86
86
  ],
87
87
  "worker-web-entry": [
88
- "dist/worker-web-entry.d.ts"
88
+ "./dist/worker-web-entry.d.ts"
89
89
  ],
90
90
  "worker-server-entry": [
91
- "dist/worker-server-entry.d.ts"
91
+ "./dist/worker-server-entry.d.ts"
92
92
  ],
93
93
  "worker": [
94
- "dist/worker.d.ts"
94
+ "./dist/worker.d.ts"
95
95
  ]
96
96
  }
97
97
  },
@@ -1,2 +0,0 @@
1
- import type { ParseMedia } from './options';
2
- export declare const parseMediaOnServerWorker: ParseMedia;
@@ -1,4 +0,0 @@
1
- import { parseMediaOnWorkerImplementation } from './parse-media-on-worker-entry';
2
- export const parseMediaOnServerWorker = (params) => {
3
- return parseMediaOnWorkerImplementation(params, new URL('./worker-server-entry', import.meta.url), 'parseMediaOnServerWorker');
4
- };
@@ -1,2 +0,0 @@
1
- import type { ParseMediaOnWorker } from './options';
2
- export declare const parseMediaOnWebWorker: ParseMediaOnWorker;
@@ -1,4 +0,0 @@
1
- import { parseMediaOnWorkerImplementation } from './parse-media-on-worker-entry';
2
- export const parseMediaOnWebWorker = (params) => {
3
- return parseMediaOnWorkerImplementation(params, new URL('./worker-web-entry', import.meta.url), 'parseMediaOnWebWorker');
4
- };
@@ -1,4 +0,0 @@
1
- import type { ParseMediaOnWorker } from './options';
2
- export type { ParseMediaOnWorker, ParseMediaOnWorkerOptions } from './options';
3
- export declare const parseMediaOnWebWorker: ParseMediaOnWorker;
4
- export declare const parseMediaOnServerWorker: ParseMediaOnWorker;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseMediaOnServerWorker = exports.parseMediaOnWebWorker = void 0;
4
- const parse_media_on_worker_entry_1 = require("./parse-media-on-worker-entry");
5
- const parseMediaOnWebWorker = (params) => {
6
- return (0, parse_media_on_worker_entry_1.parseMediaOnWorkerImplementation)(params,
7
- // @ts-expect-error
8
- new URL('./worker-web-entry', import.meta.url), 'parseMediaOnWebWorker');
9
- };
10
- exports.parseMediaOnWebWorker = parseMediaOnWebWorker;
11
- const parseMediaOnServerWorker = (params) => {
12
- return (0, parse_media_on_worker_entry_1.parseMediaOnWorkerImplementation)(params,
13
- // @ts-expect-error
14
- new URL('./worker-server-entry', import.meta.url), 'parseMediaOnServerWorker');
15
- };
16
- exports.parseMediaOnServerWorker = parseMediaOnServerWorker;