Skip to content

8.7.0: Reset mediaElement and mediaPlayer on call to reset when configured (#353)

Compare
Choose a tag to compare
@tvr-buildatron tvr-buildatron released this 03 Oct 10:01

📺 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