Menu

Skins and styling of thisPlayer

thisPlayer provides class based layout of each player HTML for easy styling/skinning. It adds different classes in main thisPlayer wrapper to indicate and select all possible states of player using CSS.

See an example of classes generated in main .this-player container of thisPlayer:

screenshot of thisPlayer skin html

Yup that's right there are so many class names but this is for very easy styling of player. you can select any state or mode of player in CSS using this classes and style it very easily.

The list below explains which class when and why appears in main container of thisPlayer.

.this-player

This is the main class of the player container which never changes and always is added on it.

.tp-video

Added when it's video player - when media type is video.

.tp-audio

When player type is audio - so when media type is audio.

.tp-is-touchscreen

Added when a device that the player is generated on has touchscreen.

.tp-is-mobile-or-tablet

Added when a device that the player is generated on is mobile or tablet.

.tp-has-builtin

Added when player has builtin option enabled. See what is builtin in thisPlayer options.

.tp-has-waiting-indicator

Added when player has big loading/waiting indicator.

.tp-has-big-play-button

Added when player has big play button.

.tp-has-text-tracks

Added when text tracks is available.

.tp-text-tracks-bar-opened

Added when text tracks menu is opened.

.tp-is-text-tracks-active

Added when text tracks is activated. When it is not turned off.

.tp-has-controls

Added when player has controls bar.

.tp-controls-active

Added when controls bar is active - shown.

.tp-has-time-progress-bar

Added when player has time progress bar.

.tp-has-time-seek-pointer

Added when time seek pointer is added in time progress bar.

.tp-has-floating-time-indicator

Added when player has floating time in time progress bar.

.tp-has-time-progress-bar-highlighter

Added when player has time progress bar highlighter.

.tp-has-waiting-indicator-on-time-progress-bar

Added when has waiting/loading indicator in time progress bar.

.tp-has-small-play-button

Added when has small play button in controls bar.

.tp-has-current-time-log

Added when shows current time in controls bar

.tp-has-time-remaining-log

Added when remaining time is shown in controls bar.

.tp-has-duration-log

Added when player duration is shown in controls bar.

.tp-has-mute-button

Added when has mute/unmute button.

.tp-has-volume-bar

Added when has volume bar.

.tp-has-volume-bar-seek-pointer

Added when has seek pointer in volume bar.

.tp-has-floating-volume-indicator

Added when has floating volume number in volume bar.

.tp-has-volume-bar-highlighter

Added when has highlighter of volume bar.

.tp-has-fulscreen-button

Added when has full screen button in controls bar.

.tp-has-qualities

Added when there is multiple qualities available.

.tp-qualities-bar-opened

Added when qualities bar is opened.

.tp-is-playing

Added when player is playing.

.tp-volume-is-seeking

Added when volume bar is seeking.

.tp-floating-time-indicator-active

Added when time indicator in time progress bar is active. Actually this class appears when mouse or touch is over time progress bar. Just when floating time indicator is available.

.tp-floating-volume-indicator-active

Added when volume indicator is active in volume bar. The class appears when mouse or touch is over volume bar just if floating volume indicator is available.

.tp-time-progress-bar-highlighter-active

Added when time progress bar highlighter is shown. The class appears when touch or mouse is over time progress bur just if highlighter of time bar is available in options.

tp-volume-bar-highlighter-active

Added when volume bar highlighter is showm. Actually class is added when touch or mouse is over volume bar. Only if highlighter of volume bar is available!

.tp-is-muted

Added when the player is muted.

.tp-is-fullscreen

Added when player is in full screen mode.

.tp-is-active

If you click/touch over player it becomes active, if you click/touch outside of player it becomes not active. This class says that player is active when it is added.

.tp-controls-active

Added when player controls bar is shown. Actually it happens when player is paused, not started or mouse is moved over player or in case of touchscreen when touch over player.

.tp-is-waiting

Added when player is waiting/loading.

.tp-is-started

Added when player has been started playback.

.tp-has-aspect-ratio

Added when aspect ratio is enabled/added.

.tp-error

Added when some player occurs over player.