0.1.4 • Published 10 months ago

valaxy-addon-meting v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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 ItemDescriptionDefault Value
animationIn (optional)Specifies whether to hide the lyrics upon startupfalse
autoHidden (optional)Enables auto-hiding of the APlayer interface when not interacted with. Recommended for use with aplayerVisibleAfterLoadfalse
lyricHidden (optional)Determines whether the APlayer interface should be visible immediately after loading is completefalse

props

You can meting#options

FAQ

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

10 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago