Kanye West threw his microphone in the air and walked off stage during his latest performance.

The rapper was bringing down the curtain at the closing ceremony of the Pan American Games in Toronto, Canada, when there was a "technical issue" which caused his mic to cut out.

Footage posted online shows West throwing the mic into the air before walking off the stage as a crowd of thousands look on.

The Twitter account of the CBC Olympics, official broadcaster of the Games, said West's mic "cut out in-stadium due to technical issue - audio remained on in broadcast".

The account also tweeted: "Post-mic drop, crowd was chanting KANYE KANYE!"

West's performance at Glastonbury a few weeks ago was also a talking point.

His expletive-filled set saw a prankster invade the stage and the rapper elevated above the crowd.

He made clear what he thought of the controversy over his unlikely billing, telling the audience: "You are now watching the greatest living rock star on the planet."

News that the abrasive singer had been given the slot received a mixed reaction from fans, some of whom felt strongly that it was too much of a departure from the traditional Glastonbury roots, while co-organiser Emily Eavis suffered online abuse over the move.

West's latest stage drama comes shortly after the first episode of Caitlyn Jenner's documentary series charting her transition from reality star and Olympic hero to transgender advocate.

West, who is married to Jenner's stepdaughter Kim Kardashian, told Jenner how important he thinks her transition is, saying: "I think it's one of the strongest things that has happened in our existence as human beings that are so controlled by perception.

"You couldn't have been up against more, your daughter is a supermodel, you're a celebrity and it was still, like, this is who I am."

Prior to the ceremony in Toronto, an online petition had been launched campaigning for organisers to cancel West's performance, and had gained almost 136,000 signatures.

Some Canadian residents were unhappy that the Georgia-born rapper was chosen to close the sporting event, which takes place every four years, as they would have preferred to see some home-grown talent, such as Drake, perform.