i'm trying to set the commands of exoPlayer but i don't know how to set the
getDuration();
getCurrentPosition();
I found this but what i have to set on UNKNOWN_TIME
cause its telling me cannot resolve symbol UNKNOWN_TIME
@Override
public int getCurrentPosition() {
return exoPlayer.getDuration() == ExoPlayer.UNKNOWN_TIME ? 0
: (int) exoPlayer.getCurrentPosition();
}
@Override
public int getDuration() {
return exoPlayer.getDuration() == ExoPlayer.UNKNOWN_TIME ? 0
: (int) exoPlayer.getDuration();
}