npm artplayer 5.3.0

latest releases: 5.4.0, 5.3.1-beta.1, 5.3.1-beta.0...
6 months ago
  • 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',
}

Don't miss a new artplayer release

NewReleases is sending notifications on new releases.