valaxy-addon-meting
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

valaxy-addon-meting

Global music player based on APlayer and MetingJS.

import { defineConfig } from 'valaxy'
import { addonMeting } from 'valaxy-addon-meting'

export default defineConfig({
  addons: [
    addonMeting({
      global: true,
      /** @see https://github.com/metowolf/MetingJS */
      props: {
        id: '2049540645',
        server: 'netease',
        type: 'song',
      },
    })
  ]
})
export interface MetingOptions {
  global?: boolean
  /** @see https://github.com/metowolf/MetingJS#option */
  props?: {
    id?: string
    server?: 'netease' | 'tencent' | 'kugou' | 'xiami' | 'baidu'
    type?: 'song' | 'album' | 'artist' | 'playlist' | 'search'
  }
  options?: {
    animationIn?: boolean
    autoHidden?: boolean
    lyricHidden?: boolean
  }
}
Configuration Item Description Default Value
animationIn (optional) Specifies whether to hide the lyrics upon startup false
autoHidden (optional) Enables auto-hiding of the APlayer interface when not interacted with. Recommended for use with aplayerVisibleAfterLoad false
lyricHidden (optional) Determines whether the APlayer interface should be visible immediately after loading is complete false

props

You can meting#options

FAQ

  • import 'meting/dist/Meting.min.js' is not working, only cdn work

Readme

Keywords

Package Sidebar

Install

npm i valaxy-addon-meting

Weekly Downloads

37

Version

0.1.4

License

MIT

Unpacked Size

11.6 kB

Total Files

14

Last publish

Collaborators

  • yunyoujun