Fox Corp. has agreed to buy the streaming pioneer Roku in a cash-and-stock deal valued at approximately $22 billion, including debt.

The deal will give Fox access to more than 100 million global households, along with the Roku channel and its first-party data. Fox oversees a massive sports, news and entertainment network, as well as Tubi, which it acquired in 2020.

Roku founder Anthony Wood had initially worked within Netflix in the early 2000s as that company attempted to make the seismic shift from renting DVDs, to streaming.

Roku was spun off by Netflix, however, and the company released its first set-top box in 2008.

Wood, who is Roku’s chairman and CEO, said his motivation in pursuing the technology was his desire to record and play his favorite show, “Star Trek.”