YouTuber Harris Ahmen has been found guilty of train surfing on the DLR network in February and March 2017.
Harris Ahmed posted a six-minute video of him hanging off the outside of a carriage to YouTube.
The stunt featured Harris waving at passengers whilst hanging off a moving DLR train for several stops.
It was among several videos on his channel featuring similar stunts on the London transport system.
Steve Burton, director of enforcement at Transport for London, condemned the behaviour of the two teenagers.
“This behaviour is extremely reckless and will not be tolerated,” he said.
When the teenagers were caught and arrested, Harris admitted he did not realise it was against the law and added: “That’s what we do.”
The Highbury Corner magistrates court heard that the stunt was primarily carried out for publicity and the 16-year-old who filmed the stunt did not “consider it to be dangerous”.
Magistrate Sharon Ereira told Harris: “You have got to understand you’re not just putting your life at risk, but putting others at risk and when you’re putting it on YouTube you’re encouraging other young people which is also putting them at risk.”
Harris Ahmed pleaded guilty to endangering safety and was sentenced to 15 hours at an attendance centre and told to pay an £85 court fee.
Harris has since uploaded a video in which he mentions the recent court case, and says “I’ve been running around reckless for way to long, and I should have known when to stop”.
Read more about how a water throwing prank has backfired or find out more about how many emergency call-outs YouTube pranks have resulted in.