camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
20 lines (19 loc) • 841 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.rtmpSchema = exports.commonRtmpSchema = void 0;
const zod_1 = __importDefault(require("zod"));
const streamCommonTypes_1 = require("./streamCommonTypes");
exports.commonRtmpSchema = streamCommonTypes_1.streamCommonSchema.extend({
outputUrl: zod_1.default.string(),
streamKey: zod_1.default.string(),
streamIdentifier: zod_1.default.string().optional(),
saveToSdCard: zod_1.default.boolean(),
statusCameraLed: zod_1.default.boolean(),
statusCameraOutput: zod_1.default.string().nullable(),
});
exports.rtmpSchema = exports.commonRtmpSchema.extend({
type: zod_1.default.literal('rtmp'),
});