Stop retrying UrlSource if CORS error is suspected

This commit is contained in:
JonnyBurger
2025-09-30 14:11:17 +02:00
parent 8636297ee0
commit d58b638277
2 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ const source = new UrlSource('https://example.com/bigbuckbunny.mp4', {
});
```
Not setting `getRetryDelay` will default to an infinite, capped exponential backoff pattern.
Not setting `getRetryDelay` will default to an infinite, capped exponential backoff pattern. If a CORS error is suspected (`fetch()` did reject even though `navigator.onLine` is true), no further retries will be made.
---