generated from egoist/ts-lib-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add description to audio.artist object
- Loading branch information
1 parent
782fb27
commit 0ffa21f
Showing
4 changed files
with
26 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `<audio>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-autoplay) | | ||
| volume | `0.7` | Initial volume of the player. | | ||
| initialLoop | `"all"` | Initial loop mode of the player | | ||
| initialOrder | `"list"` | Initial playlist order of the player | | ||
| listMaxHeight | `250` | Playerlist max height | | ||
| 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. Either a string or be an object containing artist's name and homepage URL. | | ||
| audio.artist.name | `"Audio artist"` | Artist name of the song. | | ||
| audio.artist.url | | Artist homepage URL. If specified, artist name displayed on the player will be a link to that URL. | | ||
| 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 `<audio>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-autoplay) | | ||
| volume | `0.7` | Initial volume of the player. | | ||
| initialLoop | `"all"` | Initial loop mode of the player | | ||
| initialOrder | `"list"` | Initial playlist order of the player | | ||
| listMaxHeight | `250` | Playerlist max height | |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
0ffa21f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
aplayer-react – ./
aplayer-react-git-master-leishenghao.vercel.app
aplayer-react-leishenghao.vercel.app
aplayer-react.js.org
aplayer-react.vercel.app