如何在播放YouTube视频时获得时间?

时间:2013-08-23 06:51:56

标签: iphone ios time youtube

我想计算播放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];

    }];

0 个答案:

没有答案
相关问题