LIVINGSTON — A Denham Springs man was sentenced to 35 years in prison Tuesday after pleading no contest to possession and distribution of drugs, the 21st Judicial District Attorney’s Office said.

Jamie D. Cooper, 37, was recorded on video selling cocaine to an undercover narcotics agent and was arrested Feb. 22 on a count of distribution of a Schedule II controlled dangerous substance, District Attorney Scott Perrilloux said in a news release. Cooper was released March 12 on $25,000 bail.

Ten days later, a Denham Springs Police officer was traveling on Martin Luther King Jr. Drive, when he noticed the driver in front of him throw a small, clear, plastic bag from the window, Perrilloux said. The officer retrieved the bag and discovered what appeared to be a cocaine-based substance within.

The officer performed a traffic stop and identified Cooper as the driver, Perrilloux said. Cooper was arrested and charged with possession of a Schedule II controlled dangerous substance.

Cooper was set for trial Tuesday, when he chose to change his plea to no contest.

Judge Doug Hughes sentenced Cooper to 30 years with the Department of Corrections for the distribution count and five years for the possession count.

All time is to be served consecutively, Perrilloux said.

Cooper received the maximum possible penalty on each charge due to multiple prior felony drug convictions, said Assistant District Attorney David Guidry, who prosecuted the case.