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: Add MP3 transmuxer #5208

Merged
merged 4 commits into from May 12, 2023
Merged

feat: Add MP3 transmuxer #5208

merged 4 commits into from May 12, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented May 3, 2023

This transmuxer is used in Firefox due the lack of support for audio/mpeg

@avelad avelad added type: enhancement New feature or request priority: P2 Smaller impact or easy workaround labels May 3, 2023
@avelad avelad added this to the v4.4 milestone May 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2023

Incremental code coverage: 48.25%

lib/transmuxer/mp3_transmuxer.js Outdated Show resolved Hide resolved
lib/transmuxer/mpeg_audio.js Show resolved Hide resolved
Math.floor((sampleCoefficient * bitRate) / sampleRate + paddingBit) *
bytesInSlot;

const userAgent = navigator.userAgent || '';
Copy link
Member

Choose a reason for hiding this comment

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

We have utilities for detecting browsers and versions in shaka.util.Platform

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but the utility is only for chrome browser, this is for all browser with Chrome string.

@avelad avelad requested a review from joeyparrish May 3, 2023 16:26
@avelad
Copy link
Collaborator Author

avelad commented May 8, 2023

@theodab can you review it? Thanks!

lib/transmuxer/mpeg_audio.js Outdated Show resolved Hide resolved
@avelad avelad requested a review from theodab May 12, 2023 08:07
@avelad avelad dismissed joeyparrish’s stale review May 12, 2023 19:36

Reviewed by Theodore!

@avelad avelad merged commit 82e905b into shaka-project:main May 12, 2023
15 of 16 checks passed
@avelad avelad deleted the mp3-transmuxer branch May 12, 2023 19:39
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants