How do I get the title of a youtube video if I have the Video Id?

后端 未结 9 2020
忘掉有多难
忘掉有多难 2020-12-13 00:28

I\'m playing now with the Youtube API and I began a small project (for fun).

The problem Is that I cant find the way to get Title of a video from the Id. (example: y

9条回答
  •  难免孤独
    2020-12-13 00:57

    Instead of using http://gdata.youtube.com/feeds/api/videos/....

    If you have the video loaded, you can use the player object's getVideoData() method to retrieve information on the video, including the title. It will return a object which contains: video_id, author, title.

提交回复
热议问题