getCurrentPosition abstract method

Future<int?> getCurrentPosition(
  1. String playerId
)

Returns the current position of playback, in milliseconds, if available.

Might not be available if:

  • source has not been set or prepared yet (for remote audios it must be downloaded and buffered first)
  • source does not support operation (e.g. streams)
  • otherwise not supported (e.g. LOW_LATENCY mode on Android)

Implementation

Future<int?> getCurrentPosition(String playerId);