This small article will demonstrate an easy way to remove audio (or video) from an rtmp playback stream. Simply implement the IMediaStreamActionNotify3 interface and set the receive audio/video to false within the event handler as follows:
public class StripAVFromRTMPModule extends ModuleBase { public void onStreamCreate(IMediaStream stream) { stream.setReceiveAudio(false); stream.setReceiveVideo(true); } public void onStreamDestroy(IMediaStream stream) { } }