���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/okanime.top/layout/default/node_modules/hls.js/src/demux/ |
// ensure the worker ends up in the bundle // If the worker should not be included this gets aliased to empty.js import './transmuxer-worker'; export function hasUMDWorker(): boolean { return typeof __HLS_WORKER_BUNDLE__ === 'function'; } export type WorkerContext = { worker: Worker; objectURL?: string; scriptURL?: string; }; export function injectWorker(): WorkerContext { const blob = new self.Blob( [ `var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`, ], { type: 'text/javascript', } ); const objectURL = self.URL.createObjectURL(blob); const worker = new self.Worker(objectURL); return { worker, objectURL, }; } export function loadWorker(path: string): WorkerContext { const scriptURL = new self.URL(path, self.location.href).href; const worker = new self.Worker(scriptURL); return { worker, scriptURL, }; }