@broadcastingplatforms/player 0.0.0-dev.5a7dff6 → 0.0.0-dev.8619cae
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/dist/bp-player.js +1 -1
- package/dist/bp-player.js.map +7 -0
- package/dist/bp-player.mjs +1 -1
- package/dist/bp-player.mjs.map +7 -0
- package/dist/bp-player.standalone.mjs +1 -1
- package/dist/bp-player.standalone.mjs.map +7 -0
- package/dist/bplive/index.d.ts.map +1 -0
- package/dist/bplive/service.d.ts.map +1 -0
- package/dist/bplive/types.d.ts.map +1 -0
- package/dist/components/bp-default-ui.d.ts.map +1 -0
- package/dist/components/bp-error-display.d.ts.map +1 -0
- package/dist/components/bp-overlay.d.ts.map +1 -0
- package/dist/components/bp-player.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/player-core.d.ts.map +1 -0
- package/dist/core/state-receiver.d.ts.map +1 -0
- package/dist/core/state.d.ts.map +1 -0
- package/dist/elements/hls-video.d.ts.map +1 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/livekit-video.d.ts.map +1 -0
- package/dist/elements/nano-video.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/providers/contract.d.ts.map +1 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/util/attribute.d.ts.map +1 -0
- package/dist/util/index.d.ts.map +1 -0
- package/package.json +2 -3
package/dist/bp-player.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* BP Player (v0.0.0-dev.
|
|
2
|
+
* BP Player (v0.0.0-dev.8619cae)
|
|
3
3
|
* Universal video player web component
|
|
4
4
|
*/
|
|
5
5
|
var eu=Object.defineProperty;var wm=Object.getOwnPropertyDescriptor;var tu=i=>{throw TypeError(i)};var Im=(i,e,t)=>e in i?eu(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var x=(i,e,t,r)=>{for(var o=r>1?void 0:r?wm(e,t):e,n=i.length-1,a;n>=0;n--)(a=i[n])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eu(e,t,o),o};var H=(i,e,t)=>Im(i,typeof e!="symbol"?e+"":e,t),_l=(i,e,t)=>e.has(i)||tu("Cannot "+t);var u=(i,e,t)=>(_l(i,e,"read from private field"),t?t.call(i):e.get(i)),S=(i,e,t)=>e.has(i)?tu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),_=(i,e,t,r)=>(_l(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),U=(i,e,t)=>(_l(i,e,"access private method"),t);var Jn=globalThis,jn=Jn.ShadowRoot&&(Jn.ShadyCSS===void 0||Jn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yl=Symbol(),iu=new WeakMap,Co=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==yl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(jn&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=iu.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&iu.set(t,e))}return e}toString(){return this.cssText}},ru=i=>new Co(typeof i=="string"?i:i+"",void 0,yl),Mo=(i,...e)=>{let t=i.length===1?i[0]:e.reduce((r,o,n)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[n+1],i[0]);return new Co(t,i,yl)},ou=(i,e)=>{if(jn)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=Jn.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Tl=jn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return ru(t)})(i):i;var{is:Cm,defineProperty:Mm,getOwnPropertyDescriptor:Rm,getOwnPropertyNames:xm,getOwnPropertySymbols:Pm,getPrototypeOf:Dm}=Object,Wt=globalThis,nu=Wt.trustedTypes,Om=nu?nu.emptyScript:"",Al=Wt.reactiveElementPolyfillSupport,Ro=(i,e)=>i,xo={toAttribute(i,e){switch(e){case Boolean:i=i?Om:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},ea=(i,e)=>!Cm(i,e),au={attribute:!0,type:String,converter:xo,reflect:!1,useDefault:!1,hasChanged:ea};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wt.litPropertyMetadata??(Wt.litPropertyMetadata=new WeakMap);var Ct=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=au){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Mm(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:n}=Rm(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){let l=o==null?void 0:o.call(this);n==null||n.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??au}static _$Ei(){if(this.hasOwnProperty(Ro("elementProperties")))return;let e=Dm(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ro("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ro("properties"))){let t=this.properties,r=[...xm(t),...Pm(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(Tl(o))}else e!==void 0&&t.push(Tl(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ou(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var n;let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let a=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:xo).toAttribute(t,r.type);this._$Em=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(e,t){var n,a;let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let l=r.getPropertyOptions(o),c=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:xo;this._$Em=o;let p=c.fromAttribute(t,l.type);this[o]=p??((a=this._$Ej)==null?void 0:a.get(o))??p,this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){let n=this.constructor,a=this[e];if(r??(r=n.getPropertyOptions(e)),!((r.hasChanged??ea)(a,t)||r.useDefault&&r.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:n},a){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,a??t??this[e]),n!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:l}=a,c=this[n];l!==!0||this._$AL.has(n)||c===void 0||this.C(n,void 0,a,c)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(o=>{var n;return(n=o.hostUpdate)==null?void 0:n.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ct.elementStyles=[],Ct.shadowRootOptions={mode:"open"},Ct[Ro("elementProperties")]=new Map,Ct[Ro("finalized")]=new Map,Al==null||Al({ReactiveElement:Ct}),(Wt.reactiveElementVersions??(Wt.reactiveElementVersions=[])).push("2.1.1");var Do=globalThis,ta=Do.trustedTypes,su=ta?ta.createPolicy("lit-html",{createHTML:i=>i}):void 0,pu="$lit$",Ft=`lit$${Math.random().toFixed(9).slice(2)}$`,mu="?"+Ft,Um=`<${mu}>`,Ai=document,Oo=()=>Ai.createComment(""),Uo=i=>i===null||typeof i!="object"&&typeof i!="function",Rl=Array.isArray,Nm=i=>Rl(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Sl=`[
|