Some states passed laws to protect the right to record law enforcement officers in public places. Some states passed laws to forbid it. Courts said the laws to forbid it violated the 1st amendment.[1][2]
[1] https://firstamendment.mtsu.edu/article/filming-the-police/
[2] https://www.thefire.org/research-learn/recording-police-publ...