Skip to content

Commit

Permalink
Remove workaround for bug in GoogleAPIClient which is now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
0xced committed Apr 22, 2016
1 parent c788333 commit 9d62419
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ - (void) collectionView:(UICollectionView *)collectionView didSelectItemAtIndexP
[self presentViewController:playerViewController animated:YES completion:nil];

__weak AVPlayerViewController *weakPlayerViewController = playerViewController;
// Quoting https://github.com/google/google-api-objectivec-client/issues/92#issuecomment-135566515
// > For now, apps should just directly access the JSON of that incorrect class instance rather than the properties.
// Change to `playlistItem.snippet.resourceId.videoId` once https://github.com/google/google-api-objectivec-client/pull/109 is merged
[[XCDYouTubeClient defaultClient] getVideoWithIdentifier:playlistItem.snippet.resourceId.JSON[@"videoId"] completionHandler:^(XCDYouTubeVideo * _Nullable video, NSError * _Nullable error) {
[[XCDYouTubeClient defaultClient] getVideoWithIdentifier:playlistItem.snippet.resourceId.videoId completionHandler:^(XCDYouTubeVideo * _Nullable video, NSError * _Nullable error) {
if (video)
{
NSDictionary *streamURLs = video.streamURLs;
Expand Down

0 comments on commit 9d62419

Please sign in to comment.