arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

The Ï„ Player API

getProgress()

hashtag
getProgress()

  • Dart API: getProgress()arrow-up-right.

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:

</div>


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

        Lorem ipsum ...
Dart
Javascript