UNPKG

@omnia/fx-models

Version:
32 lines (31 loc) 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MediaPickerYoutubeProvider = void 0; const Constants_1 = require("../../Constants"); const Enums_1 = require("../../Enums"); const ManifestIds_1 = require("../../ManifestIds"); const Icon_1 = require("../../Icon"); class MediaPickerYoutubeProvider { constructor() { this.hasEditorForMedia = (media) => { let result = false; if (media) { const videoUrl = media.videoUrl; if (videoUrl && videoUrl.startsWith("https://www.youtube.com")) { result = true; } } return result; }; this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.youtube; this.category = "video"; this.name = "Omnia.Ux.YouTubeProvider.Title"; this.icon = new Icon_1.FontAwesomeIcon("fab fa-youtube"); //this.providerElementName = "omfx-media-picker-you-tube-provider"; this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxYoutubeProvider; this.sortOrder = 60; this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Video]; this.supportGalleryFeature = true; } } exports.MediaPickerYoutubeProvider = MediaPickerYoutubeProvider;