# m3u8 dynamic url

**URL:** <https://community.wowza.com/t/m3u8-dynamic-url/38883>\
**Category:** Wowza Streaming Engine\
**Created:** [April 18, 2013, 9:48pm UTC](https://community.wowza.com/t/m3u8-dynamic-url/38883 "2013-04-18T21:48:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geo\_ab](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@Geo\_ab](https://community.wowza.com/u/Geo_ab)\
**Post date:** [April 18, 2013, 9:48pm UTC](https://community.wowza.com/t/m3u8-dynamic-url/38883/1 "2013-04-18T21:48:50Z")

</div>

Hi,

I followed [https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method](https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method)

Now i can see the m3u8 is encrypted

I pasted into video.php the sample php code

Now the question is how do i play the video in vlc or some player to test it

I tried [http://ip/video.php?keyid=“key”](http://ip/video.php?keyid=%22key%22) but it doesnt play .

I am sure i am doing it wrong . How do i pass the [http://ip:1395/vid/video/playlist.m3u8](http://ip:1395/vid/video/playlist.m3u8) as a parameter to be played.

Without keys and encryption this format is working fine.

If i run the php file and open the m3u8 it is showing some ascii code…

I saw how to test encrypted feed which only asks us to view content of m3u8 file. I want to play it .

I pasted the gen key in the key folder and in the php also.It is a live feed and i need in m3u8 format

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 18, 2013, 9:51pm UTC](https://community.wowza.com/t/m3u8-dynamic-url/38883/2 "2013-04-18T21:51:44Z")

</div>

HLS support in VLC is fairly new. It might not support AES encryption, from your report it sounds like it doesn’t

Richard

---

<div class="post-metadata">

**Author:** ![Geo\_ab](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@Geo\_ab](https://community.wowza.com/u/Geo_ab)\
**Post date:** [April 18, 2013, 9:52pm UTC](https://community.wowza.com/t/m3u8-dynamic-url/38883/3 "2013-04-18T21:52:51Z")

</div>

any thing like ffmpeg or any tool to check it ?

Am i doing it correctly rich?

what is the url for playing the file in any player eg Apple once it is encrypted?

How do i create the code… Pasting the php is enough or it is just part

[http://ip/movies.php?52FBBFB8916D7E1247B45A968F1DE62A](http://ip/movies.php?52FBBFB8916D7E1247B45A968F1DE62A)

\<?php function hex2bin($h) { if (!is\_string($h)) return null; $r = ''; for ($a=0;$a

how does the php know what to play. I am not getting the gist out of this?
