Reputation: 792
I tried to add thumbnail with youtube data api while creating live broadcast. Broadcast is created successfully but issue with thumbnail its show youtube default thumbnail not mine.
here is request body: for url i am using public url:
{"status": {
"privacyStatus": "public"
},
"snippet": {
"scheduledStartTime": "2021-04-14T06:25:08.000Z",
"title": "testing thumb",
"thumbnails": {
"default": {
"url": "https://i.ibb.co/60vkQqK/nokia.png",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ibb.co/60vkQqK/nokia.png",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ibb.co/60vkQqK/nokia.png",
"width": 480,
"height": 360
},
"standard": {
"url": "https://i.ibb.co/60vkQqK/nokia.png",
"width": 640,
"height": 480
},
"maxres": {
"url": "https://i.ibb.co/60vkQqK/nokia.png",
"width": 1280,
"height": 720
}
}
}
Upvotes: 1
Views: 986
Reputation: 11
You can add thumbnails with the Youtube Data API after the stream is created. You have to upload the thumbnail with set. See the documentation https://developers.google.com/youtube/v3/docs/thumbnails/set
Upvotes: 1