Police have charged a former student for filming a pornographic video in a university library.

According to the New York Daily News, police arrested Kendra Sunderland, 19, this week and charged her for public indecency.

It was not clear whether the student, who did not enrol in classes this term, wanted the footage to appear on PornHub.com. However, the video filmed in the library at Oregon State University has since been removed.

Screenshots continue to be circulated of the video, during which Sunderland bares her breasts several times and briefly masturbates in front of a camera while sitting at a desk in the library, as students walk by in the background.

The footage lasts for more than 20 minutes, and it may have been filmed for ReptCams, a live sex chat site.

Sunderland blows bubbles, giggles, types on the computer and turns around constantly to check whether anyone is watching, as she plays with her breasts, reveals her lacy G-string, slaps her bum, and blows a kiss to the camera.

A spokesman for the university in Oregon, in the Pacific Northwest of the US, told the Daily News that Sunderland was a freshman studying human development and family science. Her dropping out was unrelated to the video, which the spokesman Steve Clark said was shot and uploaded last year.

The raunchy footage has shocked students and staff.

“It’s the buzz around campus,” said OSU student Clifford Harris told KEZI 9 News. “Everyone is talking about it. And I don’t think it was a very appropriate thing to do.”

Others were perplexed about how she could have managed to film the video without anyone noticing. There are security officers patrolling the campus but the library is huge.

“Imagine six floors; 340,000 square feet,” said OSU spokesman Steve Clark. “It’s used by 30,000 people on average every week.”

“The University does not condone this type of behaviour,” Mr Clark said.

“We want our students to feel safe. And we want to encourage anyone on campus — even the public — to contact police immediately if they see anything unusual on campus. Call 911 if it’s an emergency.”