Completely depends on their contract, they could get a flat fee, they could get $1 every time it's streamed, they could get a % of gross/net/profit...
Studios usually try to do the % of profit/net thing when they can't pay upfront and they want to shift the risk to the actors/crew (bad risk and good risk). Sometimes it works out for the actors, sometimes not.