Add support for live HLS streams, add playlist refresh logic, add live input tracks

This commit is contained in:
Vanilagy
2026-03-12 15:54:19 +01:00
parent ff523c01c8
commit e8df451bf5
23 changed files with 22399 additions and 417 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import {
retriedFetch,
toDataView,
toUint8Array,
wait,
} from './misc';
import * as nodeAlias from './node';
import { InputDisposedError } from './input';
@@ -598,7 +599,7 @@ export class UrlSource extends Source {
const retryDelayInSeconds = this._getRetryDelay(1, error, this._url);
if (retryDelayInSeconds !== null) {
console.error('Error while reading response stream. Attempting to resume.', error);
await new Promise(resolve => setTimeout(resolve, 1000 * retryDelayInSeconds));
await wait(1000 * retryDelayInSeconds);
break;
} else {