fix: update loadTimeout default value to 0 in README, MediaBunnyEngine, and TypeScript definitions

This commit is contained in:
Harvey Zhao committed 2026-01-01 17:43:21 +08:00
1 parent d892685a25
commit 4a0fbda3c4
5 files changed
+7 -7

No files matched your search

@@ -53,12 +53,12 @@ export default class MediaBunnyEngine {
const loadTimeout = Number.isFinite(this.option.loadTimeout)
? this.option.loadTimeout
: 12000
: 0
try {
await Promise.race([
this.performLoad(src, id),
loadTimeout > 0 ? this.createTimeout(loadTimeout) : Promise.resolve(),
loadTimeout > 0 ? this.createTimeout(loadTimeout) : new Promise(() => {}),
])
}
catch (err) {