He turned off his bodycam, but a two-minute buffer allegedly caught him in the act.
The LAPD officer who was accused of fondling a dead woman's breasts has been charged.
David Rojas, 27, could be sent to prison for three years if found guilty of having sexual contact with human remains without authority, according to a statement by Los Angeles County district attorney.
The veteran cop was placed on leave after his bodycam footage reportedly showed him groping a corpse, the LA Times reported.
Creepy Footage Shows Ring Camera Hacker Trying to Befriend Terrified 8-Year-Old Girl in Her Bedroom
View StoryThe incident occurred when the officer and his partner were called to investigate a report of a fatality at a residential unit in Los Angeles.
After entering the premises and confirming the death, the partner left the room to retrieve something from the patrol car.
The accused officer then turned off his bodycam, before switching it back on a short time later.
However the device has a two-minute buffer; it is constantly recording video and audio, even when switched off. When re-activated, it saves the previous two minutes of footage.
The disturbing video allegedly shows him lifting the sheet off the woman's body, before feeling her nipples and fondling her breasts.
The incident came to light during a random inspection of bodycam footage, when a supervisor discovered it and reported him.
13-Year-Old Forced to Have Sex With Over 100 Men Nicknamed 'Breadmaker'
View Story"If this allegation is true, then the behavior exhibited by this officer is not only wrong, but extremely disturbing, and does not align with the values we, as police officers, hold dear, and these values include respect and reverence for the deceased," the board of directors said in a statement. "This behavior has no place in law enforcement."
Chief spokesman Josh Rubenstein told the Times they "immediately launched an administrative investigation once we learned about the incident and we assigned the officer to home."
Following a Police Commission vote last year, police bodycam footage must be released to the public within 45 days of "critical incidents", such as those that involve deadly force.
However Rubenstein said the video in question does not fall into that category, and thus will not be released.
Got a story or a tip for us? Email TooFab editors at tips@toofab.com.