1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.useVideoConfig = void 0;
|
4 | const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | const useVideoConfig = () => {
|
11 | const videoConfig = (0, use_unsafe_video_config_1.useUnsafeVideoConfig)();
|
12 | if (!videoConfig) {
|
13 | if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
14 | throw new Error('No video config found. You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.');
|
15 | }
|
16 | throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
|
17 | }
|
18 | return videoConfig;
|
19 | };
|
20 | exports.useVideoConfig = useVideoConfig;
|