我正在使用YouTube的Android Player API在我正在开发的一个应用程序中播放YouTube视频。必须将视频的ID提供给API才能加载视频,但在这种情况下,我尝试播放给定URL的视频。许多问题建议使用正则表达式从网址获取视频ID的方法,但这似乎是喜怒无常的,YouTube开发人员的政策说,开发人员不能"...use任何技术以外的Y
NSURL *youTubeURL = [NSURL URLWithString:@"http://www.youtube.com/watch?v=HPwyVw_6vsQ&feature=youtu.be"]; // URL is a string which needs to be placed in @"" and close methodyouTubeURL];
imageSel = [player thumbnailImageAtTime:1.0 tim