add duration() for AVPlayer.