The τ Player API

getProgress()

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:

Dart

Javascript


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

        Lorem ipsum ...

</div>

Last updated