# DRM management for event

**URL:** <https://community.wowza.com/t/drm-management-for-event/93605>\
**Category:** Wowza Streaming Engine\
**Created:** [July 27, 2021, 4:47pm UTC](https://community.wowza.com/t/drm-management-for-event/93605 "2021-07-27T16:47:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Al3x4nder](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Al3x4nder](https://community.wowza.com/u/Al3x4nder)\
**Post date:** [July 27, 2021, 4:47pm UTC](https://community.wowza.com/t/drm-management-for-event/93605/1 "2021-07-27T16:47:42Z")

</div>

Hello,

I’m working for the fist time with Wooza Streaming Engine and I would like to know if there is a way to customize and manage the DRM.  
In particular, I would like to activate the DRM (widevine) for only some specific events.  
Is it something that it could be possible to manage with a plugin? do you have any advises to manage this case?

Thanks.  
Al3x4

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [July 28, 2021, 4:40pm UTC](https://community.wowza.com/t/drm-management-for-event/93605/2 "2021-07-28T16:40:58Z")

</div>

The easiest is probably to create 2 different Applications; one with, one without DRM enabled. If it’s possible for you to restart the Application between the events then you can also en-/disable DRM in a single Application if different application names is not an option.

Some DRM providers allow you to pre-register assets and stream names with their own console so that you can differentiate per stream name; consult with your DRM provider.

If you want ultimate control over the DRM then you must write your own plug-in that inherits from the DRM provider’s Wowza plug-in. Doable, but requires decent experience with Wowza Streaming Engine’s Java API.

---

<div class="post-metadata">

**Author:** ![Al3x4nder](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Al3x4nder](https://community.wowza.com/u/Al3x4nder)\
**Post date:** [August 22, 2021, 5:45pm UTC](https://community.wowza.com/t/drm-management-for-event/93605/3 "2021-08-22T17:45:15Z")

</div>

Thanks for the answer.

May I ask you what you mean about pre-register asset an stream in the DRM provider? The problem is on a single event in the live stream which should not be encrypted.

In case, could you please provide the link for the documentation of . Wowza Streaming Engine’s Java API.

Thanks,  
Al3x4

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [August 23, 2021, 6:37am UTC](https://community.wowza.com/t/drm-management-for-event/93605/4 "2021-08-23T06:37:12Z")

</div>

Have you yet chosen a DRM provider? If so, contact them and ask if the Live stream must be registered with them. The documentation for the Java API is on [Wowza’s documentation pages](https://www.wowza.com/docs/wowza-streaming-engine-java-api), easy to find.

---

<div class="post-metadata">

**Author:** ![Robert\_Kiran](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Robert\_Kiran](https://community.wowza.com/u/Robert_Kiran)\
**Post date:** [June 6, 2022, 10:49am UTC](https://community.wowza.com/t/drm-management-for-event/93605/5 "2022-06-06T10:49:08Z")

</div>

Hello Karel,

I’m restarting this discussion because I wrote a plugin to do the same and it is working a part when I need to disable again the encryption.  
The stream starts without encryption, so I was able to clone the CencInfo object (clone() method) at the beginning when the stream was in clear (saved as defaultCencInfo). The intention was to overwrite the CencInfo used in the onHTTPMPEGDashEncryptionKeyLiveChunk.  
However, even if I set cencInfo = (CencInfo)defaultCencInfo.clone() the cencInfo remains with the encryption data.  
What is it wrong?

Thanks  
Robert
