An interesting question is whether the consent needs to be for a particular device or for a particular communication or both. For instance, during a traffic stop, a LEO with a dash cam has obviously consented to be recorded. Does that consent cover a camera or other device operated by somebody else (without the LEO's knowledge)?
The answer to the question for the "police state" of Flatland is:
" (720 ILCS 5/14‑3)
(Text of Section from P.A. 96‑1000)
Sec. 14‑3. Exemptions. The following activities shall be exempt from the provisions of this Article:
...
(h) Recordings made simultaneously with the use of an in‑car video camera recording of an oral conversation between a uniformed peace officer, who has identified his or her office, and a person in the presence of the peace officer whenever (i) an officer assigned a patrol vehicle is conducting an enforcement stop; or (ii) patrol vehicle emergency lights are activated or would otherwise be activated if not for the need to conceal the presence of law enforcement.
For the purposes of this subsection (h), "enforcement stop" means an action by a law enforcement officer in relation to enforcement and investigation duties, including but not limited to, traffic stops, pedestrian stops, abandoned vehicle contacts, motorist assists, commercial motor vehicle stops, roadside safety checks, requests for identification, or responses to requests for emergency assistance;
(h‑5) Recordings of utterances made by a person while in the presence of a uniformed peace officer and while an occupant of a police vehicle including, but not limited to, (i) recordings made simultaneously with the use of an in‑car video camera and (ii) recordings made in the presence of the peace officer utilizing video or audio systems, or both, authorized by the law enforcement agency;
(h‑10) Recordings made simultaneously with a video camera recording during the use of a taser or similar weapon or device by a peace officer if the weapon or device is equipped with such camera;
..."