@remotion/media-parser 4.0.534 → 4.0.536

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.
@@ -12,9 +12,15 @@ export declare const selectAssociatedPlaylists: ({ playlists, fn, skipAudioTrack
12
12
  fn: SelectM3uAssociatedPlaylistsFn;
13
13
  skipAudioTracks: boolean;
14
14
  }) => Promise<M3uAssociatedPlaylist[]>;
15
+ /**
16
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
17
+ */
15
18
  export declare const defaultSelectM3uAssociatedPlaylists: SelectM3uAssociatedPlaylistsFn;
16
19
  export declare const selectStream: ({ streams, fn, }: {
17
20
  streams: M3uStream[];
18
21
  fn: SelectM3uStreamFn;
19
22
  }) => Promise<M3uStream>;
23
+ /**
24
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
25
+ */
20
26
  export declare const defaultSelectM3uStreamFn: SelectM3uStreamFn;
@@ -22,6 +22,9 @@ const selectAssociatedPlaylists = async ({ playlists, fn, skipAudioTracks, }) =>
22
22
  return selectedStreams;
23
23
  };
24
24
  exports.selectAssociatedPlaylists = selectAssociatedPlaylists;
25
+ /**
26
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
27
+ */
25
28
  const defaultSelectM3uAssociatedPlaylists = ({ associatedPlaylists }) => {
26
29
  if (associatedPlaylists.length === 1) {
27
30
  return associatedPlaylists;
@@ -41,6 +44,9 @@ const selectStream = async ({ streams, fn, }) => {
41
44
  return Promise.resolve(selectedStream);
42
45
  };
43
46
  exports.selectStream = selectStream;
47
+ /**
48
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
49
+ */
44
50
  const defaultSelectM3uStreamFn = ({ streams }) => {
45
51
  return Promise.resolve(streams[0].id);
46
52
  };
@@ -26,4 +26,7 @@ export type MediaParserController = {
26
26
  attachSimulateSeekResolution: (callback: (seekInSeconds: number) => Promise<SeekResolution>) => void;
27
27
  };
28
28
  };
29
+ /**
30
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
31
+ */
29
32
  export declare const mediaParserController: () => MediaParserController;
@@ -6,6 +6,9 @@ const emitter_1 = require("./emitter");
6
6
  const pause_signal_1 = require("./pause-signal");
7
7
  const performed_seeks_stats_1 = require("./performed-seeks-stats");
8
8
  const seek_signal_1 = require("./seek-signal");
9
+ /**
10
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
11
+ */
9
12
  const mediaParserController = () => {
10
13
  const abortController = new AbortController();
11
14
  const emitter = new emitter_1.MediaParserEmitter();
@@ -1,2 +1,5 @@
1
1
  import type { DownloadAndParseMedia } from './options';
2
+ /**
3
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
4
+ */
2
5
  export declare const downloadAndParseMedia: DownloadAndParseMedia;
@@ -5,6 +5,9 @@ const select_stream_1 = require("./containers/m3u/select-stream");
5
5
  const internal_parse_media_1 = require("./internal-parse-media");
6
6
  const log_1 = require("./log");
7
7
  const web_1 = require("./web");
8
+ /**
9
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
10
+ */
8
11
  const downloadAndParseMedia = async (options) => {
9
12
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
10
13
  if (!options) {
package/dist/errors.d.ts CHANGED
@@ -40,4 +40,7 @@ export declare class IsAnUnsupportedFileTypeError extends Error {
40
40
  export declare class MediaParserAbortError extends Error {
41
41
  constructor(message: string);
42
42
  }
43
+ /**
44
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
45
+ */
43
46
  export declare const hasBeenAborted: (error: unknown) => error is MediaParserAbortError;
package/dist/errors.js CHANGED
@@ -50,6 +50,9 @@ class MediaParserAbortError extends Error {
50
50
  }
51
51
  }
52
52
  exports.MediaParserAbortError = MediaParserAbortError;
53
+ /**
54
+ * @deprecated Use Mediabunny instead: https://www.remotion.dev/docs/mediabunny
55
+ */
53
56
  const hasBeenAborted = (error) => {
54
57
  return (error instanceof MediaParserAbortError ||
55
58
  // On worker it is not the same instance, but same name