(Bloomberg) -- Apple must pay $308.5 million to closely held Personalized Media Communications after a federal jury in Marshall, Texas, decided on Friday that the tech giant infringed a patent related to digital rights management.

Personalized Media had sued claiming Apple infringed its patent with technology including FairPlay, which is used for the distribution of encrypted content from its iTunes, App Store and Apple Music applications.

One expert for Sugar Land, Texas-based Personalized Media had calculated Apple owed $240 million in royalties. After a five-day trial, the jurors in Texas ordered Apple to pay a running royalty, which is generally dependent on the level of sales or usage.

The lawsuit was originally filed in 2015, but Apple challenged the validity of the patent at the Patent Trial and Appeal Board. A U.S. appeals court last year reversed the board’s decision that certain patent claims were invalid, thus reviving the case for trial.

U.S. District Judge Rodney Gilstrap last week also adopted a magistrate’s recommendation denying Apple’s request to find the patent invalid.

Apple’s lawyers didn’t immediately respond to emailed requests for comment.

Google and its YouTube service won a patent trial lodged by Personalized Media in November over different patents.

A case against Netflix is pending in New York.

The case is Personalized Media Communications LLC v. Apple Inc., 2:15-cv-1366, U.S. District Court, Eastern District of Texas (Marshall).

(Updates third paragraph to add that jury’s award is a running royalty.)

©2021 Bloomberg L.P.