AudioPlayerManager icon indicating copy to clipboard operation
AudioPlayerManager copied to clipboard

Add headers

Open muhammad-naderi opened this issue 7 years ago • 2 comments

Hi,

thanks for the great job

is there any way that I can add headers to the url(s) so I can satisfy some security protocols of the server ?

muhammad-naderi avatar Apr 18 '17 16:04 muhammad-naderi

Hi, there is currently no way as the complete playing / streaming logic is done with AVPlayer. As far as I know the fetching has do be done manually if custom headers are needed. Either with a complete download before playing the file locally or by implementing the requests with the AVAssetResourceLoaderDelegate.

tschob avatar Apr 27 '17 08:04 tschob

I also would like a solution to adding headers to the URL

moderateepheezy avatar Feb 26 '18 04:02 moderateepheezy