Hi Richard,
Many thanks for the quick reply. I am afraid I couldn’t understand exactly what you said. I need some clarification.
We have a shoutcast stream:
http://54.123.23.78/sim.mp3 - We have to ingest this in to wowza. I am creating a stream file right now called radiostation.stream and configuring it in StartupStreams.xml in the following way:
live/definst
shoutcast
radiostation.stream
For the same app, I have included a plugin in Application.xml. In the plugin, I use the code as follows:
public class AliasMap extends ModuleBase implements IMediaStreamNameAliasProvider2 {
public void onAppStart(IApplicationInstance appInstance) {
appInstance.setStreamNameAliasProvider(this);
}
public void onAppStop(IApplicationInstance appInstance) {
}
@Override
public String resolvePlayAlias(IApplicationInstance appInstance, String name_with_token,
IClient client) {
}
@Override
public String resolvePlayAlias(IApplicationInstance appInstance, String arg1, IHTTPStreamerSession httpSession) {
StreamName = findbestStream(httpSession);
return StreamName;
}
@Override
public String resolvePlayAlias(IApplicationInstance appInstance, String arg1, RTPSession rtpSession) {
StreamName = findbestStream(rtpSession);
return StreamName;
}
@Override
public String resolvePlayAlias(IApplicationInstance arg0, String arg1, ILiveStreamPacketizer arg2){
return arg1;
}
@Override
public String resolveStreamAlias(IApplicationInstance arg0, String arg1, IMediaCaster arg2) {
return arg1;
}
@Override
public String resolvePlayAlias(IApplicationInstance arg0, String arg1) {
return arg1;
}
@Override
public String resolveStreamAlias(IApplicationInstance arg0, String arg1) {
return arg1;
}
}
According to your reply, can you please point out to me, where the change is required in the above code & the StartupStream.xml?
Thanks a lot
Nitin