Skip to content

5.3.0

Choose a tag to compare

@zhw2590582 zhw2590582 released this 06 Sep 11:02
· 149 commits to master since this release
  • 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',
}
  • Simplify i18n import
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',
}