@remotion/preload 3.3.53 → 3.3.55

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.
@@ -1 +1,5 @@
1
+ /**
2
+ * @description Preloads audio in the DOM so that when a audio tag is mounted, it can play immediately.
3
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-audio)
4
+ */
1
5
  export declare const preloadAudio: (src: string) => (() => void);
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.preloadAudio = void 0;
4
4
  const preload_asset_1 = require("./preload-asset");
5
+ /**
6
+ * @description Preloads audio in the DOM so that when a audio tag is mounted, it can play immediately.
7
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-audio)
8
+ */
5
9
  const preloadAudio = (src) => {
6
10
  return (0, preload_asset_1.preloadAsset)(src, 'audio');
7
11
  };
@@ -1 +1,5 @@
1
+ /**
2
+ * @description Preloads a font so that when an <Img> tag is mounted, it can display immediately.
3
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-font)
4
+ */
1
5
  export declare const preloadFont: (src: string) => (() => void);
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.preloadFont = void 0;
4
4
  const preload_asset_1 = require("./preload-asset");
5
+ /**
6
+ * @description Preloads a font so that when an <Img> tag is mounted, it can display immediately.
7
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-font)
8
+ */
5
9
  const preloadFont = (src) => {
6
10
  return (0, preload_asset_1.preloadAsset)(src, 'font');
7
11
  };
@@ -1 +1,5 @@
1
+ /**
2
+ * @description Preloads an image so that when an <Img> tag is mounted, it can display immediately.
3
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-image)
4
+ */
1
5
  export declare const preloadImage: (src: string) => (() => void);
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.preloadImage = void 0;
4
4
  const preload_asset_1 = require("./preload-asset");
5
+ /**
6
+ * @description Preloads an image so that when an <Img> tag is mounted, it can display immediately.
7
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-image)
8
+ */
5
9
  const preloadImage = (src) => {
6
10
  return (0, preload_asset_1.preloadAsset)(src, 'image');
7
11
  };
@@ -1 +1,5 @@
1
+ /**
2
+ * @description Preloads a video in the DOM so that when a video tag is mounted, it can play immediately.
3
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-video)
4
+ */
1
5
  export declare const preloadVideo: (src: string) => (() => void);
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.preloadVideo = void 0;
4
4
  const preload_asset_1 = require("./preload-asset");
5
+ /**
6
+ * @description Preloads a video in the DOM so that when a video tag is mounted, it can play immediately.
7
+ * @see [Documentation](https://www.remotion.dev/docs/preload/preload-video)
8
+ */
5
9
  const preloadVideo = (src) => {
6
10
  return (0, preload_asset_1.preloadAsset)(src, 'video');
7
11
  };
@@ -1 +1,5 @@
1
+ /**
2
+ * @description Follows the redirects of a URL (most commonly a remote video or audio) until the final URL is resolved and returns that.
3
+ * @see [Documentation](https://www.remotion.dev/docs/preload/resolve-redirect)
4
+ */
1
5
  export declare const resolveRedirect: (videoOrAudio: string) => Promise<string>;
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
+ /**
3
+ * @description Follows the redirects of a URL (most commonly a remote video or audio) until the final URL is resolved and returns that.
4
+ * @see [Documentation](https://www.remotion.dev/docs/preload/resolve-redirect)
5
+ */
2
6
  Object.defineProperty(exports, "__esModule", { value: true });
3
7
  exports.resolveRedirect = void 0;
4
8
  const resolveRedirect = async (videoOrAudio) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/preload",
3
- "version": "3.3.53",
3
+ "version": "3.3.55",
4
4
  "description": "Utility functions for preloading assets in HTML5",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "b6d64c3ec91b55ac537765fda0b927c3a472b529"
38
+ "gitHead": "4cecccc293e9c906c693f55fac65df8f1cfd2338"
39
39
  }