Fox Corp. is buying streaming platform Roku in a cash-and-stock deal valued at approximately $22 billion (around €19.1bn).