Player
Ui.Player
classThis class manages the player’s user interface.
Changes the appearance of the play/pause button to have a play icon.
Returns null
Changes the appearance of the play/pause button to have a pause icon.
Returns null
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
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
Updates the width of the buffer bar.
Parameters
time
Number The number of seconds buffered.Returns null
Updates the volume bar’s height and sets the right volume icon.
Parameters
volume
Number The chosen volume.Returns null
Toggles the active state of the repeat icon.
Returns null
Displays the current set’s icon and copies its items.
Returns null
Hides the current set’s icon and clears its items.
Returns null
Toggles the playing mode for the current set.
Parameters
Returns null
Shows the loader for the current media; this is triggered when the media is loading (only for SoundCloud and Youtube).
Returns null
Hides the loader for the current media.
Returns null
Short hand to reset the progress bar.
Returns null