Media Player Util
Functions
Link copied to clipboard
Converts the milliseconds in a displayable time-format like this --> min:sec
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This methods is mainly used when the user stops the current song and then wants to keep on playing it again. We therefore just look which song is currently assigned to the mediaPlayer and execute the startPlaying method to resume the song
Link copied to clipboard
Uses the mediaPlayer to start playing a song. It then also outputs if this action was successfully or not.
Link copied to clipboard
Toggles between two modes: paused and playing This is mainly used when the user pauses the player and then wants to resume the song If the mediaPlayer is paused, it starts playing and vice versa