From 3f5ab0b7ae5b28ca6203be439e2d27bc2085ce98 Mon Sep 17 00:00:00 2001 From: Hampton Maxwell Date: Tue, 26 Jun 2018 15:39:04 -0700 Subject: [PATCH] Disable HTTP headers since it uses a private API --- ios/RCTVideo.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/RCTVideo.m b/ios/RCTVideo.m index 49893edb..12bf7d25 100644 --- a/ios/RCTVideo.m +++ b/ios/RCTVideo.m @@ -334,9 +334,12 @@ static NSString *const timedMetadata = @"timedMetadata"; if (isNetwork) { NSMutableDictionary *assetOptions = [[NSMutableDictionary alloc]init]; + /* Per #1091, this is not a public API. We need to either get approval from Apple to use this + * or use a different approach. if ([headers count] > 0) { [assetOptions setObject:headers forKey:@"AVURLAssetHTTPHeaderFieldsKey"]; } + */ NSArray *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; [assetOptions setObject:cookies forKey:AVURLAssetHTTPCookiesKey];