diff --git a/src/inject/interceptors.js b/src/inject/interceptors.js index 7f93ef2..0702684 100644 --- a/src/inject/interceptors.js +++ b/src/inject/interceptors.js @@ -120,13 +120,14 @@ // Patch immediately if HLS is already defined patchHlsPrototype(); - // Watch for HLS.js to be dynamically defined later — use MutationObserver - // on the
for script tags that load hls.js, as a more reliable fallback - // than Object.defineProperty (which conflicts with page JS). + // Watch for HLS.js to be dynamically defined later. + // Use a combination of: + // 1. Longer polling window (30s instead of 3s) to catch lazy-loaded players. + // 2. MutationObserver on for new