当前位置: 首页>>代码示例>>Java>>正文


Java RtspResponseEncoder类代码示例

本文整理汇总了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;
}
 
开发者ID:SergioChan,项目名称:Android-Airplay-Server,代码行数:28,代码来源:RaopRtspPipelineFactory.java

示例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;
}
 
开发者ID:lukeqsun,项目名称:AirSpeakerMobile,代码行数:30,代码来源:RaopRtspPipelineFactory.java

示例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;
}
 
开发者ID:laggc,项目名称:rtsp_multicast_pfc,代码行数:10,代码来源:RtspServerPipelineFactory.java


注:本文中的org.jboss.netty.handler.codec.rtsp.RtspResponseEncoder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。