mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 11:23:45 +02:00
Add support for live HLS streams, add playlist refresh logic, add live input tracks
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user