remotion 4.0.370 → 4.0.371

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.
@@ -24,7 +24,7 @@ const IFrameRefForwarding = ({ onLoad, onError, delayRenderRetries, delayRenderT
24
24
  console.error('Error loading iframe:', e, 'Handle the event using the onError() prop to make this message disappear.');
25
25
  }
26
26
  }, [handle, onError, continueRender]);
27
- return (0, jsx_runtime_1.jsx)("iframe", { ...props, ref: ref, onError: didGetError, onLoad: didLoad });
27
+ return ((0, jsx_runtime_1.jsx)("iframe", { referrerPolicy: "strict-origin-when-cross-origin", ...props, ref: ref, onError: didGetError, onLoad: didLoad }));
28
28
  };
29
29
  /*
30
30
  * @description The <IFrame /> can be used like a regular <iframe> HTML tag.
@@ -1,5 +1,5 @@
1
1
  import type { RefObject } from 'react';
2
- import type { LogLevel } from './log';
2
+ import { type LogLevel } from './log';
3
3
  export declare const playAndHandleNotAllowedError: ({ mediaRef, mediaType, onAutoPlayError, logLevel, mountTime, reason, isPlayer, }: {
4
4
  mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement | null>;
5
5
  mediaType: "audio" | "video";
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.playAndHandleNotAllowedError = void 0;
4
+ const log_1 = require("./log");
4
5
  const playback_logging_1 = require("./playback-logging");
5
6
  const playAndHandleNotAllowedError = ({ mediaRef, mediaType, onAutoPlayError, logLevel, mountTime, reason, isPlayer, }) => {
6
7
  const { current } = mediaRef;
@@ -53,14 +54,12 @@ const playAndHandleNotAllowedError = ({ mediaRef, mediaType, onAutoPlayError, lo
53
54
  onAutoPlayError();
54
55
  return;
55
56
  }
56
- // eslint-disable-next-line no-console
57
- console.log(`The video will be muted and we'll retry playing it.`);
58
57
  if (mediaType === 'video' && isPlayer) {
59
- // eslint-disable-next-line no-console
60
- console.log('Use onAutoPlayError() to handle this error yourself.');
58
+ log_1.Log.info({ logLevel, tag: '<' + mediaType + '>' }, `The video will be muted and we'll retry playing it.`);
59
+ log_1.Log.info({ logLevel, tag: '<' + mediaType + '>' }, 'Use onAutoPlayError() to handle this error yourself.');
60
+ current.muted = true;
61
+ current.play();
61
62
  }
62
- current.muted = true;
63
- current.play();
64
63
  }
65
64
  });
66
65
  };
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.370";
6
+ export declare const VERSION = "4.0.371";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.370';
10
+ exports.VERSION = '4.0.371';
@@ -110,7 +110,7 @@ function truthy(value) {
110
110
  }
111
111
 
112
112
  // src/version.ts
113
- var VERSION = "4.0.370";
113
+ var VERSION = "4.0.371";
114
114
 
115
115
  // src/multiple-versions-warning.ts
116
116
  var checkMultipleRemotionVersions = () => {
@@ -2931,12 +2931,12 @@ var playAndHandleNotAllowedError = ({
2931
2931
  onAutoPlayError();
2932
2932
  return;
2933
2933
  }
2934
- console.log(`The video will be muted and we'll retry playing it.`);
2935
2934
  if (mediaType === "video" && isPlayer) {
2936
- console.log("Use onAutoPlayError() to handle this error yourself.");
2935
+ Log.info({ logLevel, tag: "<" + mediaType + ">" }, `The video will be muted and we'll retry playing it.`);
2936
+ Log.info({ logLevel, tag: "<" + mediaType + ">" }, "Use onAutoPlayError() to handle this error yourself.");
2937
+ current.muted = true;
2938
+ current.play();
2937
2939
  }
2938
- current.muted = true;
2939
- current.play();
2940
2940
  }
2941
2941
  });
2942
2942
  };
@@ -5583,6 +5583,7 @@ var IFrameRefForwarding = ({
5583
5583
  }
5584
5584
  }, [handle, onError, continueRender2]);
5585
5585
  return /* @__PURE__ */ jsx23("iframe", {
5586
+ referrerPolicy: "strict-origin-when-cross-origin",
5586
5587
  ...props2,
5587
5588
  ref,
5588
5589
  onError: didGetError,
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.370";
2
+ var VERSION = "4.0.371";
3
3
  export {
4
4
  VERSION
5
5
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
4
4
  },
5
5
  "name": "remotion",
6
- "version": "4.0.370",
6
+ "version": "4.0.371",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "react-dom": "19.0.0",
35
35
  "webpack": "5.96.1",
36
36
  "zod": "3.22.3",
37
- "@remotion/eslint-config-internal": "4.0.370",
37
+ "@remotion/eslint-config-internal": "4.0.371",
38
38
  "eslint": "9.19.0"
39
39
  },
40
40
  "keywords": [
@@ -1,2 +0,0 @@
1
- export declare const useVideoEnabled: () => boolean;
2
- export declare const useAudioEnabled: () => boolean;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useAudioEnabled = exports.useVideoEnabled = void 0;
4
- const useVideoEnabled = () => {
5
- return window.remotion_videoEnabled;
6
- };
7
- exports.useVideoEnabled = useVideoEnabled;
8
- const useAudioEnabled = () => {
9
- return window.remotion_audioEnabled;
10
- };
11
- exports.useAudioEnabled = useAudioEnabled;