# Method not getting called on m3u8 curl

**URL:** <https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api\
**Created:** [May 24, 2024, 10:40am UTC](https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292 "2024-05-24T10:40:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ac0bebc9e42bbfb93d80](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@ac0bebc9e42bbfb93d80](https://community.wowza.com/u/ac0bebc9e42bbfb93d80)\
**Post date:** [May 24, 2024, 10:40am UTC](https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292/1 "2024-05-24T10:40:12Z")

</div>

Hi Team,  
I am using Wowza Streaming Engine v4.8.27. We have multi DRM plugin which supports for WideVine, PlayReady and FairPlay DRM. This plugin we have integrated with Wowza streaming engine for WideVine and PlayReady (using `void onHTTPMPEGDashEncryptionKeyVODChunk(HTTPStreamerSessionMPEGDash httpSession, IHTTPStreamerMPEGDashIndex index, CencInfo cencInfo, long chunkId)` and `void onHTTPMPEGDashEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, CencInfo cencInfo, long chunkId)` methods) as of now and its working as expected. Now we want to integrate for FairPlay/Apple HLS. So as per the API I am trying to use` void onHTTPCupertinoEncryptionKeyVODChunk(HTTPStreamerSessionCupertino httpSession, IHTTPStreamerCupertinoIndex index, com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo encInfo, long chunkId, int mode)` method for Apple HLS VOD but anyhow its not getting called.  
`onHTTPMPEGDashEncryptionKeyVODChunk` (for VOD .mpd) method getting called whenever we are running curl on mpd url. But whenever I am trying to run curl on m3u8 url `onHTTPCupertinoEncryptionKeyVODChunk` its not getting called. Is there any properties we have to set to enable Cupertino something? I have already added below in Application.xml  
cupertinostreaming in HTTPStreamers. Please assist on the same. Thank you

---

<div class="post-metadata">

**Author:** ![Scott\_Kellicker2](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_kellicker2/32/1337_2.png) [@Scott\_Kellicker2](https://community.wowza.com/u/Scott_Kellicker2)\
**Post date:** [May 24, 2024, 5:28pm UTC](https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292/2 "2024-05-24T17:28:43Z")

</div>

Is it called on subsequent cals for segments/chunks?  
I would not expect it to be called on the initial m3u8

ScottK  
scott@blankcanvas.video  
Streaming Video Expert

---

<div class="post-metadata">

**Author:** ![ac0bebc9e42bbfb93d80](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@ac0bebc9e42bbfb93d80](https://community.wowza.com/u/ac0bebc9e42bbfb93d80)\
**Post date:** [May 27, 2024, 6:32am UTC](https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292/3 "2024-05-27T06:32:33Z")

</div>

Thank you for you replay @Scott_Kellicker2. I don’t have much Idea where actually it should get called. I was expecting similiar behaviour as like mpd file. Let me check on how we can get call on chunks or segments. Thank you

---

<div class="post-metadata">

**Author:** ![Scott\_Kellicker2](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_kellicker2/32/1337_2.png) [@Scott\_Kellicker2](https://community.wowza.com/u/Scott_Kellicker2)\
**Post date:** [May 27, 2024, 2:59pm UTC](https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292/4 "2024-05-27T14:59:20Z")

</div>

The clearest way to verify would be to use curl/wget. curl the m3u8 URL, then use the result to build up the chunklist URL, then build the media URL.

```
$ curl http://IP:1935/vod/sample.mp4/playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=868638,CODECS="avc1.42c015,mp4a.40.2",RESOLUTION=512x288
chunklist_w769782113.m3u8

$ curl http://IP:1935/vod/sample.mp4/chunklist_w769782113.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10.0,
media_w769782113_0.ts
#EXTINF:10.0,
media_w769782113_1.ts
#EXTINF:10.0,
media_w769782113_2.ts
. . .

$ wget http://IP:1935/vod/sample.mp4/media_w769782113_2.ts
```

---

<div class="post-metadata">

**Author:** ![ac0bebc9e42bbfb93d80](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@ac0bebc9e42bbfb93d80](https://community.wowza.com/u/ac0bebc9e42bbfb93d80)\
**Post date:** [May 28, 2024, 3:04pm UTC](https://community.wowza.com/t/method-not-getting-called-on-m3u8-curl/97292/5 "2024-05-28T15:04:55Z")

</div>

Sure Thanks I will try that.  
I am getting below with the curl  
anands@KR64NQDVJH ~ % curl https:DOMAIN:443/DrmVodTest/mp4:sample.mp4/playlist.m3u8  
#EXTM3U  
#EXT-X-VERSION:3  
#EXT-X-STREAM-INF:BANDWIDTH=8247025,CODECS=“avc1.42c015,mp4a.40.2”,RESOLUTION=512x288  
chunklist\_w1948661583.m3u8  
anands@KR64NQDVJH ~ %
