fix syntax errors

This commit is contained in:
Emrah Kaya 2018-06-11 11:10:01 +02:00
parent 49cd5b6d01
commit 6cd7dfeedf

View File

@ -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];