UNPKG

@aidenlx/player

Version:

Headless web components that make integrating media on the a web a breeze.

10 lines (8 loc) 701 B
import{a as c}from"./chunk.AWJOXKSW.js";import{A as t,G as l,O as o,T as n,b as r,ia as s,ja as i}from"./chunk.PWTX2M5C.js";var m=s` :host { display: block; } :host([hidden]) { display: none; } `;var e=class extends i{constructor(){super();this.controller=new c(this);this.fullscreenController=new l(this,new o(this));t(this,"vds-media-controller-connect")}static get styles(){return[m]}render(){return r`<slot></slot>`}async requestFullscreen(){return this.fullscreenController.isRequestingNativeFullscreen?super.requestFullscreen():this.fullscreenController.requestFullscreen()}async exitFullscreen(){return this.fullscreenController.exitFullscreen()}};n("vds-media-controller",e);