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

Retry media load if it has Infinity duration. #373

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

benwiley4000
Copy link
Owner

@benwiley4000 benwiley4000 commented Feb 18, 2019

Fixes #355.

Tested with an infinite duration stream and it seems to not have any noticeable impact on playback (http://158.69.114.190:8072/;?1476089829845.mp3, which I found on a site that uses Cassette for radio playback: https://arubapage.com).

@benwiley4000
Copy link
Owner Author

@danielr18 how does this look?

@benwiley4000
Copy link
Owner Author

benwiley4000 commented Feb 18, 2019

Update.. I tested with a different radio source I found on the internet which takes some time to connect (http://live96.917xfm.de/;stream;audio.mp3?hash=1419274099574) and the difference is substantial. It takes twice as long to load (from ~3.5 to ~7 seconds) with the infinity duration guard.

So I've added a new track property called isUnboundedStream which should be set for live stream sources. If it's true, we skip the check.

I'm marking this as a breaking change since it's necessary to set that property in order to get the same loadtime performance if you're playing live streams.

@benwiley4000 benwiley4000 merged commit f0c9a57 into next Feb 18, 2019
@benwiley4000 benwiley4000 deleted the issue/355-ios-infinity-duration branch February 18, 2019 04:45
@benwiley4000
Copy link
Owner Author

Released in v2.0.0-alpha.27 (has breaking changes, see the release notes)

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

Successfully merging this pull request may close these issues.

None yet

1 participant