Former US President Barack Obama was among those delivering eulogies to Senator John McCain at a memorial service at Washington's National Cathedral.

He praised the Vietnam War veteran's commitment to American ideals, and noted that he might have been having the "last laugh" in his choice of speakers at the service.