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 support for changing codecs in MediaSourceEngine #5217

Merged
merged 4 commits into from May 11, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented May 8, 2023

Thanks to #4766

This PR adds support for codec hot-switching in MediaSourceEngine.
There are two ways to change codec:

  • Using Sourcebuffer.changeType on supported browsers
  • Reloading the MediaSource instance with the new codecs

This change does not change the current filter logic, so this code is not used yet. The change in the filtering will be done in a subsequent PR in order to simplify the changes of this PR.

@avelad avelad added type: enhancement New feature or request priority: P2 Smaller impact or easy workaround labels May 8, 2023
@avelad avelad added this to the v4.4 milestone May 8, 2023
@avelad avelad force-pushed the reset-changeType-mse branch 2 times, most recently from b67f3d7 to d2cf831 Compare May 8, 2023 15:04
@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

Incremental code coverage: 63.73%

lib/media/media_source_engine.js Show resolved Hide resolved
lib/media/media_source_engine.js Show resolved Hide resolved
lib/media/media_source_engine.js Outdated Show resolved Hide resolved
lib/media/media_source_engine.js Outdated Show resolved Hide resolved
lib/media/media_source_engine.js Outdated Show resolved Hide resolved
lib/media/streaming_engine.js Outdated Show resolved Hide resolved
lib/media/streaming_engine.js Outdated Show resolved Hide resolved
@avelad avelad requested a review from theodab May 10, 2023 13:24
@avelad avelad merged commit 464f33c into shaka-project:main May 11, 2023
14 of 15 checks passed
@avelad avelad deleted the reset-changeType-mse branch May 12, 2023 08:03
@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

2 participants