You can use the method getCurrentPosition()
which gives you the current position in milliseconds.
You can also use the method getDuration()
to get the full length of the song.
You can use a separate thread to update the timer.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…