mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-14 18:12:10 +00:00
695 B
695 B
Studio
YouTube Studio class (WIP).
API
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 |
upload(file, metadata)
Uploads a video to YouTube.
Returns: Promise.<ActionsResponse>
| Param | Type | Description |
|---|---|---|
| file | BodyInit |
Video file |
| metadata | VideoMetadata |
Video metadata |