A Toronto police officer has been sentenced to six years in the shooting death of a teen on a streetcar in a case that sparked protests in Canada's largest city after it was caught on video and posted on YouTube.

Justice Edward Then said during the sentencing Thursday that the video was "powerful evidence" that what Constable James Forcillo said occurred on the streetcar did not happen.

Forcillo was convicted of attempted murder in the 2013 death of 18-year-old Sammy Yatim.

The video shows Yatim holding a knife inside a streetcar by himself, with police outside. Yatim goads police while officers yell, "Drop your knife!" Shortly after, three shots are fired. After a pause, six more shots are fired while Yatim is lying on the floor of the streetcar.