Examples of RTMPCodecFactory


Examples of org.red5.server.net.rtmp.codec.RTMPCodecFactory

* @author ce@publishing-etc.de
*/
public class SimpleClient implements IRTMPHandler {
 
  public static void main(String[] args) {
    RTMPCodecFactory codecFactory=new RTMPCodecFactory();
    codecFactory.setDeserializer(new Deserializer());
    codecFactory.setSerializer(new Serializer());
    codecFactory.init();
   
    RTMPMinaIoHandler ioHandler=new RTMPMinaIoHandler();
    ioHandler.setCodecFactory(codecFactory);
    ioHandler.setMode(RTMP.MODE_CLIENT);
    ioHandler.setHandler(new SimpleClient());
View Full Code Here

Examples of org.red5.server.net.rtmp.codec.RTMPCodecFactory

     */
    private Map<String, ClientSharedObject> sharedObjects = new HashMap<String, ClientSharedObject>();

  /** Constructs a new RTMPClient. */
    public RTMPClient() {
    RTMPCodecFactory codecFactory = new RTMPCodecFactory();
    codecFactory.setDeserializer(new Deserializer());
    codecFactory.setSerializer(new Serializer());
    codecFactory.init();
   
    ioHandler = new RTMPMinaIoHandler();
    ioHandler.setCodecFactory(codecFactory);
    ioHandler.setMode(RTMP.MODE_CLIENT);
    ioHandler.setHandler(this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.