Broward County Sheriff's Office has released surveillance footage from the day of the shooting at Marjory Stoneman Douglas High School.

The video was taken on campus, but outside Building 12, and officials say it confirms a former Broward County deputy never went inside the building where the shooting took place.

In it, you see Deputy Scot Peterson patrolling the halls, and then getting on a golf cart with another person and heading toward the building. Peterson is then seen standing outside Building 12. 

The sheriff's office issued this statement with the video:

"We welcomed the court’s decision to release the video of Deputy Scot Peterson’s actions on February 14.

"The video speaks for itself. His actions were enough to warrant an internal affairs investigation, as requested by Sheriff Scott Israel on Feb. 21. After being suspended without pay, Peterson chose to resign and immediately retired rather than face possible termination."

The video shows no disturbing images, such as scared students or scenes from the shooting.

Seventeen people were killed at the school. 

Sheriff Scott Israel blasted Peterson after the shooting, saying Peterson should have "went in, addressed the killer, killed the killer."

But Peterson denied any wrongdoing, saying in a statement through his lawyer that he thought the shots were fired from outside the school. 

In radio transmissions released last week, it appeared Peterson seem to know the shots were coming from inside.

The Coral Springs Police Dept. also released recordings of 911 calls and police radio transmissions that seemed to confirm that Coral Springs officers were the first to enter the building, not Broward County sheriff's Office deputies.

Information from the Associated Press was used in this report.

Interactive timeline: Parkland shooting