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

Reset mediaElement and mediaPlayer on call to reset when configured #353

Merged
merged 6 commits into from
Oct 3, 2024

Conversation

Luke-Chatburn
Copy link
Contributor

📺 What

Reset mediaElement and mediaPlayer on call to reset when configured with resetMSEPlayer

Reset currently does nothing as we normally just attach a new source on failover. This will change that behaviour and create a new mediaElement and player. This is to resolve an issue on certain devices.

Move to using destroy instead of reset on the dash mediaPlayer. This cleans up any memory left around of the player.

🛠 How

Move the teardown logic for resetting the player into a new cleanUpMediaPlayer function and use this for both reset and teardown.

Added a new setting resetMSEPlayer

@Luke-Chatburn Luke-Chatburn added the semver minor This PR is a semver minor release label Oct 1, 2024
@Luke-Chatburn Luke-Chatburn requested a review from a team as a code owner October 1, 2024 13:34
@matt-stephenson matt-stephenson merged commit f9662d0 into master Oct 3, 2024
4 checks passed
@matt-stephenson matt-stephenson deleted the badgers-544-fully-reset-msestrategy branch October 3, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver minor This PR is a semver minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants