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

feat: Support byte array and data URIs via mimeType #1763

Merged
merged 44 commits into from
Mar 18, 2024

Conversation

Gustl22
Copy link
Collaborator

@Gustl22 Gustl22 commented Mar 2, 2024

Description

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, refactor:,
    docs:, chore:, test:, ci: 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 #1692, closes #1670, closes #1663, closes #1269

@Gustl22 Gustl22 marked this pull request as draft March 14, 2024 07:56
@Gustl22 Gustl22 changed the title tests: Validate data URIs feat: Support byte array and data URIs via mimeType Mar 15, 2024
@Gustl22 Gustl22 marked this pull request as ready for review March 15, 2024 11:59
@Gustl22 Gustl22 requested a review from spydon March 15, 2024 13:42
@Gustl22
Copy link
Collaborator Author

Gustl22 commented Mar 15, 2024

MacOS 14 will be fixed in #1769 as soon as I have access to a proper Mac. But other tests failed before this PR, so it's unlikely this makes anything worse.

/cc @samdeane for double-checking

@@ -100,21 +119,23 @@ Future<List<LibSourceTestData>> getAudioTestDataList() async {
if (_features.hasUrlSource && _features.hasPlaylistSourceType)
m3u8UrlTestData,
if (_features.hasUrlSource) mpgaUrlTestData,
if (_features.hasDataUriSource) wavDataUriTestData,
// if (_features.hasDataUriSource) mp3DataUriTestData,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is just added as redundancy (like the other sources, but in a different format). But in order to make the tests faster, I commented them out. They are useful for testing certain scenarios though.

@Gustl22 Gustl22 enabled auto-merge (squash) March 18, 2024 09:00
@Gustl22 Gustl22 merged commit eaf7ce8 into bluefireteam:main Mar 18, 2024
9 checks passed
@Gustl22 Gustl22 deleted the 1728-uri-test-data branch March 18, 2024 10:04
@Gustl22 Gustl22 mentioned this pull request Mar 18, 2024
2 tasks
Gustl22 added a commit that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants