@mux/mux-player 1.7.2 → 1.8.0-canary.0-4b77df4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +577 -0
- package/dist/cjs.json +1 -0
- package/dist/esm.json +1 -0
- package/dist/iife.json +1 -0
- package/dist/index.cjs.js +25 -25
- package/dist/index.mjs +17 -17
- package/dist/module.json +1 -0
- package/dist/mux-player.js +74 -74
- package/dist/mux-player.mjs +74 -74
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/helpers.d.ts +2 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types-ts3.4/helpers.d.ts +2 -1
- package/dist/types-ts3.4/index.d.ts +1 -0
- package/package.json +4 -5
- package/LICENSE +0 -9
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
${i}${t.file}`}_(a)}var y={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},F={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},dt=Object.freeze({length:0,start(t){let a=t>>>0;if(a>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${a}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(t){let a=t>>>0;if(a>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${a}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Ut=Ft.filter(t=>t!=="error"),Yt=Object.values(y).filter(t=>![y.PLAYSINLINE].includes(t)),Zt=Object.values(F);function ut(t){t.querySelectorAll(":scope > track").forEach(a=>{var e;(e=t.media)==null||e.append(a.cloneNode())}),Ut.forEach(a=>{var e;(e=t.media)==null||e.addEventListener(a,i=>{t.dispatchEvent(new Event(i.type))})})}var Ie=class extends p.HTMLElement{static get observedAttributes(){return[...Yt,...Zt]}constructor(){super(),this.querySelectorAll(":scope > track").forEach(i=>{var r;(r=this.media)==null||r.append(i.cloneNode())});let a=i=>{for(let r of i)r.type==="childList"&&(r.removedNodes.forEach(o=>{var m,g;let n=(m=this.media)==null?void 0:m.querySelector(`track[src="${o.src}"]`);n&&((g=this.media)==null||g.removeChild(n))}),r.addedNodes.forEach(o=>{var n;(n=this.media)==null||n.append(o.cloneNode())}))};new MutationObserver(a).observe(this,{childList:!0,subtree:!0})}attributeChangedCallback(a,e,i){var r,o;switch(a){case F.MUTED:{this.media&&(this.media.muted=i!=null,this.media.defaultMuted=i!=null);return}case F.VOLUME:{let n=(r=
|
|
1
|
+
var Le=(t,a,e)=>{if(!a.has(t))throw TypeError("Cannot "+e)};var l=(t,a,e)=>(Le(t,a,"read from private field"),e?e.call(t):a.get(t)),c=(t,a,e)=>{if(a.has(t))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(t):a.set(t,e)},A=(t,a,e,i)=>(Le(t,a,"write to private field"),i?i.call(t,e):a.set(t,e),e);var b=(t,a,e)=>(Le(t,a,"access private method"),e);var j=class{addEventListener(){}removeEventListener(){}dispatchEvent(a){return!0}};if(typeof DocumentFragment=="undefined"){class t extends j{}globalThis.DocumentFragment=t}var X=class extends j{},Se=class extends j{},Dt={get(t){},define(t,a,e){},upgrade(t){},whenDefined(t){return Promise.resolve(X)}},Q,Ce=class{constructor(a,e={}){c(this,Q,void 0);A(this,Q,e==null?void 0:e.detail)}get detail(){return l(this,Q)}initCustomEvent(){}};Q=new WeakMap;function It(t,a){return new X}var Qe={document:{createElement:It},DocumentFragment,customElements:Dt,CustomEvent:Ce,EventTarget:j,HTMLElement:X,HTMLVideoElement:Se},et=typeof window=="undefined"||typeof globalThis.customElements=="undefined",p=et?Qe:globalThis,v=et?Qe.document:globalThis.document;import{MediaController as sa}from"media-chrome";import"media-chrome/dist/experimental/media-captions-menu-button.js";import la,{MediaError as $e,Attributes as u}from"@mux/mux-video";import{StreamTypes as C,PlaybackTypes as Te,addTextTrack as da,removeTextTrack as ua,CmcdTypeValues as Lt}from"@mux/playback-core";import{VideoEvents as Ft}from"@mux/mux-video";var _t="en",H={code:_t};var tt="en";function d(t,a=!0){var r,o;let e=a&&(o=(r=H)==null?void 0:r[t])!=null?o:t,i=a?H.code:tt;return new Me(e,i)}var Me=class{constructor(a,e=(i=>(i=H.code)!=null?i:tt)()){this.message=a,this.locale=e}format(a){return this.message.replace(/\{(\w+)\}/g,(e,i)=>{var r;return(r=a[i])!=null?r:""})}toString(){return this.message}};function at(t){let a="";return Object.entries(t).forEach(([e,i])=>{i!=null&&(a+=`${Nt(e)}: ${i}; `)}),a?a.trim():void 0}function Nt(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function it(t){return t.replace(/[-_]([a-z])/g,(a,e)=>e.toUpperCase())}function L(t){if(t==null)return;let a=+t;return Number.isNaN(a)?void 0:a}function ce(t){let a=Vt(t).toString();return a?"?"+a:""}function Vt(t){let a={};for(let e in t)t[e]!=null&&(a[e]=t[e]);return new URLSearchParams(a)}function I(t){let a=(t!=null?t:"").split(".")[1];if(!a)return{};let e=a.replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map(function(r){return"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}var Pe=(t,a)=>!t||!a?!1:t.contains(a)?!0:Pe(t,a.getRootNode().host);var Be="mux.com",Ht=()=>{try{return"1.8.0"}catch{}return"UNKNOWN"},$t=Ht(),be=()=>$t,De=(t,{maxResolution:a,token:e,domain:i=Be}={})=>{let n=!!e?{token:e}:{redundant_streams:!0,...a?{max_resolution:a}:{}};return`https://stream.${i}/${t}.m3u8${ce(n)}`},rt=(t,{token:a,thumbnailTime:e,domain:i=Be}={})=>{let r=a==null?e:void 0,{aud:o}=I(a);if(!(a&&o!=="t"))return`https://image.${i}/${t}/thumbnail.webp${ce({token:a,time:r})}`},ot=(t,{token:a,domain:e=Be}={})=>{let{aud:i}=I(a);if(!(a&&i!=="s"))return`https://image.${e}/${t}/storyboard.vtt${ce({token:a,format:"webp"})}`};var Kt={crossorigin:"crossOrigin",playsinline:"playsInline"};function nt(t){var a;return(a=Kt[t])!=null?a:it(t)}var $,K,k,pe=class{constructor(a,e){c(this,$,void 0);c(this,K,void 0);c(this,k,[]);A(this,$,a),A(this,K,e)}[Symbol.iterator](){return l(this,k).values()}get length(){return l(this,k).length}get value(){var a;return(a=l(this,k).join(" "))!=null?a:""}set value(a){var e;a!==this.value&&(A(this,k,[]),this.add(...(e=a==null?void 0:a.split(" "))!=null?e:[]))}toString(){return this.value}item(a){return l(this,k)[a]}values(){return l(this,k).values()}keys(){return l(this,k).keys()}forEach(a){l(this,k).forEach(a)}add(...a){var e,i;a.forEach(r=>{this.contains(r)||l(this,k).push(r)}),!(this.value===""&&!((e=l(this,$))!=null&&e.hasAttribute(`${l(this,K)}`)))&&((i=l(this,$))==null||i.setAttribute(`${l(this,K)}`,`${this.value}`))}remove(...a){var e;a.forEach(i=>{l(this,k).splice(l(this,k).indexOf(i),1)}),(e=l(this,$))==null||e.setAttribute(`${l(this,K)}`,`${this.value}`)}contains(a){return l(this,k).includes(a)}toggle(a,e){return typeof e!="undefined"?e?(this.add(a),!0):(this.remove(a),!1):this.contains(a)?(this.remove(a),!1):(this.add(a),!0)}replace(a,e){this.remove(a),this.add(e)}};$=new WeakMap,K=new WeakMap,k=new WeakMap;var st=`[mux-player ${be()}]`;function _(...t){console.warn(st,...t)}function x(...t){console.error(st,...t)}function he(t){var e;let a=(e=t.message)!=null?e:"";if(t.file){let i="https://github.com/muxinc/elements/blob/main/errors/";a+=` ${d("Read more: ")}
|
|
2
|
+
${i}${t.file}`}_(a)}var y={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},F={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},dt=Object.freeze({length:0,start(t){let a=t>>>0;if(a>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${a}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(t){let a=t>>>0;if(a>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${a}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Ut=Ft.filter(t=>t!=="error"),Yt=Object.values(y).filter(t=>![y.PLAYSINLINE].includes(t)),Zt=Object.values(F);function ut(t){t.querySelectorAll(":scope > track").forEach(a=>{var e;(e=t.media)==null||e.append(a.cloneNode())}),Ut.forEach(a=>{var e;(e=t.media)==null||e.addEventListener(a,i=>{t.dispatchEvent(new Event(i.type))})})}var Ie=class extends p.HTMLElement{static get observedAttributes(){return[...Yt,...Zt]}constructor(){super(),this.querySelectorAll(":scope > track").forEach(i=>{var r;(r=this.media)==null||r.append(i.cloneNode())});let a=i=>{for(let r of i)r.type==="childList"&&(r.removedNodes.forEach(o=>{var m,g;let n=(m=this.media)==null?void 0:m.querySelector(`track[src="${o.src}"]`);n&&((g=this.media)==null||g.removeChild(n))}),r.addedNodes.forEach(o=>{var n;(n=this.media)==null||n.append(o.cloneNode())}))};new MutationObserver(a).observe(this,{childList:!0,subtree:!0})}attributeChangedCallback(a,e,i){var r,o;switch(a){case F.MUTED:{this.media&&(this.media.muted=i!=null,this.media.defaultMuted=i!=null);return}case F.VOLUME:{let n=(r=L(i))!=null?r:1;this.media&&(this.media.volume=n);return}case F.PLAYBACKRATE:{let n=(o=L(i))!=null?o:1;this.media&&(this.media.playbackRate=n,this.media.defaultPlaybackRate=n);return}}}play(){var a,e;return(e=(a=this.media)==null?void 0:a.play())!=null?e:Promise.reject()}pause(){var a;(a=this.media)==null||a.pause()}requestCast(a){var e;return(e=this.media)==null?void 0:e.requestCast(a)}get media(){var a;return(a=this.shadowRoot)==null?void 0:a.querySelector("mux-video")}get paused(){var a,e;return(e=(a=this.media)==null?void 0:a.paused)!=null?e:!0}get duration(){var a,e;return(e=(a=this.media)==null?void 0:a.duration)!=null?e:NaN}get ended(){var a,e;return(e=(a=this.media)==null?void 0:a.ended)!=null?e:!1}get buffered(){var a,e;return(e=(a=this.media)==null?void 0:a.buffered)!=null?e:dt}get seekable(){var a,e;return(e=(a=this.media)==null?void 0:a.seekable)!=null?e:dt}get readyState(){var a,e;return(e=(a=this.media)==null?void 0:a.readyState)!=null?e:0}get videoWidth(){var a,e;return(e=(a=this.media)==null?void 0:a.videoWidth)!=null?e:0}get videoHeight(){var a,e;return(e=(a=this.media)==null?void 0:a.videoHeight)!=null?e:0}get currentTime(){var a,e;return(e=(a=this.media)==null?void 0:a.currentTime)!=null?e:0}set currentTime(a){this.media&&(this.media.currentTime=Number(a))}get volume(){var a,e;return(e=(a=this.media)==null?void 0:a.volume)!=null?e:1}set volume(a){this.media&&(this.media.volume=Number(a))}get playbackRate(){var a,e;return(e=(a=this.media)==null?void 0:a.playbackRate)!=null?e:1}set playbackRate(a){this.media&&(this.media.playbackRate=Number(a))}get defaultPlaybackRate(){var a;return(a=L(this.getAttribute(F.PLAYBACKRATE)))!=null?a:1}set defaultPlaybackRate(a){a!=null?this.setAttribute(F.PLAYBACKRATE,`${a}`):this.removeAttribute(F.PLAYBACKRATE)}get crossOrigin(){return ee(this,y.CROSSORIGIN)}set crossOrigin(a){this.setAttribute(y.CROSSORIGIN,`${a}`)}get autoplay(){return ee(this,y.AUTOPLAY)!=null}set autoplay(a){a?this.setAttribute(y.AUTOPLAY,typeof a=="string"?a:""):this.removeAttribute(y.AUTOPLAY)}get loop(){return ee(this,y.LOOP)!=null}set loop(a){a?this.setAttribute(y.LOOP,""):this.removeAttribute(y.LOOP)}get muted(){var a,e;return(e=(a=this.media)==null?void 0:a.muted)!=null?e:!1}set muted(a){this.media&&(this.media.muted=Boolean(a))}get defaultMuted(){return ee(this,y.MUTED)!=null}set defaultMuted(a){a?this.setAttribute(y.MUTED,""):this.removeAttribute(y.MUTED)}get playsInline(){return ee(this,y.PLAYSINLINE)!=null}set playsInline(a){x("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(a){["","none","metadata","auto"].includes(a)?this.setAttribute(y.PRELOAD,a):this.removeAttribute(y.PRELOAD)}};function ee(t,a){return t.media?t.media.getAttribute(a):t.getAttribute(a)}var _e=Ie;import"media-chrome/dist/media-theme-element.js";var ct=`
|
|
3
3
|
:host {
|
|
4
4
|
cursor: pointer;
|
|
5
5
|
}
|
|
@@ -1019,17 +1019,17 @@ a {
|
|
|
1019
1019
|
</svg>
|
|
1020
1020
|
</button>
|
|
1021
1021
|
</slot>
|
|
1022
|
-
`;var ae=class extends Ne{constructor(){var a,e;super(),(e=(a=this.shadowRoot)==null?void 0:a.querySelector(".close"))==null||e.addEventListener("click",()=>{this.close()})}};ae.template=kt;p.customElements.get("mxp-dialog")||(p.customElements.define("mxp-dialog",ae),p.MxpDialog=ae);import{TemplateInstance as Gt,ChildNodePart as ye,AttrPart as ve}from"media-chrome/dist/media-theme-element.js";var ie=new WeakMap,re=class{constructor(a,e){this.element=a;this.type=e;this.element.addEventListener(this.type,this);let i=ie.get(this.element);i&&i.set(this.type,this)}set(a){if(typeof a=="function")this.handleEvent=a.bind(this.element);else if(typeof a=="object"&&typeof a.handleEvent=="function")this.handleEvent=a.handleEvent.bind(a);else{this.element.removeEventListener(this.type,this);let e=ie.get(this.element);e&&e.delete(this.type)}}static for(a){ie.has(a.element)||ie.set(a.element,new Map);let e=a.attributeName.slice(2),i=ie.get(a.element);return i&&i.has(e)?i.get(e):new re(a.element,e)}};function zt(t,a){return t instanceof ve&&t.attributeName.startsWith("on")?(re.for(t).set(a),t.element.removeAttributeNS(t.attributeNamespace,t.attributeName),!0):!1}function Jt(t,a){return a instanceof fe&&t instanceof ye?(a.renderInto(t),!0):!1}function
|
|
1022
|
+
`;var ae=class extends Ne{constructor(){var a,e;super(),(e=(a=this.shadowRoot)==null?void 0:a.querySelector(".close"))==null||e.addEventListener("click",()=>{this.close()})}};ae.template=kt;p.customElements.get("mxp-dialog")||(p.customElements.define("mxp-dialog",ae),p.MxpDialog=ae);import{TemplateInstance as Gt,ChildNodePart as ye,AttrPart as ve}from"media-chrome/dist/media-theme-element.js";var ie=new WeakMap,re=class{constructor(a,e){this.element=a;this.type=e;this.element.addEventListener(this.type,this);let i=ie.get(this.element);i&&i.set(this.type,this)}set(a){if(typeof a=="function")this.handleEvent=a.bind(this.element);else if(typeof a=="object"&&typeof a.handleEvent=="function")this.handleEvent=a.handleEvent.bind(a);else{this.element.removeEventListener(this.type,this);let e=ie.get(this.element);e&&e.delete(this.type)}}static for(a){ie.has(a.element)||ie.set(a.element,new Map);let e=a.attributeName.slice(2),i=ie.get(a.element);return i&&i.has(e)?i.get(e):new re(a.element,e)}};function zt(t,a){return t instanceof ve&&t.attributeName.startsWith("on")?(re.for(t).set(a),t.element.removeAttributeNS(t.attributeNamespace,t.attributeName),!0):!1}function Jt(t,a){return a instanceof fe&&t instanceof ye?(a.renderInto(t),!0):!1}function Xt(t,a){return a instanceof DocumentFragment&&t instanceof ye?(a.childNodes.length&&t.replace(...a.childNodes),!0):!1}function Qt(t,a){if(t instanceof ve){let e=t.attributeNamespace,i=t.element.getAttributeNS(e,t.attributeName);return String(a)!==i&&(t.value=String(a)),!0}return t.value=String(a),!0}function ea(t,a){if(t instanceof ve&&a instanceof Element){let e=t.element;return e[t.attributeName]!==a&&(t.element.removeAttributeNS(t.attributeNamespace,t.attributeName),e[t.attributeName]=a),!0}return!1}function ta(t,a){if(typeof a=="boolean"&&t instanceof ve){let e=t.attributeNamespace,i=t.element.hasAttributeNS(e,t.attributeName);return a!==i&&(t.booleanValue=a),!0}return!1}function aa(t,a){return a===!1&&t instanceof ye?(t.replace(""),!0):!1}function ia(t,a){ea(t,a)||ta(t,a)||zt(t,a)||aa(t,a)||Jt(t,a)||Xt(t,a)||Qt(t,a)}var Ve=new Map,Et=new WeakMap,At=new WeakMap,fe=class{constructor(a,e,i){this.strings=a;this.values=e;this.processor=i;this.stringsKey=this.strings.join("")}get template(){if(Ve.has(this.stringsKey))return Ve.get(this.stringsKey);{let a=v.createElement("template"),e=this.strings.length-1;return a.innerHTML=this.strings.reduce((i,r,o)=>i+r+(o<e?`{{ ${o} }}`:""),""),Ve.set(this.stringsKey,a),a}}renderInto(a){let e=this.template;if(Et.get(a)!==e){Et.set(a,e);let r=new Gt(e,this.values,this.processor);At.set(a,r),a instanceof ye?a.replace(...r.children):a.appendChild(r);return}let i=At.get(a);i&&i.update(this.values)}},ra={processCallback(t,a,e){var i;if(!!e){for(let[r,o]of a)if(r in e){let n=(i=e[r])!=null?i:"";ia(o,n)}}}};function S(t,...a){return new fe(t,a,ra)}function Tt(t,a){t.renderInto(a)}import{StreamTypes as ke}from"@mux/playback-core";var He=v.createElement("template");"innerHTML"in He&&(He.innerHTML=ht);var xt=t=>S`
|
|
1023
1023
|
<style>
|
|
1024
1024
|
${bt}
|
|
1025
1025
|
</style>
|
|
1026
1026
|
${na(t)}
|
|
1027
|
-
`,wt=t=>[ke.LIVE,ke.LL_LIVE].includes(t.streamType),
|
|
1027
|
+
`,wt=t=>[ke.LIVE,ke.LL_LIVE].includes(t.streamType),Ot=t=>[ke.DVR,ke.LL_DVR].includes(t.streamType),Rt=t=>wt(t)||Ot(t),oa=t=>{let a=t.hotKeys?`${t.hotKeys}`:"";return Rt(t)&&(a+=" noarrowleft noarrowright"),a},na=t=>{var a,e,i,r,o,n,m,g,T,E,B,D,h,w,O,R,f,me,J,q,Fe,Ue,Ye,Ze,We,qe,je,Ge,ze,Je,Xe;return S`
|
|
1028
1028
|
<media-theme
|
|
1029
1029
|
template="${(a=t.theme)!=null?a:He.content.children[0]}"
|
|
1030
1030
|
class="${t.secondaryColor?"two-tone":!1}"
|
|
1031
|
-
stream-type="${
|
|
1032
|
-
target-live-window="${
|
|
1031
|
+
stream-type="${Rt(t)?"live":"on-demand"}"
|
|
1032
|
+
target-live-window="${Ot(t)?1:!1}"
|
|
1033
1033
|
hotkeys="${oa(t)||!1}"
|
|
1034
1034
|
nohotkeys="${t.noHotKeys||!t.hasSrc||t.isDialogOpen||!1}"
|
|
1035
1035
|
disabled="${!t.hasSrc||t.isDialogOpen}"
|
|
@@ -1052,8 +1052,8 @@ a {
|
|
|
1052
1052
|
autoplay="${(D=t.autoplay)!=null?D:!1}"
|
|
1053
1053
|
muted="${(h=t.muted)!=null?h:!1}"
|
|
1054
1054
|
loop="${(w=t.loop)!=null?w:!1}"
|
|
1055
|
-
preload="${(
|
|
1056
|
-
debug="${(
|
|
1055
|
+
preload="${(O=t.preload)!=null?O:!1}"
|
|
1056
|
+
debug="${(R=t.debug)!=null?R:!1}"
|
|
1057
1057
|
prefer-cmcd="${(f=t.preferCmcd)!=null?f:!1}"
|
|
1058
1058
|
disable-cookies="${(me=t.disableCookies)!=null?me:!1}"
|
|
1059
1059
|
prefer-playback="${(J=t.preferPlayback)!=null?J:!1}"
|
|
@@ -1064,12 +1064,12 @@ a {
|
|
|
1064
1064
|
env-key="${(Ye=t.envKey)!=null?Ye:!1}"
|
|
1065
1065
|
stream-type="${(Ze=t.streamType)!=null?Ze:!1}"
|
|
1066
1066
|
custom-domain="${(We=t.customDomain)!=null?We:!1}"
|
|
1067
|
-
src="${t.src?t.src:t.playbackId?De(t.playbackId,{domain:t.customDomain,token:t.tokens.playback}):!1}"
|
|
1068
|
-
cast-src="${t.src?t.src:t.playbackId?De(t.playbackId,{domain:t.customDomain,token:t.tokens.playback}):!1}"
|
|
1067
|
+
src="${t.src?t.src:t.playbackId?De(t.playbackId,{maxResolution:t.maxResolution,domain:t.customDomain,token:t.tokens.playback}):!1}"
|
|
1068
|
+
cast-src="${t.src?t.src:t.playbackId?De(t.playbackId,{maxResolution:t.maxResolution,domain:t.customDomain,token:t.tokens.playback}):!1}"
|
|
1069
1069
|
cast-stream-type="${wt(t)?"live":!1}"
|
|
1070
1070
|
exportparts="video"
|
|
1071
1071
|
>
|
|
1072
|
-
${t.storyboard?
|
|
1072
|
+
${t.storyboard?S`<track label="thumbnails" default kind="metadata" src="${t.storyboard}" />`:S``}
|
|
1073
1073
|
</mux-video>
|
|
1074
1074
|
<mxp-dialog
|
|
1075
1075
|
no-auto-hide
|
|
@@ -1077,18 +1077,18 @@ a {
|
|
|
1077
1077
|
onclose="${t.onCloseErrorDialog}"
|
|
1078
1078
|
oninitfocus="${t.onInitFocusDialog}"
|
|
1079
1079
|
>
|
|
1080
|
-
${(je=t.dialog)!=null&&je.title?
|
|
1080
|
+
${(je=t.dialog)!=null&&je.title?S`<h3>${t.dialog.title}</h3>`:S``}
|
|
1081
1081
|
<p>
|
|
1082
1082
|
${(Ge=t.dialog)==null?void 0:Ge.message}
|
|
1083
|
-
${(ze=t.dialog)!=null&&ze.linkUrl?
|
|
1083
|
+
${(ze=t.dialog)!=null&&ze.linkUrl?S`<a
|
|
1084
1084
|
href="${t.dialog.linkUrl}"
|
|
1085
1085
|
target="_blank"
|
|
1086
1086
|
rel="external noopener"
|
|
1087
1087
|
aria-label="${(Je=t.dialog.linkText)!=null?Je:""} ${d("(opens in a new window)")}"
|
|
1088
|
-
>${(
|
|
1089
|
-
>`:
|
|
1088
|
+
>${(Xe=t.dialog.linkText)!=null?Xe:t.dialog.linkUrl}</a
|
|
1089
|
+
>`:S``}
|
|
1090
1090
|
</p>
|
|
1091
1091
|
</mxp-dialog>
|
|
1092
1092
|
</media-theme>
|
|
1093
|
-
`};import{MediaError as Ee}from"@mux/mux-video";function Ae(t,a,e,i,r){var m,g,T;let o={},n={};switch(t.code){case Ee.MEDIA_ERR_NETWORK:{switch(o.title=d("Network Error",r),o.message=t.message,(m=t.data)==null?void 0:m.response.code){case 412:{o.title=d("Video is not currently available",r),o.message=d("The live stream or video file are not yet ready.",r),n.message=d("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",r),n.file="412-not-playable.md";break}case 404:{o.title=d("Video does not exist",r),o.message="",n.message=d("This playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",r),n.file="404-not-found.md";break}case 403:{if(o.title=d("Invalid playback URL",r),o.message=d("The video URL or playback-token are formatted with incorrect or incomplete information.",r),n.message=d("403 error trying to access this playback URL. If this is a signed URL, you might need to provide a playback-token.",r),n.file="missing-signed-tokens.md",!i)break;let{exp:E,aud:B,sub:D}=I(i),h=Date.now()>E*1e3,w=D!==e,L=B!=="v",O={timeStyle:"medium",dateStyle:"medium"};if(h){o.title=d("Video URL has expired",r),o.message=d("The video\u2019s secured playback-token has expired.",r),n.message=d("This playback is using signed URLs and the playback-token has expired. Expired at: {expiredDate}. Current time: {currentDate}.",r).format({expiredDate:new Intl.DateTimeFormat(H.code,O).format(E*1e3),currentDate:new Intl.DateTimeFormat(H.code,O).format(Date.now())}),n.file="403-expired-token.md";break}if(w){o.title=d("Video URL is formatted incorrectly",r),o.message=d("The video\u2019s playback ID does not match the one encoded in the playback-token.",r),n.message=d("The specified playback ID {playbackId} and the playback ID encoded in the playback-token {tokenPlaybackId} do not match.",r).format({playbackId:e,tokenPlaybackId:D}),n.file="403-playback-id-mismatch.md";break}if(L){o.title=d("Video URL is formatted incorrectly",r),o.message=d("The playback-token is formatted with incorrect information.",r),n.message=d("The playback-token has an incorrect aud value: {tokenType}. aud value should be v.",r).format({tokenType:B}),n.file="403-incorrect-aud-value.md";break}n.message=d("403 error trying to access this playback URL. If this is a signed playback ID, the token might not have been generated correctly.",r),n.file="403-malformatted-token.md";break}}break}case Ee.MEDIA_ERR_DECODE:{let{message:E}=t;o={title:d("Media Error",r),message:E},n.file="media-decode-error.md";break}case Ee.MEDIA_ERR_SRC_NOT_SUPPORTED:{let E=(T=(g=t.data)==null?void 0:g.response)==null?void 0:T.code;if(E>=400&&E<500){t.code=Ee.MEDIA_ERR_NETWORK,t.data={response:{code:E}},{dialog:o,devlog:n}=Ae(t,a,e,i);break}o={title:d("Source Not Supported",r),message:t.message},n.file="media-src-not-supported.md";break}default:o={title:d("Error",r),message:t.message};break}return a&&(o={title:d("Your device appears to be offline",r),message:d("Check your internet connection and try reloading this video.",r)}),{dialog:o,devlog:n}}var ma=Object.values(R),M={SRC:"src",POSTER:"poster"},s={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",PLAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",TITLE:"title",PLACEHOLDER:"placeholder"};function ca(t,a){var i;return{src:!t.playbackId&&t.src,playbackId:t.playbackId,hasSrc:!!t.playbackId||!!t.src,poster:t.poster,storyboard:t.storyboard,storyboardSrc:t.getAttribute(s.STORYBOARD_SRC),placeholder:t.getAttribute("placeholder"),theme:t.getAttribute("theme"),thumbnailTime:!t.tokens.thumbnail&&t.thumbnailTime,autoplay:t.autoplay,crossOrigin:t.crossOrigin,loop:t.loop,noHotKeys:t.hasAttribute(s.NOHOTKEYS),hotKeys:t.getAttribute(s.HOTKEYS),muted:t.muted,paused:t.paused,preload:t.preload,envKey:t.envKey,preferCmcd:t.preferCmcd,debug:t.debug,disableCookies:t.disableCookies,tokens:t.tokens,beaconCollectionDomain:t.beaconCollectionDomain,metadata:t.metadata,playerSoftwareName:t.playerSoftwareName,playerSoftwareVersion:t.playerSoftwareVersion,startTime:t.startTime,preferPlayback:t.preferPlayback,audio:t.audio,streamType:t.streamType,primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,forwardSeekOffset:t.forwardSeekOffset,backwardSeekOffset:t.backwardSeekOffset,defaultHiddenCaptions:t.defaultHiddenCaptions,defaultShowRemainingTime:t.defaultShowRemainingTime,playbackRates:t.getAttribute(s.PLAYBACK_RATES),customDomain:(i=t.getAttribute(u.CUSTOM_DOMAIN))!=null?i:void 0,title:t.getAttribute(s.TITLE),...a}}var pa=Object.values(u),ba=Object.values(M),ha=Object.values(s),ga=be(),fa="mux-player",Ct={dialog:void 0,isDialogOpen:!1},V,le,P,de,Y,Z,oe,xe,Rt,ue,Ke,W,ne,we,Mt,Le,Pt,Oe,Bt,se=class extends _e{constructor(){super();c(this,Z);c(this,xe);c(this,ue);c(this,W);c(this,we);c(this,Le);c(this,Oe);c(this,V,!1);c(this,le,{});c(this,P,!0);c(this,de,new pe(this,"hotkeys"));c(this,Y,{...Ct,onCloseErrorDialog:()=>b(this,ue,Ke).call(this,{dialog:void 0,isDialogOpen:!1}),onInitFocusDialog:e=>{Pe(this,v.activeElement)||e.preventDefault()}});this.attachShadow({mode:"open"}),b(this,xe,Rt).call(this),this.isConnected&&b(this,Z,oe).call(this)}static get observedAttributes(){var e;return[...(e=_e.observedAttributes)!=null?e:[],...ba,...pa,...ha]}get theme(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("media-theme")}get mediaController(){var e,i;return(i=(e=this.theme)==null?void 0:e.shadowRoot)==null?void 0:i.querySelector("media-controller")}get metadataFromAttrs(){return this.getAttributeNames().filter(e=>e.startsWith("metadata-")).reduce((e,i)=>{let r=this.getAttribute(i);return r!==null&&(e[i.replace(/^metadata-/,"").replace(/-/g,"_")]=r),e},{})}connectedCallback(){var i;let e=(i=this.shadowRoot)==null?void 0:i.querySelector("mux-video");e&&(e.metadata=this.metadataFromAttrs)}attributeChangedCallback(e,i,r){switch(l(this,V)||b(this,Z,oe).call(this),super.attributeChangedCallback(e,i,r),e){case s.HOTKEYS:l(this,de).value=r;break;case s.THUMBNAIL_TIME:{r!=null&&this.tokens.thumbnail&&_(d("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").format({}));break}case s.THUMBNAIL_TOKEN:{let{aud:n}=I(r);r&&n!=="t"&&_(d("The provided thumbnail-token should have audience value 't' instead of '{aud}'.").format({aud:n}));break}case s.STORYBOARD_TOKEN:{let{aud:n}=I(r);r&&n!=="s"&&_(d("The provided storyboard-token should have audience value 's' instead of '{aud}'.").format({aud:n}));break}case u.PLAYBACK_ID:{r!=null&&r.includes("?token")&&x(d("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:r})),this.streamType?this.streamType!=null&&!ma.includes(this.streamType)&&he({file:"invalid-stream-type.md",message:d("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand`, `live`, `ll-live`, `live:dvr`, or `ll-live:dvr`").format({streamType:this.streamType})}):he({file:"invalid-stream-type.md",message:String(d("No stream-type value supplied. Defaulting to `on-demand`. Please provide stream-type as either: `on-demand`, `live`, `ll-live`, `live:dvr`, or `ll-live:dvr`"))});break}}[u.PLAYBACK_ID,M.SRC,s.PLAYBACK_TOKEN].includes(e)&&i!==r&&A(this,Y,{...l(this,Y),...Ct}),b(this,W,ne).call(this,{[nt(e)]:r})}get preferCmcd(){var e;return(e=this.getAttribute(u.PREFER_CMCD))!=null?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?St.includes(e)?this.setAttribute(u.PREFER_CMCD,e):_(`Invalid value for preferCmcd. Must be one of ${St.join()}`):this.removeAttribute(u.PREFER_CMCD))}get hasPlayed(){var e,i;return(i=(e=this.mediaController)==null?void 0:e.hasAttribute("media-has-played"))!=null?i:!1}get inLiveWindow(){var e;return(e=this.mediaController)==null?void 0:e.hasAttribute("media-time-is-live")}get _hls(){var e;return(e=this.media)==null?void 0:e._hls}get mux(){var e;return(e=this.media)==null?void 0:e.mux}get playbackId(){var e;return(e=this.getAttribute(u.PLAYBACK_ID))!=null?e:void 0}set playbackId(e){e?this.setAttribute(u.PLAYBACK_ID,e):this.removeAttribute(u.PLAYBACK_ID)}get src(){var e,i;return this.playbackId?(e=U(this,M.SRC))!=null?e:void 0:(i=this.getAttribute(M.SRC))!=null?i:void 0}set src(e){e?this.setAttribute(M.SRC,e):this.removeAttribute(M.SRC)}get poster(){var i;let e=this.getAttribute(M.POSTER);if(e!=null)return e;if(this.playbackId&&!this.audio)return rt(this.playbackId,{domain:this.customDomain,thumbnailTime:(i=this.thumbnailTime)!=null?i:this.startTime,token:this.tokens.thumbnail})}set poster(e){e||e===""?this.setAttribute(M.POSTER,e):this.removeAttribute(M.POSTER)}get storyboardSrc(){var e;return(e=this.getAttribute(s.STORYBOARD_SRC))!=null?e:void 0}set storyboardSrc(e){e?this.setAttribute(s.STORYBOARD_SRC,e):this.removeAttribute(s.STORYBOARD_SRC)}get storyboard(){if(!this.audio&&(!this.streamType||![R.LIVE,R.LL_LIVE,R.DVR,R.LL_DVR].includes(this.streamType))){if(this.storyboardSrc&&!this.tokens.storyboard)return this.storyboardSrc;if(this.playbackId)return ot(this.playbackId,{domain:this.customDomain,token:this.tokens.storyboard})}}get audio(){return this.hasAttribute(s.AUDIO)}set audio(e){if(!e){this.removeAttribute(s.AUDIO);return}this.setAttribute(s.AUDIO,"")}get hotkeys(){return l(this,de)}get nohotkeys(){return this.hasAttribute(s.NOHOTKEYS)}set nohotkeys(e){if(!e){this.removeAttribute(s.NOHOTKEYS);return}this.setAttribute(s.NOHOTKEYS,"")}get thumbnailTime(){return S(this.getAttribute(s.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(s.THUMBNAIL_TIME,`${e}`)}get title(){var e;return(e=this.getAttribute(s.TITLE))!=null?e:""}set title(e){e!==this.title&&(e?this.setAttribute(s.TITLE,e):this.removeAttribute("title"),super.title=e)}get placeholder(){var e;return(e=U(this,s.PLACEHOLDER))!=null?e:""}set placeholder(e){this.setAttribute(s.PLACEHOLDER,`${e}`)}get primaryColor(){var e;return(e=this.getAttribute(s.PRIMARY_COLOR))!=null?e:void 0}set primaryColor(e){this.setAttribute(s.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var e;return(e=this.getAttribute(s.SECONDARY_COLOR))!=null?e:"rgb(0 0 0 / .75)"}set secondaryColor(e){this.setAttribute(s.SECONDARY_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(s.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(s.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(s.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(!!this.hasAttribute(s.PLAYBACK_RATES))return this.getAttribute(s.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,i)=>e-i)}set playbackRates(e){if(!e){this.removeAttribute(s.PLAYBACK_RATES);return}this.setAttribute(s.PLAYBACK_RATES,e.join(" "))}get forwardSeekOffset(){var e;return(e=S(this.getAttribute(s.FORWARD_SEEK_OFFSET)))!=null?e:10}set forwardSeekOffset(e){this.setAttribute(s.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return(e=S(this.getAttribute(s.BACKWARD_SEEK_OFFSET)))!=null?e:10}set backwardSeekOffset(e){this.setAttribute(s.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(s.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(s.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(s.DEFAULT_HIDDEN_CAPTIONS)}get playerSoftwareName(){var e;return(e=this.getAttribute(u.PLAYER_SOFTWARE_NAME))!=null?e:fa}get playerSoftwareVersion(){var e;return(e=this.getAttribute(u.PLAYER_SOFTWARE_VERSION))!=null?e:ga}get beaconCollectionDomain(){var e;return(e=this.getAttribute(u.BEACON_COLLECTION_DOMAIN))!=null?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(u.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(u.BEACON_COLLECTION_DOMAIN))}get customDomain(){var e;return(e=this.getAttribute(u.CUSTOM_DOMAIN))!=null?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(u.CUSTOM_DOMAIN,e):this.removeAttribute(u.CUSTOM_DOMAIN))}get envKey(){var e;return(e=U(this,u.ENV_KEY))!=null?e:void 0}set envKey(e){this.setAttribute(u.ENV_KEY,`${e}`)}get debug(){return U(this,u.DEBUG)!=null}set debug(e){e?this.setAttribute(u.DEBUG,""):this.removeAttribute(u.DEBUG)}get disableCookies(){return U(this,u.DISABLE_COOKIES)!=null}set disableCookies(e){e?this.setAttribute(u.DISABLE_COOKIES,""):this.removeAttribute(u.DISABLE_COOKIES)}get streamType(){return U(this,u.STREAM_TYPE)}set streamType(e){this.setAttribute(u.STREAM_TYPE,`${e}`)}get startTime(){return S(U(this,u.START_TIME))}set startTime(e){this.setAttribute(u.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(u.PREFER_PLAYBACK);if(e===Te.MSE||e===Te.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===Te.MSE||e===Te.NATIVE?this.setAttribute(u.PREFER_PLAYBACK,e):this.removeAttribute(u.PREFER_PLAYBACK))}get metadata(){var e;return(e=this.media)==null?void 0:e.metadata}set metadata(e){if(l(this,V)||b(this,Z,oe).call(this),!this.media){x("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...this.metadataFromAttrs,...e}}async addCuePoints(e){var i;if(l(this,V)||b(this,Z,oe).call(this),!this.media){x("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return(i=this.media)==null?void 0:i.addCuePoints(e)}get activeCuePoint(){var e;return(e=this.media)==null?void 0:e.activeCuePoint}get cuePoints(){var e,i;return(i=(e=this.media)==null?void 0:e.cuePoints)!=null?i:[]}get tokens(){let e=this.getAttribute(s.PLAYBACK_TOKEN),i=this.getAttribute(s.THUMBNAIL_TOKEN),r=this.getAttribute(s.STORYBOARD_TOKEN);return{...l(this,le),...e!=null?{playback:e}:{},...i!=null?{thumbnail:i}:{},...r!=null?{storyboard:r}:{}}}set tokens(e){A(this,le,e!=null?e:{})}get playbackToken(){var e;return(e=this.getAttribute(s.PLAYBACK_TOKEN))!=null?e:void 0}set playbackToken(e){this.setAttribute(s.PLAYBACK_TOKEN,`${e}`)}get thumbnailToken(){var e;return(e=this.getAttribute(s.THUMBNAIL_TOKEN))!=null?e:void 0}set thumbnailToken(e){this.setAttribute(s.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return(e=this.getAttribute(s.STORYBOARD_TOKEN))!=null?e:void 0}set storyboardToken(e){this.setAttribute(s.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,i,r,o){var m;let n=(m=this.media)==null?void 0:m.nativeEl;if(!!n)return da(n,e,i,r,o)}removeTextTrack(e){var r;let i=(r=this.media)==null?void 0:r.nativeEl;if(!!i)return ua(i,e)}get textTracks(){var e;return(e=this.media)==null?void 0:e.textTracks}};V=new WeakMap,le=new WeakMap,P=new WeakMap,de=new WeakMap,Y=new WeakMap,Z=new WeakSet,oe=function(){var e,i;if(!l(this,V)){A(this,V,!0),b(this,W,ne).call(this);try{if(customElements.upgrade(this.theme),!(this.theme instanceof p.HTMLElement))throw""}catch{x("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof la))throw""}catch{x("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof sa))throw""}catch{x("<media-controller> failed to upgrade!")}ut(this),b(this,we,Mt).call(this),b(this,Le,Pt).call(this),A(this,P,(i=(e=this.mediaController)==null?void 0:e.hasAttribute("user-inactive"))!=null?i:!0),b(this,Oe,Bt).call(this)}},xe=new WeakSet,Rt=function(){var e,i;try{(e=window==null?void 0:window.CSS)==null||e.registerProperty({name:"--primary-color",syntax:"<color>",inherits:!0,initialValue:"white"}),(i=window==null?void 0:window.CSS)==null||i.registerProperty({name:"--secondary-color",syntax:"<color>",inherits:!0,initialValue:"transparent"})}catch{}},ue=new WeakSet,Ke=function(e){Object.assign(l(this,Y),e),b(this,W,ne).call(this)},W=new WeakSet,ne=function(e={}){Tt(xt(ca(this,{...l(this,Y),...e})),this.shadowRoot)},we=new WeakSet,Mt=function(){var i;let e=r=>{let{detail:o}=r;if(o instanceof $e||(o=new $e(o.message,o.code,o.fatal)),!(o!=null&&o.fatal)){_(o),o.data&&_(`${o.name} data:`,o.data);return}let{dialog:n,devlog:m}=Ae(o,!window.navigator.onLine,this.playbackId,this.playbackToken);m.message&&he(m),x(o),o.data&&x(`${o.name} data:`,o.data),b(this,ue,Ke).call(this,{isDialogOpen:!0,dialog:n})};this.addEventListener("error",e),this.media&&(this.media.errorTranslator=(r={})=>{var n,m,g;if(!((n=this.media)!=null&&n.error))return r;let{devlog:o}=Ae((m=this.media)==null?void 0:m.error,!window.navigator.onLine,this.playbackId,this.playbackToken,!1);return{player_error_code:(g=this.media)==null?void 0:g.error.code,player_error_message:o.message?String(o.message):r.player_error_message}}),(i=this.media)==null||i.addEventListener("error",r=>{var n,m;let{detail:o}=r;if(!o){let{message:g,code:T}=(m=(n=this.media)==null?void 0:n.error)!=null?m:{};o=new $e(g,T)}!(o!=null&&o.fatal)||this.dispatchEvent(new CustomEvent("error",{detail:o}))})},Le=new WeakSet,Pt=function(){var i,r,o,n;let e=()=>b(this,W,ne).call(this);(r=(i=this.media)==null?void 0:i.textTracks)==null||r.addEventListener("addtrack",e),(n=(o=this.media)==null?void 0:o.textTracks)==null||n.addEventListener("removetrack",e)},Oe=new WeakSet,Bt=function(){var E,B,D;let e=this.mediaController,i=/.*Version\/.*Safari\/.*/.test(navigator.userAgent);if(i)return;let r,o=new WeakMap,n=()=>this.streamType&&[R.LIVE,R.LL_LIVE].includes(this.streamType)&&!this.secondaryColor&&this.offsetWidth>=800,m=(h,w,L=!1)=>{if(n())return;Array.from(h&&h.activeCues||[]).forEach(f=>{if(!(!f.snapToLines||f.line<-5||f.line>=0&&f.line<10))if(!w||this.paused){let me=f.text.split(`
|
|
1094
|
-
`).length,J=i?-2:-3;this.streamType&&[
|
|
1093
|
+
`};import{MediaError as Ee}from"@mux/mux-video";function Ae(t,a,e,i,r){var m,g,T;let o={},n={};switch(t.code){case Ee.MEDIA_ERR_NETWORK:{switch(o.title=d("Network Error",r),o.message=t.message,(m=t.data)==null?void 0:m.response.code){case 412:{o.title=d("Video is not currently available",r),o.message=d("The live stream or video file are not yet ready.",r),n.message=d("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",r),n.file="412-not-playable.md";break}case 404:{o.title=d("Video does not exist",r),o.message="",n.message=d("This playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",r),n.file="404-not-found.md";break}case 403:{if(o.title=d("Invalid playback URL",r),o.message=d("The video URL or playback-token are formatted with incorrect or incomplete information.",r),n.message=d("403 error trying to access this playback URL. If this is a signed URL, you might need to provide a playback-token.",r),n.file="missing-signed-tokens.md",!i)break;let{exp:E,aud:B,sub:D}=I(i),h=Date.now()>E*1e3,w=D!==e,O=B!=="v",R={timeStyle:"medium",dateStyle:"medium"};if(h){o.title=d("Video URL has expired",r),o.message=d("The video\u2019s secured playback-token has expired.",r),n.message=d("This playback is using signed URLs and the playback-token has expired. Expired at: {expiredDate}. Current time: {currentDate}.",r).format({expiredDate:new Intl.DateTimeFormat(H.code,R).format(E*1e3),currentDate:new Intl.DateTimeFormat(H.code,R).format(Date.now())}),n.file="403-expired-token.md";break}if(w){o.title=d("Video URL is formatted incorrectly",r),o.message=d("The video\u2019s playback ID does not match the one encoded in the playback-token.",r),n.message=d("The specified playback ID {playbackId} and the playback ID encoded in the playback-token {tokenPlaybackId} do not match.",r).format({playbackId:e,tokenPlaybackId:D}),n.file="403-playback-id-mismatch.md";break}if(O){o.title=d("Video URL is formatted incorrectly",r),o.message=d("The playback-token is formatted with incorrect information.",r),n.message=d("The playback-token has an incorrect aud value: {tokenType}. aud value should be v.",r).format({tokenType:B}),n.file="403-incorrect-aud-value.md";break}n.message=d("403 error trying to access this playback URL. If this is a signed playback ID, the token might not have been generated correctly.",r),n.file="403-malformatted-token.md";break}}break}case Ee.MEDIA_ERR_DECODE:{let{message:E}=t;o={title:d("Media Error",r),message:E},n.file="media-decode-error.md";break}case Ee.MEDIA_ERR_SRC_NOT_SUPPORTED:{let E=(T=(g=t.data)==null?void 0:g.response)==null?void 0:T.code;if(E>=400&&E<500){t.code=Ee.MEDIA_ERR_NETWORK,t.data={response:{code:E}},{dialog:o,devlog:n}=Ae(t,a,e,i);break}o={title:d("Source Not Supported",r),message:t.message},n.file="media-src-not-supported.md";break}default:o={title:d("Error",r),message:t.message};break}return a&&(o={title:d("Your device appears to be offline",r),message:d("Check your internet connection and try reloading this video.",r)}),{dialog:o,devlog:n}}var ma=Object.values(C),M={SRC:"src",POSTER:"poster"},s={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",PLAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",TITLE:"title",PLACEHOLDER:"placeholder"};function ca(t,a){var i;return{src:!t.playbackId&&t.src,playbackId:t.playbackId,hasSrc:!!t.playbackId||!!t.src,poster:t.poster,storyboard:t.storyboard,storyboardSrc:t.getAttribute(s.STORYBOARD_SRC),placeholder:t.getAttribute("placeholder"),theme:t.getAttribute("theme"),thumbnailTime:!t.tokens.thumbnail&&t.thumbnailTime,autoplay:t.autoplay,crossOrigin:t.crossOrigin,loop:t.loop,noHotKeys:t.hasAttribute(s.NOHOTKEYS),hotKeys:t.getAttribute(s.HOTKEYS),muted:t.muted,paused:t.paused,preload:t.preload,envKey:t.envKey,preferCmcd:t.preferCmcd,debug:t.debug,disableCookies:t.disableCookies,tokens:t.tokens,beaconCollectionDomain:t.beaconCollectionDomain,maxResolution:t.maxResolution,metadata:t.metadata,playerSoftwareName:t.playerSoftwareName,playerSoftwareVersion:t.playerSoftwareVersion,startTime:t.startTime,preferPlayback:t.preferPlayback,audio:t.audio,streamType:t.streamType,primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,forwardSeekOffset:t.forwardSeekOffset,backwardSeekOffset:t.backwardSeekOffset,defaultHiddenCaptions:t.defaultHiddenCaptions,defaultShowRemainingTime:t.defaultShowRemainingTime,playbackRates:t.getAttribute(s.PLAYBACK_RATES),customDomain:(i=t.getAttribute(u.CUSTOM_DOMAIN))!=null?i:void 0,title:t.getAttribute(s.TITLE),...a}}var pa=Object.values(u),ba=Object.values(M),ha=Object.values(s),ga=be(),fa="mux-player",St={dialog:void 0,isDialogOpen:!1},V,le,P,de,Y,Z,oe,xe,Ct,ue,Ke,W,ne,we,Mt,Oe,Pt,Re,Bt,se=class extends _e{constructor(){super();c(this,Z);c(this,xe);c(this,ue);c(this,W);c(this,we);c(this,Oe);c(this,Re);c(this,V,!1);c(this,le,{});c(this,P,!0);c(this,de,new pe(this,"hotkeys"));c(this,Y,{...St,onCloseErrorDialog:()=>b(this,ue,Ke).call(this,{dialog:void 0,isDialogOpen:!1}),onInitFocusDialog:e=>{Pe(this,v.activeElement)||e.preventDefault()}});this.attachShadow({mode:"open"}),b(this,xe,Ct).call(this),this.isConnected&&b(this,Z,oe).call(this)}static get observedAttributes(){var e;return[...(e=_e.observedAttributes)!=null?e:[],...ba,...pa,...ha]}get theme(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("media-theme")}get mediaController(){var e,i;return(i=(e=this.theme)==null?void 0:e.shadowRoot)==null?void 0:i.querySelector("media-controller")}get metadataFromAttrs(){return this.getAttributeNames().filter(e=>e.startsWith("metadata-")).reduce((e,i)=>{let r=this.getAttribute(i);return r!==null&&(e[i.replace(/^metadata-/,"").replace(/-/g,"_")]=r),e},{})}connectedCallback(){var i;let e=(i=this.shadowRoot)==null?void 0:i.querySelector("mux-video");e&&(e.metadata=this.metadataFromAttrs)}attributeChangedCallback(e,i,r){switch(l(this,V)||b(this,Z,oe).call(this),super.attributeChangedCallback(e,i,r),e){case s.HOTKEYS:l(this,de).value=r;break;case s.THUMBNAIL_TIME:{r!=null&&this.tokens.thumbnail&&_(d("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").format({}));break}case s.THUMBNAIL_TOKEN:{let{aud:n}=I(r);r&&n!=="t"&&_(d("The provided thumbnail-token should have audience value 't' instead of '{aud}'.").format({aud:n}));break}case s.STORYBOARD_TOKEN:{let{aud:n}=I(r);r&&n!=="s"&&_(d("The provided storyboard-token should have audience value 's' instead of '{aud}'.").format({aud:n}));break}case u.PLAYBACK_ID:{r!=null&&r.includes("?token")&&x(d("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:r})),this.streamType?this.streamType!=null&&!ma.includes(this.streamType)&&he({file:"invalid-stream-type.md",message:d("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand`, `live`, `ll-live`, `live:dvr`, or `ll-live:dvr`").format({streamType:this.streamType})}):he({file:"invalid-stream-type.md",message:String(d("No stream-type value supplied. Defaulting to `on-demand`. Please provide stream-type as either: `on-demand`, `live`, `ll-live`, `live:dvr`, or `ll-live:dvr`"))});break}}[u.PLAYBACK_ID,M.SRC,s.PLAYBACK_TOKEN].includes(e)&&i!==r&&A(this,Y,{...l(this,Y),...St}),b(this,W,ne).call(this,{[nt(e)]:r})}get preferCmcd(){var e;return(e=this.getAttribute(u.PREFER_CMCD))!=null?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?Lt.includes(e)?this.setAttribute(u.PREFER_CMCD,e):_(`Invalid value for preferCmcd. Must be one of ${Lt.join()}`):this.removeAttribute(u.PREFER_CMCD))}get hasPlayed(){var e,i;return(i=(e=this.mediaController)==null?void 0:e.hasAttribute("media-has-played"))!=null?i:!1}get inLiveWindow(){var e;return(e=this.mediaController)==null?void 0:e.hasAttribute("media-time-is-live")}get _hls(){var e;return(e=this.media)==null?void 0:e._hls}get mux(){var e;return(e=this.media)==null?void 0:e.mux}get playbackId(){var e;return(e=this.getAttribute(u.PLAYBACK_ID))!=null?e:void 0}set playbackId(e){e?this.setAttribute(u.PLAYBACK_ID,e):this.removeAttribute(u.PLAYBACK_ID)}get src(){var e,i;return this.playbackId?(e=U(this,M.SRC))!=null?e:void 0:(i=this.getAttribute(M.SRC))!=null?i:void 0}set src(e){e?this.setAttribute(M.SRC,e):this.removeAttribute(M.SRC)}get poster(){var i;let e=this.getAttribute(M.POSTER);if(e!=null)return e;if(this.playbackId&&!this.audio)return rt(this.playbackId,{domain:this.customDomain,thumbnailTime:(i=this.thumbnailTime)!=null?i:this.startTime,token:this.tokens.thumbnail})}set poster(e){e||e===""?this.setAttribute(M.POSTER,e):this.removeAttribute(M.POSTER)}get storyboardSrc(){var e;return(e=this.getAttribute(s.STORYBOARD_SRC))!=null?e:void 0}set storyboardSrc(e){e?this.setAttribute(s.STORYBOARD_SRC,e):this.removeAttribute(s.STORYBOARD_SRC)}get storyboard(){if(!this.audio&&(!this.streamType||![C.LIVE,C.LL_LIVE,C.DVR,C.LL_DVR].includes(this.streamType))){if(this.storyboardSrc&&!this.tokens.storyboard)return this.storyboardSrc;if(this.playbackId)return ot(this.playbackId,{domain:this.customDomain,token:this.tokens.storyboard})}}get audio(){return this.hasAttribute(s.AUDIO)}set audio(e){if(!e){this.removeAttribute(s.AUDIO);return}this.setAttribute(s.AUDIO,"")}get hotkeys(){return l(this,de)}get nohotkeys(){return this.hasAttribute(s.NOHOTKEYS)}set nohotkeys(e){if(!e){this.removeAttribute(s.NOHOTKEYS);return}this.setAttribute(s.NOHOTKEYS,"")}get thumbnailTime(){return L(this.getAttribute(s.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(s.THUMBNAIL_TIME,`${e}`)}get title(){var e;return(e=this.getAttribute(s.TITLE))!=null?e:""}set title(e){e!==this.title&&(e?this.setAttribute(s.TITLE,e):this.removeAttribute("title"),super.title=e)}get placeholder(){var e;return(e=U(this,s.PLACEHOLDER))!=null?e:""}set placeholder(e){this.setAttribute(s.PLACEHOLDER,`${e}`)}get primaryColor(){var e;return(e=this.getAttribute(s.PRIMARY_COLOR))!=null?e:void 0}set primaryColor(e){this.setAttribute(s.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var e;return(e=this.getAttribute(s.SECONDARY_COLOR))!=null?e:"rgb(0 0 0 / .75)"}set secondaryColor(e){this.setAttribute(s.SECONDARY_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(s.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(s.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(s.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(!!this.hasAttribute(s.PLAYBACK_RATES))return this.getAttribute(s.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,i)=>e-i)}set playbackRates(e){if(!e){this.removeAttribute(s.PLAYBACK_RATES);return}this.setAttribute(s.PLAYBACK_RATES,e.join(" "))}get forwardSeekOffset(){var e;return(e=L(this.getAttribute(s.FORWARD_SEEK_OFFSET)))!=null?e:10}set forwardSeekOffset(e){this.setAttribute(s.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return(e=L(this.getAttribute(s.BACKWARD_SEEK_OFFSET)))!=null?e:10}set backwardSeekOffset(e){this.setAttribute(s.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(s.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(s.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(s.DEFAULT_HIDDEN_CAPTIONS)}get playerSoftwareName(){var e;return(e=this.getAttribute(u.PLAYER_SOFTWARE_NAME))!=null?e:fa}get playerSoftwareVersion(){var e;return(e=this.getAttribute(u.PLAYER_SOFTWARE_VERSION))!=null?e:ga}get beaconCollectionDomain(){var e;return(e=this.getAttribute(u.BEACON_COLLECTION_DOMAIN))!=null?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(u.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(u.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return(e=this.getAttribute(u.MAX_RESOLUTION))!=null?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(u.MAX_RESOLUTION,e):this.removeAttribute(u.MAX_RESOLUTION))}get customDomain(){var e;return(e=this.getAttribute(u.CUSTOM_DOMAIN))!=null?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(u.CUSTOM_DOMAIN,e):this.removeAttribute(u.CUSTOM_DOMAIN))}get envKey(){var e;return(e=U(this,u.ENV_KEY))!=null?e:void 0}set envKey(e){this.setAttribute(u.ENV_KEY,`${e}`)}get debug(){return U(this,u.DEBUG)!=null}set debug(e){e?this.setAttribute(u.DEBUG,""):this.removeAttribute(u.DEBUG)}get disableCookies(){return U(this,u.DISABLE_COOKIES)!=null}set disableCookies(e){e?this.setAttribute(u.DISABLE_COOKIES,""):this.removeAttribute(u.DISABLE_COOKIES)}get streamType(){return U(this,u.STREAM_TYPE)}set streamType(e){this.setAttribute(u.STREAM_TYPE,`${e}`)}get startTime(){return L(U(this,u.START_TIME))}set startTime(e){this.setAttribute(u.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(u.PREFER_PLAYBACK);if(e===Te.MSE||e===Te.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===Te.MSE||e===Te.NATIVE?this.setAttribute(u.PREFER_PLAYBACK,e):this.removeAttribute(u.PREFER_PLAYBACK))}get metadata(){var e;return(e=this.media)==null?void 0:e.metadata}set metadata(e){if(l(this,V)||b(this,Z,oe).call(this),!this.media){x("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...this.metadataFromAttrs,...e}}async addCuePoints(e){var i;if(l(this,V)||b(this,Z,oe).call(this),!this.media){x("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return(i=this.media)==null?void 0:i.addCuePoints(e)}get activeCuePoint(){var e;return(e=this.media)==null?void 0:e.activeCuePoint}get cuePoints(){var e,i;return(i=(e=this.media)==null?void 0:e.cuePoints)!=null?i:[]}get tokens(){let e=this.getAttribute(s.PLAYBACK_TOKEN),i=this.getAttribute(s.THUMBNAIL_TOKEN),r=this.getAttribute(s.STORYBOARD_TOKEN);return{...l(this,le),...e!=null?{playback:e}:{},...i!=null?{thumbnail:i}:{},...r!=null?{storyboard:r}:{}}}set tokens(e){A(this,le,e!=null?e:{})}get playbackToken(){var e;return(e=this.getAttribute(s.PLAYBACK_TOKEN))!=null?e:void 0}set playbackToken(e){this.setAttribute(s.PLAYBACK_TOKEN,`${e}`)}get thumbnailToken(){var e;return(e=this.getAttribute(s.THUMBNAIL_TOKEN))!=null?e:void 0}set thumbnailToken(e){this.setAttribute(s.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return(e=this.getAttribute(s.STORYBOARD_TOKEN))!=null?e:void 0}set storyboardToken(e){this.setAttribute(s.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,i,r,o){var m;let n=(m=this.media)==null?void 0:m.nativeEl;if(!!n)return da(n,e,i,r,o)}removeTextTrack(e){var r;let i=(r=this.media)==null?void 0:r.nativeEl;if(!!i)return ua(i,e)}get textTracks(){var e;return(e=this.media)==null?void 0:e.textTracks}};V=new WeakMap,le=new WeakMap,P=new WeakMap,de=new WeakMap,Y=new WeakMap,Z=new WeakSet,oe=function(){var e,i;if(!l(this,V)){A(this,V,!0),b(this,W,ne).call(this);try{if(customElements.upgrade(this.theme),!(this.theme instanceof p.HTMLElement))throw""}catch{x("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof la))throw""}catch{x("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof sa))throw""}catch{x("<media-controller> failed to upgrade!")}ut(this),b(this,we,Mt).call(this),b(this,Oe,Pt).call(this),A(this,P,(i=(e=this.mediaController)==null?void 0:e.hasAttribute("user-inactive"))!=null?i:!0),b(this,Re,Bt).call(this)}},xe=new WeakSet,Ct=function(){var e,i;try{(e=window==null?void 0:window.CSS)==null||e.registerProperty({name:"--primary-color",syntax:"<color>",inherits:!0,initialValue:"white"}),(i=window==null?void 0:window.CSS)==null||i.registerProperty({name:"--secondary-color",syntax:"<color>",inherits:!0,initialValue:"transparent"})}catch{}},ue=new WeakSet,Ke=function(e){Object.assign(l(this,Y),e),b(this,W,ne).call(this)},W=new WeakSet,ne=function(e={}){Tt(xt(ca(this,{...l(this,Y),...e})),this.shadowRoot)},we=new WeakSet,Mt=function(){var i;let e=r=>{let{detail:o}=r;if(o instanceof $e||(o=new $e(o.message,o.code,o.fatal)),!(o!=null&&o.fatal)){_(o),o.data&&_(`${o.name} data:`,o.data);return}let{dialog:n,devlog:m}=Ae(o,!window.navigator.onLine,this.playbackId,this.playbackToken);m.message&&he(m),x(o),o.data&&x(`${o.name} data:`,o.data),b(this,ue,Ke).call(this,{isDialogOpen:!0,dialog:n})};this.addEventListener("error",e),this.media&&(this.media.errorTranslator=(r={})=>{var n,m,g;if(!((n=this.media)!=null&&n.error))return r;let{devlog:o}=Ae((m=this.media)==null?void 0:m.error,!window.navigator.onLine,this.playbackId,this.playbackToken,!1);return{player_error_code:(g=this.media)==null?void 0:g.error.code,player_error_message:o.message?String(o.message):r.player_error_message}}),(i=this.media)==null||i.addEventListener("error",r=>{var n,m;let{detail:o}=r;if(!o){let{message:g,code:T}=(m=(n=this.media)==null?void 0:n.error)!=null?m:{};o=new $e(g,T)}!(o!=null&&o.fatal)||this.dispatchEvent(new CustomEvent("error",{detail:o}))})},Oe=new WeakSet,Pt=function(){var i,r,o,n;let e=()=>b(this,W,ne).call(this);(r=(i=this.media)==null?void 0:i.textTracks)==null||r.addEventListener("addtrack",e),(n=(o=this.media)==null?void 0:o.textTracks)==null||n.addEventListener("removetrack",e)},Re=new WeakSet,Bt=function(){var E,B,D;let e=this.mediaController,i=/.*Version\/.*Safari\/.*/.test(navigator.userAgent);if(i)return;let r,o=new WeakMap,n=()=>this.streamType&&[C.LIVE,C.LL_LIVE].includes(this.streamType)&&!this.secondaryColor&&this.offsetWidth>=800,m=(h,w,O=!1)=>{if(n())return;Array.from(h&&h.activeCues||[]).forEach(f=>{if(!(!f.snapToLines||f.line<-5||f.line>=0&&f.line<10))if(!w||this.paused){let me=f.text.split(`
|
|
1094
|
+
`).length,J=i?-2:-3;this.streamType&&[C.LIVE,C.LL_LIVE].includes(this.streamType)&&(J=i?-1:-2);let q=J-me;if(f.line===q&&!O)return;o.has(f)||o.set(f,f.line),f.line=q-1,f.line=q}else setTimeout(()=>{f.line=o.get(f)||"auto"},500)})},g=()=>{var h;m(r,(h=e==null?void 0:e.hasAttribute("user-inactive"))!=null?h:!1)},T=()=>{var O;let w=Array.from(((O=e==null?void 0:e.media)==null?void 0:O.textTracks)||[]).filter(R=>["subtitles","captions"].includes(R.kind)&&R.mode==="showing")[0];w!==r&&(r==null||r.removeEventListener("cuechange",g)),r=w,r==null||r.addEventListener("cuechange",g),m(r,l(this,P))};if(T(),(E=e==null?void 0:e.media)==null||E.textTracks.addEventListener("change",T),(B=e==null?void 0:e.media)==null||B.textTracks.addEventListener("addtrack",T),navigator.userAgent.includes("Chrome/")){let h=()=>{m(r,l(this,P),!0),this.paused||window.requestAnimationFrame(h)};(D=e==null?void 0:e.media)==null||D.addEventListener("playing",()=>{h()})}e==null||e.addEventListener("userinactivechange",()=>{let h=e==null?void 0:e.hasAttribute("user-inactive");l(this,P)!==h&&(A(this,P,h),m(r,l(this,P)))})};function U(t,a){return t.media?t.media.getAttribute(a):t.getAttribute(a)}p.customElements.get("mux-player")||(p.customElements.define("mux-player",se),p.MuxPlayerElement=se);var Ti=se;export{$e as MediaError,Ti as default,U as getVideoAttribute};
|
package/dist/module.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"../../shared/polyfills/index.js":{"bytes":1440,"imports":[]},"../../node_modules/media-chrome/dist/constants.js":{"bytes":5347,"imports":[]},"../../node_modules/media-chrome/dist/labels/labels.js":{"bytes":1053,"imports":[]},"../../node_modules/media-chrome/dist/utils/utils.js":{"bytes":817,"imports":[]},"../../node_modules/media-chrome/dist/utils/time.js":{"bytes":1726,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/server-safe-globals.js":{"bytes":894,"imports":[]},"../../node_modules/media-chrome/dist/media-chrome-button.js":{"bytes":5937,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-airplay-button.js":{"bytes":1509,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-cast-button.js":{"bytes":3394,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/element-utils.js":{"bytes":1665,"imports":[]},"../../node_modules/media-chrome/dist/media-gesture-receiver.js":{"bytes":4721,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-container.js":{"bytes":11051,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-gesture-receiver.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/attribute-token-list.js":{"bytes":2955,"imports":[]},"../../node_modules/media-chrome/dist/utils/fullscreenApi.js":{"bytes":701,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/captions.js":{"bytes":4736,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-controller.js":{"bytes":40125,"imports":[{"path":"../../node_modules/media-chrome/dist/media-container.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/attribute-token-list.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/fullscreenApi.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-chrome-range.js":{"bytes":10724,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-control-bar.js":{"bytes":2532,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-text-display.js":{"bytes":3035,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-current-time-display.js":{"bytes":1001,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-duration-display.js":{"bytes":968,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-time-display.js":{"bytes":4198,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-captions-button.js":{"bytes":5408,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-seek-forward-button.js":{"bytes":2836,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-fullscreen-button.js":{"bytes":2720,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-live-button.js":{"bytes":2458,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-mute-button.js":{"bytes":3562,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-pip-button.js":{"bytes":2309,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-play-button.js":{"bytes":2265,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-playback-rate-button.js":{"bytes":2369,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-poster-image.js":{"bytes":1952,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-time-range.js":{"bytes":16694,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-progress-range.js":{"bytes":557,"imports":[{"path":"../../node_modules/media-chrome/dist/media-time-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-seek-backward-button.js":{"bytes":2819,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-preview-time-display.js":{"bytes":942,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-preview-thumbnail.js":{"bytes":4564,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-loading-indicator.js":{"bytes":4691,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-title-element.js":{"bytes":618,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-volume-range.js":{"bytes":2091,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-chrome-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/index.js":{"bytes":2975,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-airplay-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-cast-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-gesture-receiver.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-controller.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-chrome-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-control-bar.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-current-time-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-duration-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-time-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-captions-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-seek-forward-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-fullscreen-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-live-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-mute-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-pip-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-play-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-playback-rate-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-poster-image.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-progress-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-seek-backward-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-preview-time-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-preview-thumbnail.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-time-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-loading-indicator.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-title-element.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-volume-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js":{"bytes":11778,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-chrome-menu-button.js":{"bytes":7319,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-chrome-listitem.js":{"bytes":3271,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js":{"bytes":10215,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listitem.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-captions-menu-button.js":{"bytes":12786,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-menu-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/mux-embed/dist/mux.js":{"bytes":82954,"imports":[]},"../../node_modules/hls.js/dist/hls.min.js":{"bytes":373159,"imports":[]},"../playback-core/dist/index.mjs":{"bytes":12050,"imports":[{"path":"../../node_modules/mux-embed/dist/mux.js","kind":"import-statement"},{"path":"../../node_modules/hls.js/dist/hls.min.js","kind":"import-statement"}]},"../mux-video/dist/index.mjs":{"bytes":22449,"imports":[{"path":"../playback-core/dist/index.mjs","kind":"import-statement"}]},"lang/en.json":{"bytes":42,"imports":[]},"src/utils.ts":{"bytes":2741,"imports":[{"path":"lang/en.json","kind":"import-statement"}]},"src/helpers.ts":{"bytes":4270,"imports":[{"path":"src/utils.ts","kind":"import-statement"}]},"src/logger.ts":{"bytes":688,"imports":[{"path":"src/utils.ts","kind":"import-statement"},{"path":"src/helpers.ts","kind":"import-statement"}]},"src/video-api.ts":{"bytes":11034,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"},{"path":"../mux-video/dist/index.mjs","kind":"import-statement"},{"path":"src/logger.ts","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/template-parts.js":{"bytes":10356,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/template-processor.js":{"bytes":6456,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/template-parts.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-theme-element.js":{"bytes":4665,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/template-parts.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/template-processor.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/template-parts.js","kind":"import-statement"}]},"src/media-chrome/time-display.ts":{"bytes":3357,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"}]},"src/styles.css":{"bytes":6073,"imports":[]},"src/media-theme-mux.html":{"bytes":29963,"imports":[]},"src/media-chrome/dialog.ts":{"bytes":5723,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"}]},"src/dialog.ts":{"bytes":1254,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"},{"path":"src/media-chrome/dialog.ts","kind":"import-statement"}]},"src/html.ts":{"bytes":6994,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-theme-element.js","kind":"import-statement"}]},"src/template.ts":{"bytes":5114,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-theme-element.js","kind":"import-statement"},{"path":"src/media-chrome/time-display.ts","kind":"import-statement"},{"path":"src/styles.css","kind":"import-statement"},{"path":"src/media-theme-mux.html","kind":"import-statement"},{"path":"src/dialog.ts","kind":"import-statement"},{"path":"src/helpers.ts","kind":"import-statement"},{"path":"src/html.ts","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"},{"path":"../playback-core/dist/index.mjs","kind":"import-statement"}]},"src/errors.ts":{"bytes":6023,"imports":[{"path":"../mux-video/dist/index.mjs","kind":"import-statement"},{"path":"lang/en.json","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"}]},"src/index.ts":{"bytes":35372,"imports":[{"path":"../../shared/polyfills/index.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/index.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-captions-menu-button.js","kind":"import-statement"},{"path":"../mux-video/dist/index.mjs","kind":"import-statement"},{"path":"../playback-core/dist/index.mjs","kind":"import-statement"},{"path":"src/video-api.ts","kind":"import-statement"},{"path":"src/helpers.ts","kind":"import-statement"},{"path":"src/template.ts","kind":"import-statement"},{"path":"src/html.ts","kind":"import-statement"},{"path":"src/errors.ts","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"},{"path":"src/logger.ts","kind":"import-statement"}]}},"outputs":{"dist/mux-player.mjs":{"imports":[],"exports":["MediaError","default","getVideoAttribute"],"entryPoint":"src/index.ts","inputs":{"../../node_modules/mux-embed/dist/mux.js":{"bytesInOutput":84327},"../../node_modules/hls.js/dist/hls.min.js":{"bytesInOutput":378567},"../../shared/polyfills/index.js":{"bytesInOutput":767},"../../node_modules/media-chrome/dist/constants.js":{"bytesInOutput":3982},"../../node_modules/media-chrome/dist/labels/labels.js":{"bytesInOutput":774},"../../node_modules/media-chrome/dist/utils/utils.js":{"bytesInOutput":372},"../../node_modules/media-chrome/dist/utils/time.js":{"bytesInOutput":675},"../../node_modules/media-chrome/dist/utils/server-safe-globals.js":{"bytesInOutput":470},"../../node_modules/media-chrome/dist/media-chrome-button.js":{"bytesInOutput":3555},"../../node_modules/media-chrome/dist/media-airplay-button.js":{"bytesInOutput":872},"../../node_modules/media-chrome/dist/media-cast-button.js":{"bytesInOutput":2390},"../../node_modules/media-chrome/dist/utils/element-utils.js":{"bytesInOutput":677},"../../node_modules/media-chrome/dist/media-gesture-receiver.js":{"bytesInOutput":2278},"../../node_modules/media-chrome/dist/media-container.js":{"bytesInOutput":6938},"../../node_modules/media-chrome/dist/utils/attribute-token-list.js":{"bytesInOutput":1484},"../../node_modules/media-chrome/dist/utils/fullscreenApi.js":{"bytesInOutput":457},"../../node_modules/media-chrome/dist/utils/captions.js":{"bytesInOutput":1905},"../../node_modules/media-chrome/dist/media-controller.js":{"bytesInOutput":18796},"../../node_modules/media-chrome/dist/media-chrome-range.js":{"bytesInOutput":7831},"../../node_modules/media-chrome/dist/media-control-bar.js":{"bytesInOutput":1307},"../../node_modules/media-chrome/dist/media-text-display.js":{"bytesInOutput":1803},"../../node_modules/media-chrome/dist/media-current-time-display.js":{"bytesInOutput":408},"../../node_modules/media-chrome/dist/media-duration-display.js":{"bytesInOutput":392},"../../node_modules/media-chrome/dist/media-time-display.js":{"bytesInOutput":2037},"../../node_modules/media-chrome/dist/media-captions-button.js":{"bytesInOutput":4022},"../../node_modules/media-chrome/dist/media-seek-forward-button.js":{"bytesInOutput":1415},"../../node_modules/media-chrome/dist/media-fullscreen-button.js":{"bytesInOutput":1634},"../../node_modules/media-chrome/dist/media-live-button.js":{"bytesInOutput":1589},"../../node_modules/media-chrome/dist/media-mute-button.js":{"bytesInOutput":2485},"../../node_modules/media-chrome/dist/media-pip-button.js":{"bytesInOutput":1356},"../../node_modules/media-chrome/dist/media-play-button.js":{"bytesInOutput":1307},"../../node_modules/media-chrome/dist/media-playback-rate-button.js":{"bytesInOutput":1165},"../../node_modules/media-chrome/dist/media-poster-image.js":{"bytesInOutput":1312},"../../node_modules/media-chrome/dist/media-time-range.js":{"bytesInOutput":10004},"../../node_modules/media-chrome/dist/media-progress-range.js":{"bytesInOutput":246},"../../node_modules/media-chrome/dist/media-seek-backward-button.js":{"bytesInOutput":1417},"../../node_modules/media-chrome/dist/media-preview-time-display.js":{"bytesInOutput":366},"../../node_modules/media-chrome/dist/media-preview-thumbnail.js":{"bytesInOutput":2220},"../../node_modules/media-chrome/dist/media-loading-indicator.js":{"bytesInOutput":2748},"../../node_modules/media-chrome/dist/media-title-element.js":{"bytesInOutput":344},"../../node_modules/media-chrome/dist/media-volume-range.js":{"bytesInOutput":988},"../../node_modules/media-chrome/dist/index.js":{"bytesInOutput":332},"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js":{"bytesInOutput":6173},"../../node_modules/media-chrome/dist/experimental/media-chrome-menu-button.js":{"bytesInOutput":3519},"../../node_modules/media-chrome/dist/experimental/media-chrome-listitem.js":{"bytesInOutput":1680},"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js":{"bytesInOutput":5373},"../../node_modules/media-chrome/dist/experimental/media-captions-menu-button.js":{"bytesInOutput":7639},"../playback-core/dist/index.mjs":{"bytesInOutput":11563},"../mux-video/dist/index.mjs":{"bytesInOutput":22540},"lang/en.json":{"bytesInOutput":25},"src/utils.ts":{"bytesInOutput":1145},"src/helpers.ts":{"bytesInOutput":1866},"src/logger.ts":{"bytesInOutput":282},"src/video-api.ts":{"bytesInOutput":4586},"../../node_modules/media-chrome/dist/utils/template-parts.js":{"bytesInOutput":4813},"../../node_modules/media-chrome/dist/utils/template-processor.js":{"bytesInOutput":2696},"../../node_modules/media-chrome/dist/media-theme-element.js":{"bytesInOutput":2290},"src/media-chrome/time-display.ts":{"bytesInOutput":2232},"src/styles.css":{"bytesInOutput":6083},"src/media-theme-mux.html":{"bytesInOutput":29973},"src/media-chrome/dialog.ts":{"bytesInOutput":3517},"src/dialog.ts":{"bytesInOutput":972},"src/html.ts":{"bytesInOutput":2499},"src/template.ts":{"bytesInOutput":3757},"src/errors.ts":{"bytesInOutput":3086},"src/index.ts":{"bytesInOutput":16533}},"bytes":704089}}}
|