v5.3.0
- after experimenting with the player on mobile I noticed that muting the sound when the visibility api reports that the app is hidden is actually not ideal because the song keeps playing and if hidden for a while it might even reach the end of the song, when that happens the player triggers an event but the player UI might not be able to react as the page is hidden, so I changed how the visibility API feature works, it now pauses the song when hidden (if the visibility watch feature is enabled / it is not by default), I put added a second option to choose what action gets performed if hidden, by default it will pause the song but you can chose to mute the song if that's what you prefer... I also updated the simple example and updated the docs to reflect the changes
breaking changes:
- removed the option visibilityAutoMute
- added new option: visibilityWatch (boolean, default: false)
- added second option: visibilityHiddenAction (default: PlayerCore.VISIBILITY_HIDDEN_ACTION_PAUSE)
check out the player options documentation for more details