en | fr

The Ui.Player class


This class manages the player’s user interface.


pauseButton

Changes the appearance of the play/pause button to have a play icon.

Returns null


playButton

Changes the appearance of the play/pause button to have a pause icon.

Returns null


setupInterface

Utility method to correctly setup the different pieces of the player’s interface when we are playing a media like setting the elements’ color, display the media’s information, etc.

Returns null


progression

Displays the current progression of the media by updating the current time and setting the progress bar width and the position of the circle cursor.

This method can be interrupted by setting the value of the Player’s auto_progression value to false.

Parameters

Returns null


buffered

Updates the width of the buffer bar.

Parameters

Returns null


setVolume

Updates the volume bar’s height and sets the right volume icon.

Parameters

Returns null


toggleRepeat

Toggles the active state of the repeat icon.

Returns null


showCurrentSet

Displays the current set’s icon and copies its items.

Returns null


hideCurrentSet

Hides the current set’s icon and clears its items.

Returns null


currentSetMode

Toggles the playing mode for the current set.

Parameters

Returns null


showLoader

Shows the loader for the current media; this is triggered when the media is loading (only for SoundCloud and Youtube).

Returns null


hideLoader

Hides the loader for the current media.

Returns null


reset

Short hand to reset the progress bar.

Returns null