---
title: "TrackPlayer"
description: "API documentation for TrackPlayer"
url: https://developer.disguise.one/python-api/docs/trackplayer/
---

# TrackPlayer

See also: [Transports Guide](/plugins/guides/transports)

Base class (inherits properties and methods): _[Resource](/python-api/docs/resource#resource)_

## Properties

#### **activeLayers** : _List\[[Layer](/python-api/docs/layer#layer)\]_ _(Read-Only)_

#### **deltaTime** : _float_ _(Read-Only)_

Time difference in seconds between frames.

#### **hasTrack** : _bool_ _(Read-Only)_

#### **holding** : _bool_ _(Read-Only)_

#### **isFreeRunning** : _bool_ _(Read-Only)_

#### **loopSectionMode** : _bool_ _(Read-Only)_

#### **playHead** : _[TrackPlayHead](/python-api/docs/trackplayhead#trackplayhead)_ _(Read-Only)_

The TrackPlayHead currently driving this player’s track playback.

#### **playMode** : _[PlayMode](/python-api/docs/playmode#playmode)_ _(Read-Only)_

#### **playing** : _bool_ _(Read-Only)_

#### **sectionPlayMode** : _bool_ _(Read-Only)_

#### **sectionTestMode** : _bool_ _(Read-Only)_

#### **speed** : _float_ _(Read-Only)_

Gets the playback speed ratio of the track player. 1 = normal, >1 = faster, <1 = slower.

current playback speed ratio.

#### **stopped** : _bool_ _(Read-Only)_

#### **tCurrent** : _float_ _(Read-Only)_

#### **tRender** : _float_ _(Read-Only)_

#### **tRunForever** : _float_ _(Read-Only)_

#### **tRunning** : _float_ _(Read-Only)_

#### **track** : _[Track](/python-api/docs/track#track)_ _(Read-Only)_

## Variables

#### **HoldEnd** : _Final\[[PlayMode.PlayModeState](/python-api/docs/playmode.playmodestate#playmodestate)\]_ = PlayMode.PlayModeState.HoldEnd

#### **HoldSection** : _Final\[[PlayMode.PlayModeState](/python-api/docs/playmode.playmodestate#playmodestate)\]_ = PlayMode.PlayModeState.HoldSection

#### **LoopSection** : _Final\[[PlayMode.PlayModeState](/python-api/docs/playmode.playmodestate#playmodestate)\]_ = PlayMode.PlayModeState.LoopSection

#### **Play** : _Final\[[PlayMode.PlayModeState](/python-api/docs/playmode.playmodestate#playmodestate)\]_ = PlayMode.PlayModeState.Play

#### **PlaySection** : _Final\[[PlayMode.PlayModeState](/python-api/docs/playmode.playmodestate#playmodestate)\]_ = PlayMode.PlayModeState.PlaySection

#### **Stop** : _Final\[[PlayMode.PlayModeState](/python-api/docs/playmode.playmodestate#playmodestate)\]_ = PlayMode.PlayModeState.Stop
