Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

upload youtube (short) video thumb with youtube-api fail

$
0
0

first , let me show the main part that to upload youtube video thumb

the it is

  • imagePath will be the full path
  • php script

$response = $youtube->thumbnails->set( $videoId, [ 'data' => file_get_contents($imagePath), 'mimeType' => 'image/png' ] );

result : upload success

for standard video, it tested : no problemfor short video, tested:

Q1: it return success ( no error ) , but the thumb load fail in playlist ( the playlist which in my studio) , another public playlist, still using the old thumb

Q2: when i want to remove / change the thumb, it said mobile app can update the short video thumb, i have iphone, and android ( samsung ) , cannot find any update button ( no matter in youtube player app or youtube studio app)

Q3. i have find a suggest solution, upload a 1X1 px transprent.png to to remove the thumb uploaded before (Q1, the thumb uploaded and display error) , still fail

i guess it is bug, and expect google / youtube develop to fix, if it is not bug, please tell anything wrong with it ? as i have tried to upload thumb for my standard video, it works.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>