- Rename
.esm.jsto.mjs - Remove the default
fillcolor value ofsvg - Optimize the
autoOrientationlogic - Add
Artplayer.REMOVE_SRC_WHEN_DESTROY - Add
artplayer-plugin-document-pipplugin - Add
art.events.bindGlobalEventsmethod for rebinding global methods - Optimize
artplayer.d.ts, now you can directly importOption
import type { Option } from 'artplayer'
const option: Option = {
container: '.artplayer-app',
url: './assets/sample/video.mp4',
}- Simplify
i18nimport
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',
}