Seth Rogen, who has appeared in ‘‘The 40-Year-Old Virgin’’ and ‘‘Knocked Up,’’ two films that featured cameos by Daniels, said in a recent interview that he has known about the affair between the porn star and the future president for more than a decade.

WASHINGTON — A new character has emerged in the continuing drama between adult film actress Stormy Daniels and President Trump.

‘‘I’ve known Stormy Daniels a long time, and I’ll be honest, she may have mentioned some of this stuff around 10 years ago,’’ Rogen told talk show host Ellen DeGeneres in an episode that aired Monday.

Daniels, who is suing the president, alleges that the two had a sexual relationship in 2006, a claim the White House denies. The Judd Apatow comedies in which Daniels appeared were released in 2005 and 2007. According to Rogen, no one was shocked to learn during filming that Daniels had slept with Trump, then starring in ‘‘The Apprentice.’’


‘‘At the time, when you asked a porn star who they’ve been sleeping with and the answer is Donald Trump, it was like the least surprising thing that she could have said,’’ Rogen told DeGeneres.

When Trump began his presidential campaign, Rogen didn’t think the fun factoid he knew about Trump would matter to voters.

‘‘As his campaign rolled out, it became clear that no one cared about anything he did, and so it didn’t really occur to me that it would come out or that anyone would care about it,’’ he said.

The comedian said that he hasn’t seen Daniels in years but that ‘‘she’s clearly done well with herself.’’