---
description: onProgress.
---

# The τ Player API

## `onProgress`

* Dart API: [onProgress](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/player/pages/flutter-sound/api/player/FlutterSoundPlayer/onProgress.html).

The stream side of the Food Controller : this is a stream on which FlutterSound will post the player progression. You may listen to this Stream to have feedback on the current playback.

PlaybackDisposition has two fields :

* Duration duration  (the total playback duration)
* Duration position  (the current playback position)

_Example:_

[Dart](#dart)

[Javascript](#javascript)

```

        _playerSubscription = myPlayer.onProgress.listen((e)
        {
                Duration maxDuration = e.duration;
                Duration position = e.position;
                ...
        }
```

```

        Lorem ipsum ...
```

\</div>
