2

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

    }];
4

0 回答 0