Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin authored Sep 16, 2024
1 parent 1d825c0 commit 1400b08
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,23 @@ Otherwise:
}
```

### `GET` `/youtube/stream/{videoId}`

Query parameters:

| Key | Value Type | Required | Notes |
|--------------|------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| itag | integer | No | The [itag](https://gist.github.com/AgentOak/34d47c65b1d28829bb17c24c04a0096f) of the desired format. youtube-source's default format selector will be used. |
| withClient | string | No | The client to use for streaming. Uses all clients if unspecified. |

Response:

If `videoId` could not be found or loaded, or the `itag` does not exist, or if no client supports format loading:
`400 - Bad Request`

Otherwise:
`200 - OK` accompanied by the selected format stream (audio or video). `Content-Type` header will be set appropriately.

## Migration from Lavaplayer's built-in YouTube source

This client is intended as a direct replacement for Lavaplayer's built-in `YoutubeAudioSourceManager`,
Expand Down

0 comments on commit 1400b08

Please sign in to comment.