Image copyright Reuters Image caption Win Myint is described as a close aide of Aung San Suu Kyi

Myanmar's parliament has elected Win Myint as the country's next president, a week after the resignation of his predecessor.

Win Myint, a close aide of Aung San Suu Kyi, has been a speaker in the lower house since 2012 and was widely tipped for the top job.

But his role will be essentially ceremonial, with Ms Suu Kyi acting as de facto president.

Htin Kyaw resigned as president last week, amid growing health concerns.

Parliament then had seven days to choose a successor, and voted from a short-list of the three vice-presidents on Wednesday.

Earlier last week, Win Myint, 66, had been made a vice-president, a further sign he was likely to assume the presidency.

As a long-time member of Ms Suu Kyi's National League for Democracy, he is seen as a Suu Kyi loyalist.

The other two vice-presidents were Myint Swe, who served as acting president after Htin Kyaw stepped down, and Henry Van Thio.

Military still in control

Nick Beake, BBC News, Yangon

Image copyright EPA

Most Burmese don't know what plans Win Myint may have for the economy, bringing peace in the troubled border regions or how to deal with the Rohingya crisis.

The key criteria for this job was loyalty to Aung San Suu Kyi. She will continue to pull the strings.

In Yangon and beyond, you won't find the excitement of two years ago when Htin Kyaw was sworn in, becoming the first democratically elected president with no ties to the military in decades.

But when it comes to real power here, it is still the military in control.

Tuesday's celebration of Armed Forces Day showed us that. Planes, helicopters and 16,000 soldiers marching across a vast parade ground for the cameras outside the capital, Nay Pyi Taw.

The commander-in-chief told his troops the army must play a key role in the life of the nation.

It didn't feel like an ambition. It felt like an order.

A statement posted on the presidency's Facebook page last week said Htin Kyaw, 71, was stepping down to "take a rest".

Image copyright EPA Image caption Htin Kyaw was reported to have been struggling with poor health

No further reason was given, but he is believed to have been suffering from ill health for some time.

Ms Suu Kyi, who was jailed for years under the military junta, is banned from taking the presidency herself.

A clause in the constitution - widely seen as being deliberately designed to keep her from office - states that no-one with children of another nationality can be president. She had two children with her late British husband.

Who is Win Myint?

Part of Aung San Suu Kyi's inner circle of trusted aides

The 66-year-old is from Myanmar's majority ethnic group, the Bamar

He attended university in Yangon and went on to become a High Court lawyer

He was part of an opposition revolt in 1988 against dictator Gen Ne Win, and was briefly detained by the military junta

After the landslide elections of 2015, he took a seat in the Yangon township of Tarmwe, which cemented his position within the ruling NLD's key party leadership.

BBC Monitoring contributed to this report.