Will Smith, James Corden perform Aladdin songs in the middle of Beverly Boulevard

Will Smith stands in the middle of the street, dressed as a genie in blue robes.
Will Smith stands in the middle of the street, dressed as a genie in blue robes. Photo credit: YouTube/CBS

Will Smith has shocked motorists in LA, performing alongside the rest of the Aladdin cast in the middle of the street.

The actor took part in the segment "crosswalk musical" for James Corden's Late Late Show, getting into the middle of the street with Corden and his castmates.

Everyone was in costume; Smith as the Genie, Mena Massoud as Aladdin, Naomi Scott as Princess Jasmine and Corden as the monkey Abu.

"Before we get out there on this magic carpet ride, I just wanted to remind everybody that 'Don't you dare close your eyes' is not just a wonderful lyric; it could also save your life," Corden said at the start of the skit.

"The traffic is real, and it's dangerous."

The group performed a fire-shooting version of 'Friend Like Me', as well as 'Prince Ali' and 'A Whole New World'.

More than 1.5 million people watched the video of the skit on YouTube and 81,000 liked it. Commenters said the LA commuters' reactions were hilarious.

"Damn LA people are miserable don’t they know that’s Aladdin WILL freaking SMITH," one person wrote.

"Damn why are they so miserable?! If I was there I would get out of my car dancing with them," another said.

Newshub.