コード例 #1
0
ファイル: BaseRtmpHandler.cs プロジェクト: GodLesZ/svn-dump
		/// <summary>
		/// This method supports the infrastructure and is not intended to be used directly from your code.
		/// </summary>
		/// <param name="connection"></param>
		/// <param name="channel"></param>
		/// <param name="source"></param>
		/// <param name="serverBW"></param>
		protected abstract void OnServerBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ServerBW serverBW);
コード例 #2
0
		/// <summary>
		/// Encode server-side bandwidth event
		/// </summary>
		/// <param name="context"></param>
		/// <param name="serverBW"></param>
		/// <returns></returns>
		static ByteBuffer EncodeServerBW(RtmpContext context, ServerBW serverBW) {
			ByteBuffer output = ByteBuffer.Allocate(4);
			output.PutInt(serverBW.Bandwidth);
			return output;
		}
コード例 #3
0
ファイル: RtmpHandler.cs プロジェクト: GodLesZ/svn-dump
		protected override void OnServerBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ServerBW serverBW) {
		}