Package org.red5.client.net.rtmpe
Class Proxy
- java.lang.Object
-
- org.red5.client.net.rtmpe.Proxy
-
- All Implemented Interfaces:
IClientListener
public class Proxy extends Object implements IClientListener
A proxy for publishing an RTMPE stream to an RTMP stream.- Author:
- Andy Shaules (bowljoman@hotmail.com), Paul Gregoire
-
-
Constructor Summary
Constructors Constructor Description Proxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonClientListenerEvent(org.red5.server.net.rtmp.event.IRTMPEvent rtmpEvent)voidsetApp(String app)Sets the applicaiton to proxy to.voidsetHost(String host)Sets the host to proxy to.voidsetPort(int port)Sets the port to proxy to.voidstart(String publishName, String publishMode)Starts the process of proxying data.voidstop()Stops proxying.voidstopListening()
-
-
-
Method Detail
-
start
public void start(String publishName, String publishMode)
Starts the process of proxying data.- Parameters:
publishName-publishMode-
-
stop
public void stop()
Stops proxying.
-
setHost
public void setHost(String host)
Sets the host to proxy to.- Parameters:
host-
-
setPort
public void setPort(int port)
Sets the port to proxy to.- Parameters:
port-
-
setApp
public void setApp(String app)
Sets the applicaiton to proxy to.- Parameters:
app-
-
onClientListenerEvent
public void onClientListenerEvent(org.red5.server.net.rtmp.event.IRTMPEvent rtmpEvent)
- Specified by:
onClientListenerEventin interfaceIClientListener
-
stopListening
public void stopListening()
- Specified by:
stopListeningin interfaceIClientListener
-
-