0.1.2 • Published 11 days ago

valaxy-addon-meting v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days 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.2

11 days ago

0.1.1

1 month ago

0.1.0

3 months ago

0.0.5

3 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

7 months ago