Skip to content

Commit

Permalink
fix: change phrasing and wrong data of change video (#1)
Browse files Browse the repository at this point in the history
feat: add version badge to change video
  • Loading branch information
XeroxDev authored Nov 2, 2024
1 parent 0558583 commit 6ebd18c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions developer/companion-server/reference/v1/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Toggles the dislike status of the current video.
}
```

### Change Video
### Change Video <Badge type="danger" text="Since 2.0.6" />

Immediately starts playing the specified video or playlist.

Expand All @@ -233,18 +233,18 @@ Immediately starts playing the specified video or playlist.
> One of `videoId`, `playlistId`, or both **MUST** be provided.
> [!CAUTION]
> YouTube Music's UI will display a blank player if a provided `playlistId` does not contain a provided `videoId` if one is given.
> YouTube Music's UI will display a blank or broken player if both `videoId` and `playlistId` are provided but the video is not in the playlist or the playlist does not exist
| Field | Type | Since Version |
| ---------- | -------------- | ------------- |
| videoId | string \| null | 2.0.0 |
| playlistId | object \| null | 2.0.0 |
| videoId | string \| null | 2.0.6 |
| playlistId | string \| null | 2.0.6 |

#### Example

```json
{
"command": "repeatMode",
"command": "changeVideo",
"data": {
"videoId": "dQw4w9WgXcQ",
"playlistId": "MLCT"
Expand Down

0 comments on commit 6ebd18c

Please sign in to comment.