Пример #1
0
		/// <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
		protected override void OnServerBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ServerBW serverBW) {
		}