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

fix(darwin): infinity / nan on getDuration #1298

Merged
merged 2 commits into from Oct 5, 2022

Conversation

Gustl22
Copy link
Collaborator

@Gustl22 Gustl22 commented Oct 4, 2022

Description

I decided to do a separate PR, as it doesn't really belong to the tests in #1284.
Avoid getting error when calling getDuration on darwin, when getting back infinity or NaN values.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs:, chore: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation and added dartdoc comments with ///, where necessary.
  • I have updated/added relevant examples in example.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

Closes #1024

Tests follow in #1284

@spydon spydon merged commit a4474dc into bluefireteam:main Oct 5, 2022
@Gustl22 Gustl22 deleted the gustl/1024-duration-ios branch October 5, 2022 07:17
Gustl22 added a commit that referenced this pull request Oct 5, 2022
* test: player state tests (#1257)

* test: more reliable duration checks

* test: test for duration on live stream

* test: improve durationRangeMatcher

* test(example): allow cleartext traffic / AllowsArbitraryLoads on darwin

* test: test onPosition on every platform

* tests: overwrite setState for streams tab

* fix(linux): install gstreamer1.0-plugins-bad for m3u8 tests

* test(windows): disable playlist source (m3u8) on windows
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

Successfully merging this pull request may close these issues.

getDuration() leads to Fatal error on IOS
2 participants