Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in downloading. #19

Open
anshulkumar189 opened this issue Jan 11, 2019 · 2 comments
Open

Issue in downloading. #19

anshulkumar189 opened this issue Jan 11, 2019 · 2 comments

Comments

@anshulkumar189
Copy link

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

@neekeetab
Copy link
Owner

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.

@martaGonz
Copy link

martaGonz commented Jan 26, 2020

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])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants