shaka-player icon indicating copy to clipboard operation
shaka-player copied to clipboard

Persistent license w/ streaming content

Open joeyparrish opened this issue 6 years ago • 5 comments

A partner asked me if we had any way to support persistent licenses with streaming content. At the moment, we do not.

We would have to persist the session ID somehow, even though the app wouldn't be using offline storage. I'm not sure if this would require a new API, or use of the Storage API, or something else.

The use-case was described as a live sporting event. The app developer would like to avoid all users requesting a license when the event starts, which would cause a huge spike of traffic on the license server. If they could pre-license the user before the event starts, the could spread that traffic out.

This may also relate to our proposed preload API (#880). It's not clear if preload would solve the same problem without the need for a persistent license, but it may.

joeyparrish avatar May 23 '19 06:05 joeyparrish

I think that the use case is related to my comments in https://github.com/google/shaka-player/issues/1833

avelad avatar May 23 '19 06:05 avelad

@nibredy, FYI

joeyparrish avatar May 23 '19 11:05 joeyparrish

@deisenbacher01, FYI

joeyparrish avatar Sep 09 '20 16:09 joeyparrish

Hi @joeyparrish, Has there been any update on this front?

We have a use case where we are serving certain cost sensitive customers who want the features of DRM based encryption, but the license request costs are not affordable to them. Persisting the licenses therefore reduces the cost significantly.

Any help is appreciated.

Thanks

RoLfBOT avatar Aug 01 '22 06:08 RoLfBOT

No, we have not worked on this. We would be happy to discuss a design and review a PR if anyone wants to contribute to this. The shortest path probably involves modifying the Storage API and persisting session IDs in IndexedDB, without storing the content itself. But the team at Google do not currently have time to work on this.

joeyparrish avatar Aug 01 '22 16:08 joeyparrish

@joeyparrish is it possible to prioritize #4461

RoLfBOT avatar Oct 13 '22 12:10 RoLfBOT

I think that can be close it with https://github.com/shaka-project/shaka-player/commit/cc97da167f4b08b98613a3296b4879f0948b79b7 , @joeyparrish what do you think?

avelad avatar Apr 20 '23 09:04 avelad

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.

shaka-bot avatar Sep 04 '23 10:09 shaka-bot