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 |
You can meting#options
-
import 'meting/dist/Meting.min.js'
is not working, only cdn work