Files

22 lines
633 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendUsageEvent = void 0;
const licensing_1 = require("@remotion/licensing");
const sendUsageEvent = async ({ apiKey, succeeded, }) => {
const host = typeof window === 'undefined'
? null
: typeof window.location === 'undefined'
? null
: (window.location.origin ?? null);
if (host === null) {
return;
}
await (0, licensing_1.registerUsageEvent)({
apiKey,
event: 'webcodec-conversion',
host,
succeeded,
});
};
exports.sendUsageEvent = sendUsageEvent;