-
Notifications
You must be signed in to change notification settings - Fork 91
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
Is it harmless to call download() many times? #28
Comments
+1 |
Calling |
If we repeatedly call download on the same item (even if item is being actively downloaded), will the item be downloaded again? Or is there a way we can check if an item has already been downloaded? Thanks.
Sent via Superhuman ( https://sprh.mn/[email protected] )
…On Wed, Jan 08, 2020 at 11:42 PM, Nikita Belousov < ***@***.*** > wrote:
Calling download when there’s already a file loading has no effect
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (
#28?email_source=notifications&email_token=ACRBWAPIC7VRWDZCSIUQ6DTQ43INJA5CNFSM4JZC7EGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIPKISY#issuecomment-572433483
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/ACRBWAMTIGZIYL6SMJRM2T3Q43INJANCNFSM4JZC7EGA
).
|
It will not be downloaded again. When loading is complete, delegate's |
Great, thanks!
Sent via Superhuman ( https://sprh.mn/[email protected] )
…On Thu, Jan 09, 2020 at 3:53 AM, Nikita Belousov < ***@***.*** > wrote:
It will not be downloaded again. When loading is complete, delegate's playerItem(_
playerItem: CachingPlayerItem, didFinishDownloadingData data: Data) is
called
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (
#28?email_source=notifications&email_token=ACRBWAPYRIN4ZUZZBD6LZ23Q44F5NA5CNFSM4JZC7EGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQBRPQ#issuecomment-572528830
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/ACRBWALAQU36MDAM7ZPSZMDQ44F5NANCNFSM4JZC7EGA
).
|
Is there any way I can check whether my file is present in the cached list? and also I wanted to clear the memory when total memory consumption is more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Say at 11:11:07.0 I call x.download()
Say that will take about three seconds to reach playerItemReadyToPlay and 10 seconds to fully download.
At 11:11:08.0 I call x.download() again
is this completely harmless ?
Does it know it is already doing x ?
thanks! @neekeetab - amazing library, the best
The text was updated successfully, but these errors were encountered: