當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。