From 6cd7dfeedf10d1b55b5ec2fc30ea5afa449f147b Mon Sep 17 00:00:00 2001 From: Emrah Kaya Date: Mon, 11 Jun 2018 11:10:01 +0200 Subject: [PATCH] fix syntax errors --- ios/RCTVideo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/RCTVideo.m b/ios/RCTVideo.m index c8908734..d7d61411 100644 --- a/ios/RCTVideo.m +++ b/ios/RCTVideo.m @@ -330,10 +330,10 @@ static NSString *const timedMetadata = @"timedMetadata"; if (isNetwork) { NSMutableDictionary *assetOptions = [[NSMutableDictionary alloc]init]; if ([headers count] > 0) { - [assetOptions setObject:@headers forKey:@"AVURLAssetHTTPHeaderFieldsKey"] + [assetOptions setObject:headers forKey:@"AVURLAssetHTTPHeaderFieldsKey"]; } NSArray *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; - [assetOptions setObject:@cookies forKey:@AVURLAssetHTTPCookiesKey] + [assetOptions setObject:cookies forKey:AVURLAssetHTTPCookiesKey]; AVURLAsset *asset = [AVURLAsset URLAssetWithURL:url options:assetOptions]; return [AVPlayerItem playerItemWithAsset:asset];