本文整理汇总了Java中org.jboss.netty.handler.codec.rtsp.RtspResponseEncoder类的典型用法代码示例。如果您正苦于以下问题:Java RtspResponseEncoder类的具体用法?Java RtspResponseEncoder怎么用?Java RtspResponseEncoder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RtspResponseEncoder类属于org.jboss.netty.handler.codec.rtsp包,在下文中一共展示了RtspResponseEncoder类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPipeline
import org.jboss.netty.handler.codec.rtsp.RtspResponseEncoder; //导入依赖的package包/类
@Override
public ChannelPipeline getPipeline() throws Exception {
final ChannelPipeline pipeline = Channels.pipeline();
final AirPlayServer airPlayServer = AirPlayServer.getIstance();
pipeline.addLast("executionHandler", airPlayServer.getChannelExecutionHandler());
pipeline.addLast("closeOnShutdownHandler", new SimpleChannelUpstreamHandler() {
@Override
public void channelOpen(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception {
airPlayServer.getChannelGroup().add(e.getChannel());
super.channelOpen(ctx, e);
}
});
pipeline.addLast("exceptionLogger", new ExceptionLoggingHandler());
pipeline.addLast("decoder", new RtspRequestDecoder());
pipeline.addLast("encoder", new RtspResponseEncoder());
pipeline.addLast("logger", new RtspLoggingHandler());
pipeline.addLast("errorResponse", new RtspErrorResponseHandler());
pipeline.addLast("challengeResponse", new RaopRtspChallengeResponseHandler(NetworkUtils.getInstance().getHardwareAddress()));
pipeline.addLast("header", new RaopRtspHeaderHandler());
pipeline.addLast("options", new RaopRtspOptionsHandler());
pipeline.addLast("audio", new RaopAudioHandler(airPlayServer.getExecutorService()));
pipeline.addLast("unsupportedResponse", new RtspUnsupportedResponseHandler());
return pipeline;
}
示例2: getPipeline
import org.jboss.netty.handler.codec.rtsp.RtspResponseEncoder; //导入依赖的package包/类
@Override
public ChannelPipeline getPipeline() throws Exception {
final ChannelPipeline pipeline = Channels.pipeline();
final AirPlayServer airPlayServer = AirPlayServer.getIstance(context);
pipeline.addLast("executionHandler", airPlayServer.getChannelExecutionHandler());
pipeline.addLast("closeOnShutdownHandler", new SimpleChannelUpstreamHandler() {
@Override
public void channelOpen(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception {
airPlayServer.getChannelGroup().add(e.getChannel());
super.channelOpen(ctx, e);
}
});
pipeline.addLast("exceptionLogger", new ExceptionLoggingHandler());
pipeline.addLast("decoder", new RtspRequestDecoder());
pipeline.addLast("encoder", new RtspResponseEncoder());
//pipeline.addLast("aggregator", new HttpChunkAggregator(655360));//buffer size
pipeline.addLast("logger", new RtspLoggingHandler(context));
pipeline.addLast("errorResponse", new RtspErrorResponseHandler());
pipeline.addLast("challengeResponse", new RaopRtspChallengeResponseHandler(NetworkUtils.getInstance().getHardwareAddress()));
pipeline.addLast("header", new RaopRtspHeaderHandler());
pipeline.addLast("options", new RaopRtspOptionsHandler());
pipeline.addLast("audio", new RaopAudioHandler(airPlayServer.getExecutorService(),context));
pipeline.addLast("unsupportedResponse", new RtspUnsupportedResponseHandler());
return pipeline;
}
示例3: getPipeline
import org.jboss.netty.handler.codec.rtsp.RtspResponseEncoder; //导入依赖的package包/类
public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline();
pipeline.addLast("decoder", new RtspRequestDecoder());
pipeline.addLast("encoder", new RtspResponseEncoder());
pipeline.addLast("handler", new RtspRequestHandler(this.rtspServerStackImpl));
return pipeline;
}