spectatr-player-sdk
Version:
A custom video player built with Stencil with Shaka Player integration
27 lines (21 loc) • 2.91 kB
JavaScript
;
var index = require('./index-0JnMzfvO.js');
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
/*
Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
*/
var patchBrowser = () => {
const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('spectatr-player-sdk.cjs.js', document.baseURI).href));
const opts = {};
if (importMeta !== "") {
opts.resourcesUrl = new URL(".", importMeta).href;
}
return index.promiseResolve(opts);
};
patchBrowser().then(async (options) => {
await appGlobals.globalScripts();
return index.bootstrapLazy([["spectatr-player-sdk_3.cjs",[[257,"spectatr-player-sdk",{"clientId":[1,"clientid"],"baseUrl":[1,"baseurl"],"videoId":[1,"videoid"],"userId":[1,"userid"],"autoPlay":[4,"autoplay"],"showSuggestions":[4,"showsuggestions"],"captureReaction":[4,"capturereaction"],"theme":[1],"_videoId":[32],"_nextVideoId":[32],"_clientId":[32],"_userId":[32],"_baseUrl":[32],"_autoPlay":[32],"_showSuggestions":[32],"_captureReaction":[32],"_theme":[32],"isIframe":[32],"suggestions":[32],"suggestionsHeight":[32]}],[257,"video-player",{"videoId":[1,"video-id"],"nextVideoId":[1,"next-video-id"],"clientId":[1,"client-id"],"userId":[1,"user-id"],"baseUrl":[1,"base-url"],"autoPlay":[4,"auto-play"],"captureReaction":[4,"capture-reaction"],"setVideoId":[16],"tempVideoId":[32],"src":[32],"token":[32],"isLive":[32],"isDvrEnabled":[32],"quizzes":[32],"polls":[32],"statistics":[32],"scheduleTime":[32],"showStartStream":[32],"timelineEvents":[32],"videoTitle":[32],"videoDescription":[32],"createdAt":[32],"isLiked":[32],"isDisliked":[32],"totalLikes":[32],"totalViews":[32],"poster":[32],"isPlaying":[32],"currentTime":[32],"duration":[32],"volume":[32],"isMuted":[32],"isFullscreen":[32],"showControls":[32],"showSettings":[32],"showQuiz":[32],"showPoll":[32],"showStatistics":[32],"showFullDescription":[32],"currentQuiz":[32],"currentPoll":[32],"currentStatistics":[32],"qualities":[32],"currentQuality":[32],"audioTracks":[32],"currentAudioTrack":[32],"isLoading":[32],"showMainSettings":[32],"showQualityOptions":[32],"showAudioOptions":[32],"hasVideoStarted":[32],"quizAnswered":[32],"pollAnswered":[32],"progressTrackingInterval":[32]},null,{"videoId":["handleVideoIdChange"]}],[257,"video-suggestions",{"handlePlaySuggestion":[16],"setSuggestions":[16],"baseUrl":[1,"base-url"],"clientId":[1,"client-id"],"videoId":[1,"video-id"],"height":[2],"suggestions":[32],"page":[32],"limit":[32],"totalData":[32]},null,{"suggestions":["handleSuggestions"]}]]]], options);
});
exports.setNonce = index.setNonce;
//# sourceMappingURL=spectatr-player-sdk.cjs.js.map