Is there a way to choose between "liverepeater-edge" and "live-rtp" in my module?
Something like that:
Code:public class AliasRepeater extends ModuleBase implements IMediaStreamNameAliasProvider { ... public void play(IClient client, RequestFunction function, AMFDataList params) { if(params.get(PARAM1).getType() == AMFData.DATA_TYPE_STRING) { String playName = params.getString(PARAM1); String streamName = resolveStreamAlias(client.getAppInstance(), playName); if(streamName.startsWith("rtsp://")) { // Choose rtp-live stream getLogger().info("AliasRepeater.play["+playName+"]: "+"rtp-live"); } else { // Choose liverepeater-edge stream getLogger().info("AliasRepeater.play["+playName+"]: "+"riverepeater-edge"); } } this.invokePrevious(client, function, params); } }


Reply With Quote
