Adding onPlaying, renaming event hooks