我使用YouTube API非常簡單地獲取一些視頻,並在我的iPhone應用程序的UITableView顯示它們,如何獲取Google Youtube API中的視圖數量?
問題是這樣的:
的觀點視頻1.Number總是返回null
2.我沒有獲得視頻上傳的名稱。
這裏是我的代碼
NSString *title = [[entry title] stringValue];
NSString *viewCount=[[[(GDataEntryYouTubeVideo *)entry statistics]viewCount] stringValue];
NSLog(@"%@",viewCount); // returns null
NSArray *thumbnails = [[(GDataEntryYouTubeVideo *)entry mediaGroup] mediaThumbnails];
感謝。
你得到一個字符串在你的「'title'」變量中返回嗎? –
沒有在標題我越來越完美reasult和我也得到縮略圖圖像。但我無法獲得意見數 –