Closed blastmann closed 5 years ago
NSURLSessionDataTask will decode the response data when response received. So if we pass the original repsonse header of Content-Encoding to AVPlayer, it will cause a decode error.
NSURLSessionDataTask
Content-Encoding
AVPlayer
We should use Content-Encoding=identity instead.
Content-Encoding=identity
NSURLSessionDataTask
will decode the response data when response received. So if we pass the original repsonse header ofContent-Encoding
toAVPlayer
, it will cause a decode error.We should use
Content-Encoding=identity
instead.