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