CachingPlayerItem icon indicating copy to clipboard operation
CachingPlayerItem copied to clipboard

Issue in downloading.

Open anshulkumar189 opened this issue 7 years ago • 2 comments

Without start AVPlayer downloading never start. I want to download media(audio/video) without play.

anshulkumar189 avatar Jan 11 '19 06:01 anshulkumar189

You can predownload the file by instantiating CachingPlayerItem and triggering download() method on it. Don't add it to a player until you want to play it, otherwise it will start downloading implicitly. It's a temporary limitation because of a bug that I'm working on.

neekeetab avatar Jan 22 '19 23:01 neekeetab

I have an issue in downloading too . The delegates function never gets called and the file is not downloaded and I see an error message

 let item = CachingPlayerItem(url: myUrl)
 item.delegate = self
 item.download()

2020-01-26 15:51:03.191911+0100 Yoy[59293:5915628] Task <6BD1F283-2BAF-4A0B-8ACC-E9F7220441E5>.<1> HTTP load failed, 0/0 bytes (error code: -999 [1:89])

martaGonz avatar Jan 26 '20 14:01 martaGonz