All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.antstreaming.rtsp.protocol.MessageCodecFactory Maven / Gradle / Ivy

Go to download

Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.

There is a newer version: 2.10.0
Show newest version
package com.antstreaming.rtsp.protocol;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

public class MessageCodecFactory implements ProtocolCodecFactory {

  public ProtocolDecoder getDecoder(IoSession session) throws Exception {
    return new RtspDecoder();
  }

  public ProtocolEncoder getEncoder(IoSession session) throws Exception {
    return new RtspEncoder();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy