The section describing XA_PLAYEVENTs makes this clear.

XA_PLAYEVENT_HEADATEND Playback head is at the end of the current content and the player has stopped. ...