UNPKG

@slashedcloud/player

Version:

A media player application utilizing Shaka Player for adaptive video streaming, capable of playing HLS, MPD and plain HTTP video streams.

22 lines (21 loc) 703 B
/*! * SlashedCloud v0.1.2 (https://github.com/SlashedCloud/player#readme) * Copyright 2024-2024 rogerio.jardim@fedrax.pt * Licensed under Apache (https://github.com/SlashedCloud/player/blob/develop/LICENSE) */ const c = (t) => new Promise((r, n) => { const e = document.createElement("script"); e.async = !0, e.src = t, e.onload = r, e.onerror = n, document.body.appendChild(e); }), o = (t) => Object.prototype.toString.call(t) === "[object Object]", s = (t) => { try { return new URL(t), !0; } catch (r) { return !1; } }, u = (t) => typeof structuredClone == "undefined" ? JSON.parse(JSON.stringify(t)) : structuredClone(t); export { u as _, s as a, o as i, c as l };