getProgress()

The τ Player API


getProgress()

This verb is used to get the current progress of a playback. It returns a Map with two Duration entries : 'progress' and 'duration'. Remark : actually only implemented on iOS.

Example:

        Duration progress = (await getProgress())['progress'];
        Duration duration = (await getProgress())['duration'];
        Lorem ipsum ...

Tags: api player