NEW YORK, NEW YORK - NOVEMBER 10:  An view of a Southwest airlines jet as photographed at Laguardia Airport on November 10, 2018 in New York City. (Photo by Bruce Bennett/Getty Images)
NEW YORK, NEW YORK - NOVEMBER 10: An view of a Southwest airlines jet as photographed at Laguardia Airport on November 10, 2018 in New York City. (Photo by Bruce Bennett/Getty Images)
PHOTO: Bruce Bennett/Getty Images
Now playing
01:08
Pilots streamed plane bathroom to cockpit, lawsuit alleges
PHOTO: Pool/Getty Images
Now playing
02:04
Mitch McConnell: Capitol rioters were fed lies
WASHINGTON, DC - JANUARY 16: National Guard troops march by security fencing near the U.S. Capitol on January 16, 2021 in Washington, DC. After last week
WASHINGTON, DC - JANUARY 16: National Guard troops march by security fencing near the U.S. Capitol on January 16, 2021 in Washington, DC. After last week's riots at the U.S. Capitol Building, the FBI has warned of additional threats in the nation's capital and in all 50 states. According to reports, as many as 25,000 National Guard soldiers will be guarding the city as preparations are made for the inauguration of Joe Biden as the 46th U.S. President. (Photo by Eric Thayer/Getty Images)
PHOTO: Eric Thayer/Getty Images
Now playing
01:49
Two Army National Guard members removed from inauguration duty
An 18-year-old college student from Georgia has been sentenced to four months in prison in the Cayman Islands after breaking the British Caribbean territoryís Covid-19 protocol while visiting her boyfriend for a jet skiing competition, according to her family.
An 18-year-old college student from Georgia has been sentenced to four months in prison in the Cayman Islands after breaking the British Caribbean territoryís Covid-19 protocol while visiting her boyfriend for a jet skiing competition, according to her family.
PHOTO: Courtesy Jeanne Mack
Now playing
01:16
Teen jailed for breaking Covid quarantine speaks out
daily weather forecast california fire threat strong winds snow_00003520.png
daily weather forecast california fire threat strong winds snow_00003520.png
Now playing
02:07
Severe wind event promps fire threat in California
This screen grab from a Zoom call shows New York Mets general manager Jared Porter Monday, Dec. 14, 2020. Mets general manager Jared Porter sent graphic, uninvited text messages and images to a female reporter in 2016 when he was working for the Chicago Cubs in their front office, ESPN reported Monday night, Jan. 18, 2021.
This screen grab from a Zoom call shows New York Mets general manager Jared Porter Monday, Dec. 14, 2020. Mets general manager Jared Porter sent graphic, uninvited text messages and images to a female reporter in 2016 when he was working for the Chicago Cubs in their front office, ESPN reported Monday night, Jan. 18, 2021.
PHOTO: AP
Now playing
01:08
NY Mets fire GM after he reportedly sent explicit pictures to female reporter In 2016
McCarthy
McCarthy
PHOTO: CNN
Now playing
01:40
'Far too close:' Army secretary reveals sobering details on riot
US President Donald Trump waves to the media as he makes his way to board Air Force One before departing from Andrews Air Force Base in Maryland on January 12, 2021. - Trump is traveling to Texas to review his border wall project. (Photo by MANDEL NGAN / AFP) (Photo by MANDEL NGAN/AFP via Getty Images)
US President Donald Trump waves to the media as he makes his way to board Air Force One before departing from Andrews Air Force Base in Maryland on January 12, 2021. - Trump is traveling to Texas to review his border wall project. (Photo by MANDEL NGAN / AFP) (Photo by MANDEL NGAN/AFP via Getty Images)
PHOTO: Mandel Ngan/AFP/Getty Images
Now playing
03:44
Trump mostly in seclusion during final days of presidency
Members of the Michigan Boogaloo Bois an anti-government group stand with their long guns near the Capitol Building in Lansing, Michigan on January 17, 2021, during a nationwide protest called by anti-government and far-right groups supporting US President Donald Trump and his claim of electoral fraud in the November 3 presidential election. - The FBI warned authorities in all 50 states to prepare for armed protests at state capitals in the days leading up to the January 20 presidential inauguration of President-elect Joe Biden. (Photo by SETH HERALD / AFP) (Photo by SETH HERALD/AFP via Getty Images)
Members of the Michigan Boogaloo Bois an anti-government group stand with their long guns near the Capitol Building in Lansing, Michigan on January 17, 2021, during a nationwide protest called by anti-government and far-right groups supporting US President Donald Trump and his claim of electoral fraud in the November 3 presidential election. - The FBI warned authorities in all 50 states to prepare for armed protests at state capitals in the days leading up to the January 20 presidential inauguration of President-elect Joe Biden. (Photo by SETH HERALD / AFP) (Photo by SETH HERALD/AFP via Getty Images)
PHOTO: Seth Herald/AFP/Getty Images
Now playing
04:37
Expert: Social media to extremism is like oxygen to fire
Pharmacist Jason Hyde fills syringes with the Moderna Covid-19 vaccine as first responders wait to receive it at UMass Memorial Hospital in Marlborough, Massachusetts on January 12, 2021. - First Responders started to receive their vaccinations on January 11, as part of the phase one of vaccinations roll out in Massachusetts. (Photo by Joseph Prezioso / AFP) (Photo by JOSEPH PREZIOSO/AFP via Getty Images)
Pharmacist Jason Hyde fills syringes with the Moderna Covid-19 vaccine as first responders wait to receive it at UMass Memorial Hospital in Marlborough, Massachusetts on January 12, 2021. - First Responders started to receive their vaccinations on January 11, as part of the phase one of vaccinations roll out in Massachusetts. (Photo by Joseph Prezioso / AFP) (Photo by JOSEPH PREZIOSO/AFP via Getty Images)
PHOTO: Joseph Prezioso/AFP/Getty Images
Now playing
02:15
CDC warns new Covid-19 variants could accelerate spread in US
PHOTO: @FLOTUS
Now playing
02:51
Watch Melania Trump's farewell speech
UNITED STATES - JANUARY 4: Rep. Lauren Boebert, R-Colo., is seen during a group photo with freshmen members of the House Republican Conference on the House steps of the Capitol on Monday, January 4, 2021. (Photo By Tom Williams/CQ-Roll Call, Inc via Getty Images)
UNITED STATES - JANUARY 4: Rep. Lauren Boebert, R-Colo., is seen during a group photo with freshmen members of the House Republican Conference on the House steps of the Capitol on Monday, January 4, 2021. (Photo By Tom Williams/CQ-Roll Call, Inc via Getty Images)
PHOTO: Tom Williams/CQ-Roll Call, Inc/Getty Images
Now playing
02:49
GOP lawmaker accused of giving 'reconnaissance' tour prior to Capitol riot
PHOTO: CNN
Now playing
04:36
Former FBI adviser calls Trump a charismatic spark for extremism
guatemala honduras migrants tear gas Oppmann intl ldn vpx_00000604.png
guatemala honduras migrants tear gas Oppmann intl ldn vpx_00000604.png
PHOTO: CNNE
Now playing
01:30
Authorities use tear gas and batons against US-bound migrants
PHOTO: CNN Weather
Now playing
02:03
California faces strong winds and increased fire threat
PHOTO: Getty Images
Now playing
02:41
Alexey Navalny arrested on his return to Moscow
PHOTO: CNN
Now playing
01:47
John King: It's a horrific time to become president
(CNN) —  

