Player object and methods.

currentTime >= totalDuration is probably clearer here?