diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index d709092c..ea234ad9 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -2,6 +2,10 @@ ## UnRelease +## [1.2.34-beta.1] + +- fix(changeQuality): keep playing + ## [1.2.34-beta.0] - fix index.ui.js diff --git a/packages/core/package.json b/packages/core/package.json index c30f7d86..2bd408c7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/core", - "version": "1.2.34-beta.0", + "version": "1.2.34-beta.1", "description": "Oh! Another HTML5 video player.", "type": "module", "main": "./dist/index.es.js", diff --git a/packages/core/src/player.ts b/packages/core/src/player.ts index 68640105..7f1519af 100644 --- a/packages/core/src/player.ts +++ b/packages/core/src/player.ts @@ -414,13 +414,13 @@ export class Player = Record> { ) { return new Promise((resolve, reject) => { if (this.isSourceChanging) return reject(Error('Previous Source is Changing.')) + const { isPlaying, currentTime, volume, playbackRate } = this this.pause() this.hasError = false this.isSourceChanging = true this.emit(options.preEvent, sourceLike) - const { isPlaying, currentTime, volume, playbackRate } = this const { keepPlaying, keepTime } = options const isPreloadNone = this.options.preload == 'none' const canplay = isPreloadNone ? 'loadstart' : 'loadedmetadata' diff --git a/packages/plugins/build-plugins.js b/packages/plugins/build-plugins.js index 3ea006ab..dca9e428 100644 --- a/packages/plugins/build-plugins.js +++ b/packages/plugins/build-plugins.js @@ -1,5 +1,5 @@ -import fs from 'fs' -import path from 'path' +import fs from 'node:fs' +import path from 'node:path' import { build } from 'vite' import { globSync } from 'glob' import chokidar from 'chokidar' @@ -16,7 +16,7 @@ const globals = { async function buildPlugin(name, dev) { const { version, description, author, homepage } = JSON.parse(fs.readFileSync(`package.json`, 'utf-8')) const outfileName = name - const pluginName = name=='index'?'@oplayer/plugins':`@oplayer/${outfileName}` + const pluginName = name == 'index' ? '@oplayer/plugins' : `@oplayer/${outfileName}` const now = Date.now() console.log(`๐Ÿ‘พ Start built ${pluginName} ยทยทยท `) diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 333553e6..9a71d3e0 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -2,6 +2,10 @@ ## UnRelease +## [1.3.0-beta.1] + +- fix index.ui banner + ## [1.3.0] - beta and alpha diff --git a/packages/ui/package.json b/packages/ui/package.json index 773b1131..7f3aa7e8 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@oplayer/ui", - "version": "1.3.0-beta.0", + "version": "1.3.0-beta.1", "description": "ui plugin for oplayer", "type": "module", "main": "./dist/index.es.js",