I'm working on a module which is using the mediacaster api and the alias module/interface to use either the rtp or liverepeater, depending on the stream type. This is working well, except I'm having one problem. Sometimes the mediacaster is trying to use the shoutcast caster, even though I'm specifying rtp. Why is the ShoutCastReceiver being initialized when I'm clearly specifying to start the caster with _appInstance.startMediaCasterStream(playAlias, "rtp");? This seems to happen if I remove the stream, someone comes in to view the removed stream, and I add the stream back.


The following works.
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       inside play... play alias: DevCam1.stream       -       -       -       11.926  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       inside play... stream alias: rtsp://172.28.12.239:5554/DevCam1  -       -       -       11.926  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  DEBUG   200     -       StreamConnect - startStreamIfNotRunning - ENTERS        -       -       -       11.927  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       Stream Name: DevCam1    -       -       -       11.927  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       stream alias returned: rtsp://172.28.12.239:5554/DevCam1        -       -       -       11.928  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       Stream name: DevCam1    -       -       -       11.928  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       Attempting to starting media caster stream. DevCam1.stream with mediaCaster: rtp.  It doesn't exist.    -       -       -       11.929  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       RTPMediaCaster.create[1419454134]       -       -       -       11.929  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:39        UTC     comment server  INFO    200     -       RTPMediaCaster.init[1419454134] -
The following the is log output using the same code.

2014-11-19      23:13:57        UTC     comment server  DEBUG   200     -       StreamNameAliasFile.load: /usr/local/WowzaMediaServer/conf/aliasmap.play.txt    -       -       -       29.61   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  INFO    200     -       inside play... play alias: DevCam1.stream       -       -       -       29.611  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  INFO    200     -       inside play... stream alias: rtsp://172.28.12.239:5554/DevCam1  -       -       -       29.611  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  DEBUG   200     -       StreamConnect - startStreamIfNotRunning - ENTERS        -       -       -       29.611  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  INFO    200     -       Stream Name: DevCam1    -       -       -       29.612  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  INFO    200     -       stream alias returned: rtsp://172.28.12.239:5554/DevCam1        -       -       -       29.612  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  INFO    200     -       Stream name: DevCam1    -       -       -       29.613  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  INFO    200     -       Attempting to starting media caster stream. DevCam1.stream with mediaCaster: rtp.  It doesn't exist.    -       -       -       29.613  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -
2014-11-19      23:13:57        UTC     comment server  DEBUG   200     -       ShoutCastReceiver.create