Wowza Community

Customize m3u8 playlist contents

Hi,

I have few questions about the m3u8 playlist.

  1. When/Where does wowza generates the contents of this file, for example is it happening on onHTTPCupertinoStreamingSessionCreate or…?

I have been trying to redirect the mobile devices with modyfication of this playlist. The contents of the files are this:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=250000
[origin-server-ip]/DemoFMLE/myStream.sdp/playlist.m3u8?wowzasessionid=276697519

I modyfy it manualy like this:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=250000
[edge-server-ip]/DemoFMLE/myStream.sdp/playlist.m3u8?wowzasessionid=276697519

and this way the client can connect to the edge server.

  1. Is there a way (method) to edit the contents while it’s been generated?

Any idea how can I achive this.

Regards,

There is no way to modify this in Wowza Server 2. In Wowza Server 3 there will be support for redirecting a HTTP session.

Charlie

What I do:

  1. Remove all of the request filters from the cupertinoStreaming HTTPStreamer in conf/httpstreamers.xml

  2. Create an HTTP provider and configure it to respond to any request with the filters previously used for the cupertinoStreaming HTTPStreamer.

  3. Have the new HTTP Provider issue a 302 redirect to the target host/resource.

YMMV. Keep in mind that this method prevents the origin server from serving m3u8 resources on it’s own… this is only meant to be used when the origin Vhost is only acting as origin and not edge.

Thank you Charlie.

Thank you jay_charles, this was exactly what I was looking for. :smiley:

I have previously created HTTP Provider but I was trying to generate the playlist files on my own (wowzasessionid gave me a problems).

I also tried to use response.sendRedirect, have been using with a servlets in Java but I could not get it to work here.

If someone uses this method use this for redirection:

resp.setResponseCode(301);
resp.setHeader( "Location", "[playlist_url]" );
resp.setHeader( "Connection", "close" );

Thanks again Jay.