Files
story-studio/remotion/node_modules/@remotion/player/dist/cjs/use-remotion-license-acknowledge.js
2026-02-21 10:33:18 +01:00

17 lines
733 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.acknowledgeRemotionLicenseMessage = void 0;
const remotion_1 = require("remotion");
let warningShown = false;
const acknowledgeRemotionLicenseMessage = (acknowledge, logLevel) => {
if (acknowledge) {
return;
}
if (warningShown) {
return;
}
warningShown = true;
remotion_1.Internals.Log.warn({ logLevel, tag: null }, 'Note: Some companies are required to obtain a license to use Remotion. See: https://remotion.dev/license\nPass the `acknowledgeRemotionLicense` prop to `<Player />` function to make this message disappear.');
};
exports.acknowledgeRemotionLicenseMessage = acknowledgeRemotionLicenseMessage;