Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Oct 12, 2024
1 parent 6effd9f commit eddc83e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/desktop/open-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ data: "幸存者 Drifter"
```

目前开放API没有提供播放的控制支持,但如果是本地调用的话,你可以配合 [Scheme URL](./scheme-url.md) 控制播放器的播放/暂停、搜索并播放某歌曲等操作。
### 播放器控制

| 接口地址 | 描述 |
| --- | --- |
| `/play` | 播放 |
| `/pause` | 暂停 |
| `/skip-next` | 下一曲 |
| `/skip-prev` | 上一曲 |
| `/collect` | 收藏当前歌曲 |
| `/uncollect` | 取消收藏当前歌曲 |

你还可以配合 [Scheme URL](./scheme-url.md) 控制播放器的其他操作,例如搜索并播放某歌曲的操作。

若你想要提供更多API,可以到GitHub开issue讨论 :)

0 comments on commit eddc83e

Please sign in to comment.