neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 10.4 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.VideoTextureProvider = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function VideoTextureProvider(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, URL = props.URL, Stream = props.Stream, Volume = props.Volume, ForcePlaybackEngine = props.ForcePlaybackEngine, ForceVideoStreamingServiceParsing = props.ForceVideoStreamingServiceParsing, CurrentPlaybackEngine = props.CurrentPlaybackEngine, CurrentClockError = props.CurrentClockError, FilterMode = props.FilterMode, AnisotropicLevel = props.AnisotropicLevel, WrapModeU = props.WrapModeU, WrapModeV = props.WrapModeV, AudioTrackIndex = props.AudioTrackIndex, PreferAudioOnly = props.PreferAudioOnly, MaxWidth = props.MaxWidth, MaxHeight = props.MaxHeight;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.VideoTextureProvider", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Uri]", name: "URL", id: typeof URL === "object" && "id" in URL ? URL === null || URL === void 0 ? void 0 : URL.id : undefined, value: typeof URL === "object" && "value" in URL ? URL === null || URL === void 0 ? void 0 : URL.value : URL, isRaw: typeof URL === "object" && "isRaw" in URL && URL.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Stream", id: typeof Stream === "object" && "id" in Stream ? Stream === null || Stream === void 0 ? void 0 : Stream.id : undefined, value: typeof Stream === "object" && "value" in Stream ? Stream === null || Stream === void 0 ? void 0 : Stream.value : Stream, isRaw: typeof Stream === "object" && "isRaw" in Stream && Stream.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Volume", id: typeof Volume === "object" && "id" in Volume ? Volume === null || Volume === void 0 ? void 0 : Volume.id : undefined, value: typeof Volume === "object" && "value" in Volume ? Volume === null || Volume === void 0 ? void 0 : Volume.value : Volume, isRaw: typeof Volume === "object" && "isRaw" in Volume && Volume.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.String]", name: "ForcePlaybackEngine", id: typeof ForcePlaybackEngine === "object" && "id" in ForcePlaybackEngine ? ForcePlaybackEngine === null || ForcePlaybackEngine === void 0 ? void 0 : ForcePlaybackEngine.id : undefined, value: typeof ForcePlaybackEngine === "object" && "value" in ForcePlaybackEngine ? ForcePlaybackEngine === null || ForcePlaybackEngine === void 0 ? void 0 : ForcePlaybackEngine.value : ForcePlaybackEngine, isRaw: typeof ForcePlaybackEngine === "object" && "isRaw" in ForcePlaybackEngine && ForcePlaybackEngine.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "ForceVideoStreamingServiceParsing", id: typeof ForceVideoStreamingServiceParsing === "object" && "id" in ForceVideoStreamingServiceParsing ? ForceVideoStreamingServiceParsing === null || ForceVideoStreamingServiceParsing === void 0 ? void 0 : ForceVideoStreamingServiceParsing.id : undefined, value: typeof ForceVideoStreamingServiceParsing === "object" && "value" in ForceVideoStreamingServiceParsing ? ForceVideoStreamingServiceParsing === null || ForceVideoStreamingServiceParsing === void 0 ? void 0 : ForceVideoStreamingServiceParsing.value : ForceVideoStreamingServiceParsing, isRaw: typeof ForceVideoStreamingServiceParsing === "object" && "isRaw" in ForceVideoStreamingServiceParsing && ForceVideoStreamingServiceParsing.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RawOutput`1[System.String]", name: "CurrentPlaybackEngine", id: typeof CurrentPlaybackEngine === "object" && "id" in CurrentPlaybackEngine ? CurrentPlaybackEngine === null || CurrentPlaybackEngine === void 0 ? void 0 : CurrentPlaybackEngine.id : undefined, value: typeof CurrentPlaybackEngine === "object" && "value" in CurrentPlaybackEngine ? CurrentPlaybackEngine === null || CurrentPlaybackEngine === void 0 ? void 0 : CurrentPlaybackEngine.value : CurrentPlaybackEngine, isRaw: typeof CurrentPlaybackEngine === "object" && "isRaw" in CurrentPlaybackEngine && CurrentPlaybackEngine.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RawOutput`1[System.Single]", name: "CurrentClockError", id: typeof CurrentClockError === "object" && "id" in CurrentClockError ? CurrentClockError === null || CurrentClockError === void 0 ? void 0 : CurrentClockError.id : undefined, value: typeof CurrentClockError === "object" && "value" in CurrentClockError ? CurrentClockError === null || CurrentClockError === void 0 ? void 0 : CurrentClockError.value : CurrentClockError, isRaw: typeof CurrentClockError === "object" && "isRaw" in CurrentClockError && CurrentClockError.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.TextureFilterMode]", name: "FilterMode", id: typeof FilterMode === "object" && "id" in FilterMode ? FilterMode === null || FilterMode === void 0 ? void 0 : FilterMode.id : undefined, value: typeof FilterMode === "object" && "value" in FilterMode ? FilterMode === null || FilterMode === void 0 ? void 0 : FilterMode.value : FilterMode, isRaw: typeof FilterMode === "object" && "isRaw" in FilterMode && FilterMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "AnisotropicLevel", id: typeof AnisotropicLevel === "object" && "id" in AnisotropicLevel ? AnisotropicLevel === null || AnisotropicLevel === void 0 ? void 0 : AnisotropicLevel.id : undefined, value: typeof AnisotropicLevel === "object" && "value" in AnisotropicLevel ? AnisotropicLevel === null || AnisotropicLevel === void 0 ? void 0 : AnisotropicLevel.value : AnisotropicLevel, isRaw: typeof AnisotropicLevel === "object" && "isRaw" in AnisotropicLevel && AnisotropicLevel.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.TextureWrapMode]", name: "WrapModeU", id: typeof WrapModeU === "object" && "id" in WrapModeU ? WrapModeU === null || WrapModeU === void 0 ? void 0 : WrapModeU.id : undefined, value: typeof WrapModeU === "object" && "value" in WrapModeU ? WrapModeU === null || WrapModeU === void 0 ? void 0 : WrapModeU.value : WrapModeU, isRaw: typeof WrapModeU === "object" && "isRaw" in WrapModeU && WrapModeU.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.TextureWrapMode]", name: "WrapModeV", id: typeof WrapModeV === "object" && "id" in WrapModeV ? WrapModeV === null || WrapModeV === void 0 ? void 0 : WrapModeV.id : undefined, value: typeof WrapModeV === "object" && "value" in WrapModeV ? WrapModeV === null || WrapModeV === void 0 ? void 0 : WrapModeV.value : WrapModeV, isRaw: typeof WrapModeV === "object" && "isRaw" in WrapModeV && WrapModeV.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[System.Int32]]", name: "AudioTrackIndex", id: typeof AudioTrackIndex === "object" && "id" in AudioTrackIndex ? AudioTrackIndex === null || AudioTrackIndex === void 0 ? void 0 : AudioTrackIndex.id : undefined, value: typeof AudioTrackIndex === "object" && "value" in AudioTrackIndex ? AudioTrackIndex === null || AudioTrackIndex === void 0 ? void 0 : AudioTrackIndex.value : AudioTrackIndex, isRaw: typeof AudioTrackIndex === "object" && "isRaw" in AudioTrackIndex && AudioTrackIndex.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "PreferAudioOnly", id: typeof PreferAudioOnly === "object" && "id" in PreferAudioOnly ? PreferAudioOnly === null || PreferAudioOnly === void 0 ? void 0 : PreferAudioOnly.id : undefined, value: typeof PreferAudioOnly === "object" && "value" in PreferAudioOnly ? PreferAudioOnly === null || PreferAudioOnly === void 0 ? void 0 : PreferAudioOnly.value : PreferAudioOnly, isRaw: typeof PreferAudioOnly === "object" && "isRaw" in PreferAudioOnly && PreferAudioOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[System.Int32]]", name: "MaxWidth", id: typeof MaxWidth === "object" && "id" in MaxWidth ? MaxWidth === null || MaxWidth === void 0 ? void 0 : MaxWidth.id : undefined, value: typeof MaxWidth === "object" && "value" in MaxWidth ? MaxWidth === null || MaxWidth === void 0 ? void 0 : MaxWidth.value : MaxWidth, isRaw: typeof MaxWidth === "object" && "isRaw" in MaxWidth && MaxWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[System.Int32]]", name: "MaxHeight", id: typeof MaxHeight === "object" && "id" in MaxHeight ? MaxHeight === null || MaxHeight === void 0 ? void 0 : MaxHeight.id : undefined, value: typeof MaxHeight === "object" && "value" in MaxHeight ? MaxHeight === null || MaxHeight === void 0 ? void 0 : MaxHeight.value : MaxHeight, isRaw: typeof MaxHeight === "object" && "isRaw" in MaxHeight && MaxHeight.isRaw ? true : undefined })] })));
}
exports.VideoTextureProvider = VideoTextureProvider;
;