Wowza Community

substitution stream

hi

i write custom module for HTTP stremer

I want to check incoming parametrs like for example refere and if refere is wrong send to client special advert URL… for now i get needed parametrs (String referrer = httpSession.getReferrer(); )

and now a must create another URL for client how can i do it ?

I try to use httpSession.setStreamName(“adv.stream”);

but in log i still see HTTPStreamerAdapterCupertinoStreamer.onPlaylist: Stream not found [live/definst/TLC_360p.stream/playlist.m3u8?1111111111222222222]: TLC_360p.stream -

many thanks !

Hi,

It sounds like you are trying to connect a playback request to a different stream name? For example, if a client request URL is for http://:1935/live/TLC/playlist.m3u8, and if the referrer passes your check, then the client should then playback http://:1935/live/adv.stream/playlist.m3u8. If so, you can use the IMediaStreamNameAliasProvider2 interface to alias the playback URL.

Michelle