Future<int> mediaPlayerGetTotalDuration(int index) async { var duration = _mediaPlayers[index].instance.getTotalDuration(); return Future.value(duration); }