A Southwest Airlines flight attendant says two pilots live streamed video from a hidden camera in a commercial airliner’s lavatory to an iPad in the cockpit, a lawsuit says.

The alleged incident happened February 27, 2017, while Renee Steinaker was working on Flight 1088 from Pittsburgh to Phoenix, according to the complaint that Steinaker and her husband, David Steinaker, filed against the airline and the pilots.

About two and a half hours into the flight, Capt. Terry Graham asked for a flight attendant to come to the cockpit so that he could leave to use the restroom, the complaint says. Airline policy requires that two crew members are in the cockpit at all times, the complaint says.

After Steinaker arrived and Graham left, Steinaker spotted an iPad in the plane’s cockpit that appeared to be streaming live video of the pilot inside an airplane lavatory, the lawsuit said.

When the flight attendant asked the co-pilot, Ryan Russell, whether the iPad was streaming video from the lavatory, he said the camera was part of a “new security and top secret security measure that had been installed in the lavatories of all Southwest Airlines’$2 737-800 planes,” the document alleges.

Russell asked her not to tell anyone about the cameras because they were on the “downlow,” the suit says.

Pilots, airline respond

In their written response to the complaint, Graham and Russell admit Graham’s iPad was located in the cockpit and that Steinaker asked if it was live streaming from the bathroom. But the pilots deny the other allegations or say they don’t have sufficient knowledge to respond.

CNN has reached out to the attorneys representing Russell and Graham.

In its written response, Southwest denied Graham or Russell “intentionally invaded the privacy of Plaintiff Renee Steinaker on Southwest Airlines flight 1088 by installing, viewing, watching, recording and/or playing recordings of plaintiff while she was using the forward lavatory’s toilet.”

Southwest Airlines told CNN it would “vigorously defend the lawsuit,” adding that officials investigated the allegation two years ago and found that there was “never a camera in the lavatory.” Without elaborating, the airline said: “The incident was an inappropriate attempt at humor which the company did not condone.”

“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,” a spokesperson told CNN.

The lawsuit was filed in Maricopa County, Arizona, but has been moved to US District Court in Arizona. The Steinakers are suing the airline and the pilots for invasion of privacy, causing Renee Steinaker emotional distress, sexual harassment and retaliation. They are seeking at least $50,000 in damages.

Lawsuit says Southwest tried to silence attendants

Steinaker says she took a picture of the iPad with Graham’s image in the lavatory, the lawsuit says, and showed it to the rest of the flight attendants. CNN has not seen the photo mentioned in the lawsuit.

The flight attendant says she was directed by a supervisor to keep the incident to herself because “If this got out, if this went public, no one, I mean no one, would ever fly our airline again,” the lawsuit said.

After Steinaker and other flight attendants on Flight 1088 reported the incident to the airline’s management, the lawsuit says, the airline tried to silence and intimidate them.

They were randomly tested for drug and alcohol and one of them had to do multiple drug tests in a “very short period of time,” according to the lawsuit.

Steinaker’s husband, David, who is also a flight attendant, was “subjected to at least five performance audits in the course of a few months following the incident, when in his prior twenty-four (years) of service, he only had approximately three audits,” the lawsuit alleged.

In its written response, Southwest also denies those allegations about how the airline treated the Steinakers after the alleged incident.

Ronald Goldman, an attorney representing the Steinakers, said the pilots’ behavior distracts crew members and compromises flight safety.

“The cockpit of a commercial airliner is not a playground for peeping toms,” Goldman told CNN. “Every day that these two pilots are allowed to fly for the airline is another day that our client fears she will have to work with pilots she alleges have caused her significant harm.”

Goldman said Renee Steinaker has missed several days of work and became physically ill after worrying that she could have been watched and possibly recorded while using the bathroom.

CNN’s Natalie Johnson contributed to this report.