sukov / CachingPlayerItem

An AVPlayerItem subclass that lets you stream and cache media content on iOS
MIT License
75 stars 19 forks source link

Why is there not a queue set here / URLSession(configuration: configuration, delegate: self, delegateQueue: nil) #1

Closed 8secz-johndpope closed 3 years ago

8secz-johndpope commented 3 years ago
    session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil) ???

and why not use AVAssetDownloadURLSession https://developer.apple.com/documentation/avfoundation/avassetdownloadurlsession instead of URLSession ?

sukov commented 3 years ago

There is no need for queue to be set, please read Apple's docs first before opening an issue https://developer.apple.com/documentation/foundation/urlsession/1411597-init.

Which benefit does AVAssetDownloadURLSession have over the URLSession in this case?

8secz-johndpope commented 3 years ago

ok thanks - not actually sure if AVAssetDownloadURLSession is of use - seems to be available in later os - thought it may supercede older code