Allow setting custom HTTP header field to AVPlayer with AVURLAsset

Originator:pitthipalkul
Number:rdar://17888097 Date Originated:01-Aug-2014 12:55 PM
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification:Enhancement Reproducible:Always
 
Summary:
AVURLAsset should allow the user to supply custom HTTP header fields rather than resorting to rewrite the URL scheme to force AVPlayer to use custom resource loader

Steps to Reproduce:
Create an AVURLAsset
        AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:self.assetURL options:nil];

Expected Results:
The options field DOES allow supplying custom HTTP header fields if the URL is an HTTP/HTTPS URL

Actual Results:
The options field does NOT allow supplying custom HTTP header fields

Version:
iOS 6/7/8

Notes:
WebKit source code seems to be using AVURLAssetHTTPHeaderFieldsKey key to insert custom HTTP header. The key should be made public.

Configuration:
All devices

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!