neekeetab / CachingPlayerItem

Play and cache media content simultaneously on your iOS device
MIT License
520 stars 89 forks source link

How can we stop the ongoing download? #45

Open mohamedrafi-rapid opened 1 year ago

mohamedrafi-rapid commented 1 year ago

Please help me to stop the ongoing download

mohamedrafi-rapid commented 1 year ago

@neekeetab pls help here

neekeetab commented 1 year ago

@mohamedrafi-rapid was it resolved in https://github.com/neekeetab/CachingPlayerItem/issues/46 ?

mohamedrafi-rapid commented 1 year ago

@neekeetab No.

Now I am cancelling download an ongoing session by playerItem?.resourceLoaderDelegate.session?.invalidateAndCancel(). Made resourceLoaderDelegate.session public

mohamedrafi-rapid commented 1 year ago

@neekeetab Pls clear my doubt, that is If I call to play the player item while it's already been downloaded, what will happen?