I doubt it's screen recording; as far as I know no third-party app can record the screen and even if they could there's easier ways to collect analytics than record a huge video which you then need to upload & process. I'm pretty sure the red bar also appears when an app is using the microphone in the background, which would be more likely in this case.