-
Notifications
You must be signed in to change notification settings - Fork 112
Fix caching and ability to play urls with query params. #101
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
Conversation
Hi! good point about URLs with query params. |
Hi again, I tried it and found that found that this breaks the scenario described in issue #77 (URLs without extension). We need a solution that works for both issues, with or without extension and with or without queryparams. I could tackle it but I need more time, feel free to do it yourself if you can! In the example app you can tweak the URL in BasicViewController to test it. The URL that it has now, BTW it might be a good idea to make a separate PR for @wxxsw with the caching fix and then either of us can deal with the rest in another PR. |
@gbuela thanks for testing that out and explaining the problem. I'll see if I can come up with something tomorrow, and will consider making a new PR for the caching issue. |
@gbuela @wxxsw what is the purpose of prepending Update: |
…t plays and caches correctly regardless if it has an extension or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
Release version '0.2.28' |
Fix ability to play URLs with query params:
appendingPathExtension
function fixes the issue.Fix caching:
isEnoughToPlay: Bool
would always return false from theguard
statement. I believe it's because theurl
extension that was being used in logic such asisEnoughToPlay: Bool
was deleting the path extension unnecessarily. Removing this seemed to fix the logic, andisEnoughToPlay
now correctly returnstrue
when thedownloadedByteCount
is sufficient.