Player
Player copied to clipboard
How to add HTTP Headers with the url.
I have to play video from a URL, and i need to send some http request headers along with it. Could not find anything related to it.
How would we go about doing it?
Hello,
Maybe is too late to the answer but, you can try with:
`let headers: [String: String] = [ "custome_header": "custome value" ]
let asset = AVURLAsset(url: VIDEO_URL, options: ["AVURLAssetHTTPHeaderFieldsKey": headers])
YOUR_PLAYER.asset = asset`