我想计算播放YouTube视频时的时间,任何人都可以告诉我如何获取此信息,我正在使用此代码
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tblResourcesDetails deselectRowAtIndexPath:indexPath animated:YES];
ChildrenDetailsDO *childDetailsDO = [listResourcesDetails objectAtIndex:indexPath.row];
NSLog(@"url : %@", childDetailsDO.url);
NSLog(@"ka_url : %@", childDetailsDO.ka_url);
LBYouTubePlayerViewController* controller = [[LBYouTubePlayerViewController alloc] initWithYouTubeURL:[NSURL URLWithString:childDetailsDO.url] quality:LBYouTubeVideoQualityLarge];
controller.delegate = self;
[self presentViewController:controller animated:YES completion:^{
[[NSNotificationCenter defaultCenter] postNotificationName:kNotificationIncrementWatchedVideosCounter object:nil userInfo:nil];
}];