In the real world, the police officer will arrest you for recording him, charging you with:
1) interfering with official duties.
2) Resisting arrest.
3) Felony assault on a police officer.
Remember, in a criminal trial, you have to prove your innocence. How do you prove you did not do something that a police officer, testifying under oath in a court of law, says you did?