diff --git a/packages/core/package.json b/packages/core/package.json index a240894a..9e604cc1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/core", - "version": "1.0.43", + "version": "1.0.44", "description": "Oh! Another web video player.", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/core/src/player.ts b/packages/core/src/player.ts index 58808a77..ad9d9848 100644 --- a/packages/core/src/player.ts +++ b/packages/core/src/player.ts @@ -191,7 +191,8 @@ export class Player { load = async (source: Source) => { for await (const plugin of this.plugins) { if (plugin.load) { - this.isCustomLoader = await plugin.load(this, source, { loader: this.isCustomLoader }) + const match = await plugin.load(this, source, { loader: this.isCustomLoader }) + if (match && !this.isCustomLoader) this.isCustomLoader = true } } if (!this.isCustomLoader) { diff --git a/packages/danmaku/package.json b/packages/danmaku/package.json index 79b34dec..f2de01cd 100644 --- a/packages/danmaku/package.json +++ b/packages/danmaku/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/danmaku", - "version": "1.0.43", + "version": "1.0.44", "description": "Danmaku plugin for oplayer", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/dash/package.json b/packages/dash/package.json index cc68e42b..0f807361 100644 --- a/packages/dash/package.json +++ b/packages/dash/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/dash", - "version": "1.0.43", + "version": "1.0.44", "description": "Dash plugin for oplayer", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/hls/package.json b/packages/hls/package.json index 2f71f8e4..f152b790 100644 --- a/packages/hls/package.json +++ b/packages/hls/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/hls", - "version": "1.0.43", + "version": "1.0.44", "description": "Hls plugin for oplayer", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/react/package.json b/packages/react/package.json index ac0be7b0..7a36ef93 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/react", - "version": "1.0.43", + "version": "1.0.44", "description": "React wrapper for oplayer.", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/torrent/package.json b/packages/torrent/package.json index 17a9f60b..988d96cb 100644 --- a/packages/torrent/package.json +++ b/packages/torrent/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/torrent", - "version": "1.0.43", + "version": "1.0.44", "description": "Torrent plugin for oplayer.", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/ui/package.json b/packages/ui/package.json index 0ce811c8..b020850f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/ui", - "version": "1.0.43", + "version": "1.0.44", "description": "Official ui for oplayer", "type": "module", "main": "./dist/index.es.js",