UNPKG

vue-easy-player-pro

Version:
843 lines (842 loc) 23.7 kB
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(".easy-player-pro[data-v-70e9965a]{display:grid}.easy-player-pro.easy-player-pro_1[data-v-70e9965a]{grid-template-columns:1fr;grid-template-rows:1fr}.easy-player-pro.easy-player-pro_2[data-v-70e9965a]{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.easy-player-pro.easy-player-pro_4[data-v-70e9965a]{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.easy-player-pro.easy-player-pro_9[data-v-70e9965a]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr}.easy-player-pro.easy-player-pro_16[data-v-70e9965a]{grid-template-columns:1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr}.easy-player-pro.easy-player-pro_25[data-v-70e9965a]{grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr 1fr}.easy-player-pro.easy-player-pro_36[data-v-70e9965a]{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr 1fr 1fr 1fr}.easy-player-pro .player-item[data-v-70e9965a]{position:relative;padding-bottom:56%}.easy-player-pro .player-box[data-v-70e9965a]{position:absolute;height:100%;inset:0;background-color:#000;border:1px #181818 solid}")),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); import { defineComponent as me, ref as K, shallowReactive as Te, onMounted as Pe, onUnmounted as Oe, createElementBlock as E, openBlock as I, normalizeClass as Se, Fragment as je, renderList as we, createElementVNode as xe } from "vue"; const Ae = { /** * 是否直播 */ isLive: !0, /** * 是否解析音频 */ hasAudio: !0, /** * 是否渲染音频 */ isMute: !1, /** * 视频拉伸 */ stretch: !1, /** * 视频封面图片 */ poster: !0, /** * 加载显设置最小缓冲时长,单位秒,播放器会自动消除延迟。 */ bufferTime: !0, /** * 视频加载超时,单位秒。 */ loadTimeOut: 10, /** * 重连次数 -1为一直加载。 */ loadTimeReplay: 3, /** * MSE模式 */ MSE: !1, /** * WCS模式 */ WCS: !1, /** * WASM模式 */ WASM: !1, /** * WASMSIMD模式 */ WASMSIMD: !1, /** * 硬解码 */ gpuDecoder: !1, /** * 渲染方式 */ webGPU: !1, /** * 渲染容器 */ canvasRender: !1, /** * SRS类型 */ isRtcSRS: !1, /** * ZLM类型 */ isRtcZLM: !1, /** * 裸流 */ isFlow: !1, /** * 水印 */ watermark: { text: { content: "", angle: "", color: "", fontSize: "", opacity: "" }, right: 0, top: 0 }, /** * 全屏水印 */ fullWatermark: { text: "", angle: "", color: "", fontSize: "", opacity: "" }, /** * 配置清晰 */ quality: ["普清", "高清", "超清", "4K", "8K"], /** * 默认显示的清晰度,如果不设置,会显示第一个清晰度 */ defaultQuality: null, /** * PTZ配置 */ ptzConfig: { ptz: !0, ptzMore: !0 }, /** * 控制台日志打印 */ debug: !1 }; var ne = typeof global == "object" && global && global.Object === Object && global, Ce = typeof self == "object" && self && self.Object === Object && self, d = ne || Ce || Function("return this")(), O = d.Symbol, ae = Object.prototype, $e = ae.hasOwnProperty, Ee = ae.toString, b = O ? O.toStringTag : void 0; function Ie(e) { var t = $e.call(e, b), r = e[b]; try { e[b] = void 0; var n = !0; } catch { } var a = Ee.call(e); return n && (t ? e[b] = r : delete e[b]), a; } var Me = Object.prototype, Re = Me.toString; function ze(e) { return Re.call(e); } var Fe = "[object Null]", De = "[object Undefined]", V = O ? O.toStringTag : void 0; function j(e) { return e == null ? e === void 0 ? De : Fe : V && V in Object(e) ? Ie(e) : ze(e); } function P(e) { return e != null && typeof e == "object"; } var z = Array.isArray; function y(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } function oe(e) { return e; } var Be = "[object AsyncFunction]", Le = "[object Function]", Ne = "[object GeneratorFunction]", Ue = "[object Proxy]"; function L(e) { if (!y(e)) return !1; var t = j(e); return t == Le || t == Ne || t == Be || t == Ue; } var M = d["__core-js_shared__"], W = (function() { var e = /[^.]+$/.exec(M && M.keys && M.keys.IE_PROTO || ""); return e ? "Symbol(src)_1." + e : ""; })(); function He(e) { return !!W && W in e; } var Ge = Function.prototype, Ke = Ge.toString; function Ve(e) { if (e != null) { try { return Ke.call(e); } catch { } try { return e + ""; } catch { } } return ""; } var We = /[\\^$.*+?()[\]{}|]/g, qe = /^\[object .+?Constructor\]$/, Qe = Function.prototype, Ze = Object.prototype, Xe = Qe.toString, Je = Ze.hasOwnProperty, Ye = RegExp( "^" + Xe.call(Je).replace(We, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function ke(e) { if (!y(e) || He(e)) return !1; var t = L(e) ? Ye : qe; return t.test(Ve(e)); } function et(e, t) { return e?.[t]; } function N(e, t) { var r = et(e, t); return ke(r) ? r : void 0; } var q = Object.create, tt = /* @__PURE__ */ (function() { function e() { } return function(t) { if (!y(t)) return {}; if (q) return q(t); e.prototype = t; var r = new e(); return e.prototype = void 0, r; }; })(); function rt(e, t, r) { switch (r.length) { case 0: return e.call(t); case 1: return e.call(t, r[0]); case 2: return e.call(t, r[0], r[1]); case 3: return e.call(t, r[0], r[1], r[2]); } return e.apply(t, r); } function nt(e, t) { var r = -1, n = e.length; for (t || (t = Array(n)); ++r < n; ) t[r] = e[r]; return t; } var at = 800, ot = 16, it = Date.now; function st(e) { var t = 0, r = 0; return function() { var n = it(), a = ot - (n - r); if (r = n, a > 0) { if (++t >= at) return arguments[0]; } else t = 0; return e.apply(void 0, arguments); }; } function ut(e) { return function() { return e; }; } var S = (function() { try { var e = N(Object, "defineProperty"); return e({}, "", {}), e; } catch { } })(), lt = S ? function(e, t) { return S(e, "toString", { configurable: !0, enumerable: !1, value: ut(t), writable: !0 }); } : oe, ft = st(lt), ct = 9007199254740991, pt = /^(?:0|[1-9]\d*)$/; function ie(e, t) { var r = typeof e; return t = t ?? ct, !!t && (r == "number" || r != "symbol" && pt.test(e)) && e > -1 && e % 1 == 0 && e < t; } function U(e, t, r) { t == "__proto__" && S ? S(e, t, { configurable: !0, enumerable: !0, value: r, writable: !0 }) : e[t] = r; } function w(e, t) { return e === t || e !== e && t !== t; } var ht = Object.prototype, yt = ht.hasOwnProperty; function dt(e, t, r) { var n = e[t]; (!(yt.call(e, t) && w(n, r)) || r === void 0 && !(t in e)) && U(e, t, r); } function gt(e, t, r, n) { var a = !r; r || (r = {}); for (var i = -1, s = t.length; ++i < s; ) { var o = t[i], u = void 0; u === void 0 && (u = e[o]), a ? U(r, o, u) : dt(r, o, u); } return r; } var Q = Math.max; function _t(e, t, r) { return t = Q(t === void 0 ? e.length - 1 : t, 0), function() { for (var n = arguments, a = -1, i = Q(n.length - t, 0), s = Array(i); ++a < i; ) s[a] = n[t + a]; a = -1; for (var o = Array(t + 1); ++a < t; ) o[a] = n[a]; return o[t] = r(s), rt(e, this, o); }; } function vt(e, t) { return ft(_t(e, t, oe), e + ""); } var bt = 9007199254740991; function se(e) { return typeof e == "number" && e > -1 && e % 1 == 0 && e <= bt; } function H(e) { return e != null && se(e.length) && !L(e); } function mt(e, t, r) { if (!y(r)) return !1; var n = typeof t; return (n == "number" ? H(r) && ie(t, r.length) : n == "string" && t in r) ? w(r[t], e) : !1; } function Tt(e) { return vt(function(t, r) { var n = -1, a = r.length, i = a > 1 ? r[a - 1] : void 0, s = a > 2 ? r[2] : void 0; for (i = e.length > 3 && typeof i == "function" ? (a--, i) : void 0, s && mt(r[0], r[1], s) && (i = a < 3 ? void 0 : i, a = 1), t = Object(t); ++n < a; ) { var o = r[n]; o && e(t, o, n, i); } return t; }); } var Pt = Object.prototype; function ue(e) { var t = e && e.constructor, r = typeof t == "function" && t.prototype || Pt; return e === r; } function Ot(e, t) { for (var r = -1, n = Array(e); ++r < e; ) n[r] = t(r); return n; } var St = "[object Arguments]"; function Z(e) { return P(e) && j(e) == St; } var le = Object.prototype, jt = le.hasOwnProperty, wt = le.propertyIsEnumerable, F = Z(/* @__PURE__ */ (function() { return arguments; })()) ? Z : function(e) { return P(e) && jt.call(e, "callee") && !wt.call(e, "callee"); }; function xt() { return !1; } var fe = typeof exports == "object" && exports && !exports.nodeType && exports, X = fe && typeof module == "object" && module && !module.nodeType && module, At = X && X.exports === fe, J = At ? d.Buffer : void 0, Ct = J ? J.isBuffer : void 0, ce = Ct || xt, $t = "[object Arguments]", Et = "[object Array]", It = "[object Boolean]", Mt = "[object Date]", Rt = "[object Error]", zt = "[object Function]", Ft = "[object Map]", Dt = "[object Number]", Bt = "[object Object]", Lt = "[object RegExp]", Nt = "[object Set]", Ut = "[object String]", Ht = "[object WeakMap]", Gt = "[object ArrayBuffer]", Kt = "[object DataView]", Vt = "[object Float32Array]", Wt = "[object Float64Array]", qt = "[object Int8Array]", Qt = "[object Int16Array]", Zt = "[object Int32Array]", Xt = "[object Uint8Array]", Jt = "[object Uint8ClampedArray]", Yt = "[object Uint16Array]", kt = "[object Uint32Array]", l = {}; l[Vt] = l[Wt] = l[qt] = l[Qt] = l[Zt] = l[Xt] = l[Jt] = l[Yt] = l[kt] = !0; l[$t] = l[Et] = l[Gt] = l[It] = l[Kt] = l[Mt] = l[Rt] = l[zt] = l[Ft] = l[Dt] = l[Bt] = l[Lt] = l[Nt] = l[Ut] = l[Ht] = !1; function er(e) { return P(e) && se(e.length) && !!l[j(e)]; } function tr(e) { return function(t) { return e(t); }; } var pe = typeof exports == "object" && exports && !exports.nodeType && exports, m = pe && typeof module == "object" && module && !module.nodeType && module, rr = m && m.exports === pe, R = rr && ne.process, Y = (function() { try { var e = m && m.require && m.require("util").types; return e || R && R.binding && R.binding("util"); } catch { } })(), k = Y && Y.isTypedArray, he = k ? tr(k) : er; function nr(e, t) { var r = z(e), n = !r && F(e), a = !r && !n && ce(e), i = !r && !n && !a && he(e), s = r || n || a || i, o = s ? Ot(e.length, String) : [], u = o.length; for (var f in e) s && // Safari 9 has enumerable `arguments.length` in strict mode. (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. a && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. i && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties. ie(f, u)) || o.push(f); return o; } function ar(e, t) { return function(r) { return e(t(r)); }; } function or(e) { var t = []; if (e != null) for (var r in Object(e)) t.push(r); return t; } var ir = Object.prototype, sr = ir.hasOwnProperty; function ur(e) { if (!y(e)) return or(e); var t = ue(e), r = []; for (var n in e) n == "constructor" && (t || !sr.call(e, n)) || r.push(n); return r; } function ye(e) { return H(e) ? nr(e) : ur(e); } var T = N(Object, "create"); function lr() { this.__data__ = T ? T(null) : {}, this.size = 0; } function fr(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } var cr = "__lodash_hash_undefined__", pr = Object.prototype, hr = pr.hasOwnProperty; function yr(e) { var t = this.__data__; if (T) { var r = t[e]; return r === cr ? void 0 : r; } return hr.call(t, e) ? t[e] : void 0; } var dr = Object.prototype, gr = dr.hasOwnProperty; function _r(e) { var t = this.__data__; return T ? t[e] !== void 0 : gr.call(t, e); } var vr = "__lodash_hash_undefined__"; function br(e, t) { var r = this.__data__; return this.size += this.has(e) ? 0 : 1, r[e] = T && t === void 0 ? vr : t, this; } function h(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } h.prototype.clear = lr; h.prototype.delete = fr; h.prototype.get = yr; h.prototype.has = _r; h.prototype.set = br; function mr() { this.__data__ = [], this.size = 0; } function x(e, t) { for (var r = e.length; r--; ) if (w(e[r][0], t)) return r; return -1; } var Tr = Array.prototype, Pr = Tr.splice; function Or(e) { var t = this.__data__, r = x(t, e); if (r < 0) return !1; var n = t.length - 1; return r == n ? t.pop() : Pr.call(t, r, 1), --this.size, !0; } function Sr(e) { var t = this.__data__, r = x(t, e); return r < 0 ? void 0 : t[r][1]; } function jr(e) { return x(this.__data__, e) > -1; } function wr(e, t) { var r = this.__data__, n = x(r, e); return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this; } function p(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } p.prototype.clear = mr; p.prototype.delete = Or; p.prototype.get = Sr; p.prototype.has = jr; p.prototype.set = wr; var de = N(d, "Map"); function xr() { this.size = 0, this.__data__ = { hash: new h(), map: new (de || p)(), string: new h() }; } function Ar(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } function A(e, t) { var r = e.__data__; return Ar(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; } function Cr(e) { var t = A(this, e).delete(e); return this.size -= t ? 1 : 0, t; } function $r(e) { return A(this, e).get(e); } function Er(e) { return A(this, e).has(e); } function Ir(e, t) { var r = A(this, e), n = r.size; return r.set(e, t), this.size += r.size == n ? 0 : 1, this; } function g(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[t]; this.set(n[0], n[1]); } } g.prototype.clear = xr; g.prototype.delete = Cr; g.prototype.get = $r; g.prototype.has = Er; g.prototype.set = Ir; var ge = ar(Object.getPrototypeOf, Object), Mr = "[object Object]", Rr = Function.prototype, zr = Object.prototype, _e = Rr.toString, Fr = zr.hasOwnProperty, Dr = _e.call(Object); function Br(e) { if (!P(e) || j(e) != Mr) return !1; var t = ge(e); if (t === null) return !0; var r = Fr.call(t, "constructor") && t.constructor; return typeof r == "function" && r instanceof r && _e.call(r) == Dr; } function Lr() { this.__data__ = new p(), this.size = 0; } function Nr(e) { var t = this.__data__, r = t.delete(e); return this.size = t.size, r; } function Ur(e) { return this.__data__.get(e); } function Hr(e) { return this.__data__.has(e); } var Gr = 200; function Kr(e, t) { var r = this.__data__; if (r instanceof p) { var n = r.__data__; if (!de || n.length < Gr - 1) return n.push([e, t]), this.size = ++r.size, this; r = this.__data__ = new g(n); } return r.set(e, t), this.size = r.size, this; } function _(e) { var t = this.__data__ = new p(e); this.size = t.size; } _.prototype.clear = Lr; _.prototype.delete = Nr; _.prototype.get = Ur; _.prototype.has = Hr; _.prototype.set = Kr; var ve = typeof exports == "object" && exports && !exports.nodeType && exports, ee = ve && typeof module == "object" && module && !module.nodeType && module, Vr = ee && ee.exports === ve, te = Vr ? d.Buffer : void 0; te && te.allocUnsafe; function Wr(e, t) { return e.slice(); } var re = d.Uint8Array; function qr(e) { var t = new e.constructor(e.byteLength); return new re(t).set(new re(e)), t; } function Qr(e, t) { var r = qr(e.buffer); return new e.constructor(r, e.byteOffset, e.length); } function Zr(e) { return typeof e.constructor == "function" && !ue(e) ? tt(ge(e)) : {}; } function Xr(e) { return function(t, r, n) { for (var a = -1, i = Object(t), s = n(t), o = s.length; o--; ) { var u = s[++a]; if (r(i[u], u, i) === !1) break; } return t; }; } var Jr = Xr(); function D(e, t, r) { (r !== void 0 && !w(e[t], r) || r === void 0 && !(t in e)) && U(e, t, r); } function Yr(e) { return P(e) && H(e); } function B(e, t) { if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t]; } function kr(e) { return gt(e, ye(e)); } function en(e, t, r, n, a, i, s) { var o = B(e, r), u = B(t, r), f = s.get(u); if (f) { D(e, r, f); return; } var c = i ? i(o, u, r + "", e, t, s) : void 0, v = c === void 0; if (v) { var C = z(u), $ = !C && ce(u), G = !C && !$ && he(u); c = u, C || $ || G ? z(o) ? c = o : Yr(o) ? c = nt(o) : $ ? (v = !1, c = Wr(u)) : G ? (v = !1, c = Qr(u)) : c = [] : Br(u) || F(u) ? (c = o, F(o) ? c = kr(o) : (!y(o) || L(o)) && (c = Zr(u))) : v = !1; } v && (s.set(u, c), a(c, u, n, i, s), s.delete(u)), D(e, r, c); } function be(e, t, r, n, a) { e !== t && Jr(t, function(i, s) { if (a || (a = new _()), y(i)) en(e, t, s, r, be, n, a); else { var o = n ? n(B(e, s), i, s + "", e, t, a) : void 0; o === void 0 && (o = i), D(e, s, o); } }, ye); } var tn = Tt(function(e, t, r) { be(e, t, r); }); let rn = class { constructor(t, r) { this.player = null, this.config = {}, this.isDestroy = !1, this.onPlay = () => { }, this.onPause = () => { }, this.onVideoInfo = (n) => { }, this.onAudioInfo = (n) => { }, this.onFullscreen = (n) => { }, this.onMute = (n) => { }, this.onKBps = (n) => { }, this.onStretch = (n) => { }, this.onPTZ = (n) => { }, this.onScreenshots = () => { }, this.onContextmenuClose = () => { }, this.onDecodeHevc = () => { }, this.onLiveEnd = () => { }, this.onTimeout = () => { }, this.onRecordEnd = () => { }, this.onRecordStart = () => { }, this.onQualityChange = (n) => { }, this.onPlaybackSeek = () => { }, this.onPlaybackRate = () => { }, this.onTimestamps = () => { }, this.onError = (n) => { }, this.config = tn({}, Ae, r), this.player = new window.EasyPlayerPro(t, this.config), this.isDestroy = !1, this.player.on("play", () => this.onPlay()), this.player.on("pause", () => this.onPause()), this.player.on("videoInfo", (n) => this.onVideoInfo(n)), this.player.on("audioInfo", (n) => this.onAudioInfo(n)), this.player.on("fullscreen", (n) => this.onFullscreen(n)), this.player.on("mute", (n) => this.onMute(n)), this.player.on("kBps", (n) => this.onKBps(n)), this.player.on("stretch", (n) => this.onStretch(n)), this.player.on("ptz", (n) => this.onPTZ(n)), this.player.on("screenshots", () => this.onScreenshots()), this.player.on("contextmenuClose", () => this.onContextmenuClose()), this.player.on("decodeHevc", () => this.onDecodeHevc()), this.player.on("liveEnd", () => this.onLiveEnd()), this.player.on("timeout", () => this.onTimeout()), this.player.on("recordEnd", () => this.onRecordEnd()), this.player.on("recordStart", () => this.onRecordStart()), this.player.on("qualityChange", (n) => this.onQualityChange(n)), this.player.on("playbackSeek", () => this.onPlaybackSeek()), this.player.on("playbackRate", () => this.onPlaybackRate()), this.player.on("timestamps", () => this.onTimestamps()), this.player.on("error", (n) => this.onError(n)); } /** * 播放 * @param url 播放地址 */ play(t) { return new Promise((r, n) => { try { this.player ? this.player.play(t).then(r).catch(n) : n("player is null"); } catch (a) { n(a); } }); } /** * 暂停播放 */ pause() { this.player && this.player.pause(); } /** * 返回是否暂停中状态 */ isPause() { return this.player ? this.player.isPause() : null; } /** * 音频切换 * @param isMute */ setMute(t) { this.player && this.player.setMute(t); } /** * 是否静音 */ isMute() { return this.player ? this.player.isMute() : null; } /** * 获取快照 * @param name 名称(默认时间戳) * @param type 类型(png|jpg,默认png) * @param rato 压缩了(0-1,默认0.92) * @param format 数据格式(download,base64,blob,默认download) */ screenshot(t, r, n, a) { return this.player ? this.player.screenshot(t, r, n, a) : null; } /** * 全屏(取消全屏)播放视频 * @param isFullscreen 是否全屏 */ setFullscreen(t) { this.player && this.player.setFullscreen(t); } /** * 推出全屏 */ exitFullscreen() { this.player && this.player.exitFullscreen(); } /** * 设置分辨率,分辨率必须是quality里面的数据 * @param quality */ setQuality(t) { this.player && this.player.setQuality(t); } /** * 设置录像倍数 * @param rate */ setRate(t) { this.player && this.player.setRate(t); } /** * 设置录像跳转时间(s) */ seekTime(t) { this.player && this.player.seekTime(t); } /** * 获取视频信息 */ getVideoInfo() { return this.player ? this.player.getVideoInfo() : null; } /** * 获取音频信息 */ getAudioInfo() { return this.player ? this.player.getAudioInfo() : null; } /** * 设置语音对讲状态(PTZ需开启) * @param isMic */ setMic(t) { this.player && this.player.setMic(t); } /** * 关闭视频,释放底层资源 */ destroy() { this.player && this.player.destroy(), this.player = null, this.isDestroy = !0; } }; const nn = rn, an = /* @__PURE__ */ me({ __name: "VueEasyPlayerPro", props: { urls: { default: [], type: [] }, isLive: { default: !0, type: Boolean }, autoplay: { default: !1, type: Boolean }, hasAudio: { default: !0, type: Boolean }, mute: { default: !0, type: Boolean }, stretch: { default: !1, type: Boolean }, split: { default: 1, type: Number, values: [1, 4, 9, 16, 25, 66] }, config: { default: () => ({}), type: Object } }, setup(e, { expose: t }) { const r = e, n = K(), a = K(), i = Te([]); return Pe(() => { i.push(...n.value.map((s, o) => { const u = new nn(s, { isLive: r.isLive, isMute: !r.mute, stretch: r.stretch, ...r.config }); return r.autoplay && u.play(r.urls[o]), u; })); }), Oe(() => { i.map((s) => { s.isDestroy || s.destroy(); }), i.splice(0, i.length); }), t({ playerList: i }), (s, o) => (I(), E("div", { ref_key: "playerWrapRef", ref: a, class: Se(["easy-player-pro player_container", `easy-player-pro_${r.split}`]) }, [ (I(!0), E(je, null, we(r.split, (u, f) => (I(), E("div", { class: "player-item", key: f }, [ xe("div", { class: "player-box", ref_for: !0, ref_key: "easyPlayerRef", ref: n }, null, 512) ]))), 128)) ], 2)); } }), on = (e, t) => { const r = e.__vccOpts || e; for (const [n, a] of t) r[n] = a; return r; }, ln = /* @__PURE__ */ on(an, [["__scopeId", "data-v-70e9965a"]]); export { ln as default };