mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 17:42:18 +00:00
* dev: update proto * dev: add `Studio#updateVideoMetadata` * feat: add `category` option * chore(studio): update API ref
1.0 KiB
1.0 KiB
Studio
YouTube Studio class (WIP).
API
- Studio
setThumbnail(video_id, buffer)
Uploads a custom thumbnail and sets it for a video.
Returns: Promise.<ActionsResponse>
| Param | Type | Description |
|---|---|---|
| video_id | string |
Video id |
| buffer | Uint8Array |
Thumbnail buffer |
updateVideoMetadata(video_id, metadata)
Updates given video's metadata.
Returns: Promise.<ActionsResponse>
| Param | Type | Description |
|---|---|---|
| video_id | string |
Video id |
| metadata | VideoMetadata |
Video metadata |
upload(file, metadata)
Uploads a video to YouTube.
Returns: Promise.<ActionsResponse>
| Param | Type | Description |
|---|---|---|
| file | BodyInit |
Video file |
| metadata | UploadedVideoMetadata |
Video metadata |