Wowza Community

substitution stream


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(“”);

but in log i still see HTTPStreamerAdapterCupertinoStreamer.onPlaylist: Stream not found [live/definst/]: -

many thanks !


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/ If so, you can use the IMediaStreamNameAliasProvider2 interface to alias the playback URL.