diff --git a/docs/components/Demo.tsx b/docs/components/Demo.tsx index 6b3ad28..35f156d 100644 --- a/docs/components/Demo.tsx +++ b/docs/components/Demo.tsx @@ -5,7 +5,10 @@ import "aplayer-react/dist/index.css"; const playlist1 = [ { name: "Dancing with my phone", - artist: "HYBS", + artist: { + name: "HYBS", + url: "https://music.163.com/#/artist?id=49713779", + }, url: "https://music.163.com/song/media/outer/url?id=1969744125", cover: "https://p1.music.126.net/tOtUdKjS9rktAFRamcomWQ==/109951167748733958.jpg", diff --git a/docs/package.json b/docs/package.json index a4df622..17c4b69 100644 --- a/docs/package.json +++ b/docs/package.json @@ -11,8 +11,7 @@ }, "dependencies": { "@vercel/analytics": "^1.0.0", - "aplayer": "^1.10.1", - "aplayer-react": "1.4.0", + "aplayer-react": "1.5.0", "next": "^13.1.1", "nextra": "^2.0.3", "nextra-theme-docs": "^2.0.3", diff --git a/docs/pages/docs/api.mdx b/docs/pages/docs/api.mdx index 230c567..bd5a557 100644 --- a/docs/pages/docs/api.mdx +++ b/docs/pages/docs/api.mdx @@ -1,17 +1,19 @@ ## Props -| Prop | Default | Description | -| ------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | -| audio | | Songs' information. Could be a single object or an array of objects | -| audio.name | `"Audio name"` | Title of the song | -| audio.artist | `"Audio artist"` | Artist name of the song | -| audio.url | | Url of the media source to play | -| audio.cover | | Url of the album cover image | -| audio.lrc | | Lyrics of the song in raw LRC format | -| audio.theme | | Override theme color for this song. See `theme` prop for theme color explanation | -| theme | `"#ebd0c2"` | Theme color of the player that applies to progress bar, volume control bar and playlist marker. | -| autoPlay | | [See `autoplay` attribute of `