A flight attendant for Southwest Airlines says in a shocking new lawsuit that she caught two pilots streaming hidden-camera footage into the cockpit — live, from the airplane’s bathroom, a report said Friday.

Attendant Renee Steinaker alleges in her lawsuit that she discovered the sick surveillance during a 2017 flight from Pittsburgh to Phoenix, Arizona Central reported.

At some point during the flight, the pilot, Capt. Terry Graham, asked her to come to the cockpit so he could go to the bathroom, the suit alleges.

There was nothing unusual about the request, as it’s Southwest Airlines policy that two crew members be in the cockpit at all times, the suit explains.

What was unusual was what Steinaker says she saw when she got to the cockpit.

Steinaker noticed an iPad on the windshield showing a livestream video playing on it of Graham in the bathroom, according to the report.

The captain’s co-pilot, Ryan Russell, panicked when he realized she noticed the device, the report said.

Russell claimed it was part of a new security measure featured on all Southwest flights, Arizona Central reported — but the flight attendant wasn’t fooled.

Steinaker snapped a photo of the iPad and alerted her superiors when the plane landed, according to the report.

“The safety and security of our employees and customers is Southwest’s uncompromising priority.

“As such, Southwest does not place cameras in the lavatories of our aircraft. At this time, we have no other comment on the pending litigation,” the airline told the newspaper in a statement.