- Rename
.esm.js to .mjs
- Remove the default
fill color value of svg
- Optimize the
autoOrientation logic
- Add
Artplayer.REMOVE_SRC_WHEN_DESTROY
- Add
artplayer-plugin-document-pip plugin
- Add
art.events.bindGlobalEvents method for rebinding global methods
- Optimize
artplayer.d.ts, now you can directly import Option
import type { Option } from 'artplayer'
const option: Option = {
container: '.artplayer-app',
url: './assets/sample/video.mp4',
}
import fr from 'artplayer/i18n/fr'
import id from 'artplayer/i18n/id'
const option = {
container: '.artplayer-app',
url: './assets/sample/video.mp4',
i18n: { id, fr },
lang: 'fr',
}