# License Persistancy on webOS

**URL:** <https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465>\
**Category:** Web App Development\
**Created:** [October 12, 2026, 6:52am UTC](https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465 "2026-10-12T06:52:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user3358](https://avatars.discourse-cdn.com/v4/letter/u/9e8a1a/32.png) [@user3358](https://forum.webostv.developer.lge.com/u/user3358)\
**Post date:** [October 12, 2026, 6:52am UTC](https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465/1 "2026-10-12T06:52:36Z")

</div>

I’m trying to implement License Persistence (LP) in our webOS application, but I’m encountering an error during implementation. I would like to understand how to enable and manage DRM license persistence for webOS. Please clarify whether webOS TV supports persistent DRM licenses for Widevine and Playready. Are there any platform or webOS version-specific limitations we should consider.

---

<div class="post-metadata">

**Author:** ![kpbhat](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kpbhat](https://forum.webostv.developer.lge.com/u/kpbhat)\
**Post date:** [October 15, 2026, 5:47am UTC](https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465/2 "2026-10-15T05:47:21Z")

</div>

Widevine does not support persistent DRM licenses on all webOS TV versions, but PlayReady supports them on all webOS TV versions. If a persistent license is provided by the DRM license server, PlayReady stores it in the file storage and then uses it. However, persistent DRM licenses are not recommended because they are not efficient for OTT streaming services and can shorten the eMMC lifespan.  
Thank you.

---

<div class="post-metadata">

**Author:** ![user3358](https://avatars.discourse-cdn.com/v4/letter/u/9e8a1a/32.png) [@user3358](https://forum.webostv.developer.lge.com/u/user3358)\
**Post date:** [October 28, 2026, 8:54am UTC](https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465/3 "2026-10-28T08:54:44Z")

</div>

Hi,

Thank you for the reply and for confirming that PlayReady supports persistent licenses on all webOS TV versions. That matches what we see: the license is stored. Our issue is that we cannot retrieve it again from a web app.

1. requestMediaKeySystemAccess grants sessionTypes [‘persistent-license’] with persistentState ‘required’.
2. generateRequest → license request → update() succeeds, key status ‘usable’. The license server issues a persistent license; we reproduced this with Microsoft’s test server ([test.playready.microsoft.com](http://test.playready.microsoft.com), cfg=(persist:true)) as well as our own server.
3. The license is stored: calling remove() on the session produces a ‘license-release’ message (5885 bytes).
4. However, MediaKeySession.load(sessionId) on a new createSession(‘persistent-license’) is always rejected within a few milliseconds with CDM system codes 0x8004130D , 0x8004130A and 0x8004130C .

Our questions:

- Is MediaKeySession.load() supported for persistent PlayReady sessions in webOS web apps? If yes, which webOS versions?
- What do the system codes 0x8004130A, 0x8004130C and 0x8004130D mean?
- You mention PlayReady stores the persistent license and then uses it. How should a web app trigger that reuse: via EME load(), or does the CDM reuse the stored license automatically for a new session? If automatic, under what conditions, since we always receive a new challenge?

Regarding the eMMC concern: we understand the point. Our use case is one long-lived license per channel package, reused across app launches to reduce video start time, so the number of writes would be very small (roughly one per license validity period, not one per playback). If there is a recommended limit on stored licenses or write frequency, we would be happy to follow it.

Best regards,  
Alex

---

<div class="post-metadata">

**Author:** ![kpbhat](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kpbhat](https://forum.webostv.developer.lge.com/u/kpbhat)\
**Post date:** [November 12, 2026, 7:23am UTC](https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465/4 "2026-11-12T07:23:09Z")

</div>

Thank you for the detailed reproduction steps.

As noted earlier, PlayReady on webOS TV does store a persistent license when the license server provides one, which matches your observation that generateRequest → update() succeeds and remove() produces a license-release message.

However, retrieving that stored license again through MediaKeySession.load() on a new session is currently not supported on webOS TV. The error you see (0x8004130D, “session id not found”) comes from this incomplete load path: the request is rejected early, before the stored license can be looked up, which is why it fails within a few milliseconds.

On your specific questions:

- Is load() supported for persistent PlayReady sessions? → Not at this time, on any current webOS TV version.
- Meaning of the codes: they are PlayReady session-state results (0x8004130D = session id not found, 0x8004130A = session already used, 0x8004130C = session closed). In this scenario they indicate that load() does not reach a valid, restorable session on the device.
- How to reuse the stored license: the CDM does not automatically substitute a stored persistent license for a brand-new session, so a new challenge is always generated. Since the load() reuse path is not available, please continue using the existing temporary session flow (createSession(‘temporary’) → generateRequest → update → playback). The temporary flow is fully supported and is the path used by current commercial services; a new license request per session is the expected behavior there.

We have identified this gap and are reviewing an improvement to the load() path. Please note, however, that even if it is implemented, we cannot commit to a specific date for availability in fielded (production) firmware, as that depends on product and release schedules. For the time being, please proceed with the temporary session type for your channel-package playback.

---

<div class="post-metadata">

**Author:** ![user3358](https://avatars.discourse-cdn.com/v4/letter/u/9e8a1a/32.png) [@user3358](https://forum.webostv.developer.lge.com/u/user3358)\
**Post date:** [November 13, 2026, 3:36am UTC](https://forum.webostv.developer.lge.com/t/license-persistancy-on-webos/28465/5 "2026-11-13T03:36:32Z")

</div>

Thank you so much the for the response and clarification, we appreciate the acknowledgment and reviewing the potential improvement , We look forward to further updates and hope to see this capability supported in future firmware releases.
