Exemple #1
0
        private static ByteBuffer EncodeClientBW(RtmpContext context, ClientBW clientBW)
        {
            ByteBuffer buffer = ByteBuffer.Allocate(5);

            buffer.PutInt(clientBW.Bandwidth);
            buffer.Put(clientBW.Value2);
            return(buffer);
        }
        static ByteBuffer EncodeClientBW(RtmpContext context, ClientBW clientBW)
        {
            ByteBuffer output = ByteBuffer.Allocate(5);

            output.PutInt(clientBW.Bandwidth);
            output.Put(clientBW.Value2);
            return(output);
        }
 protected override void OnClientBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ClientBW clientBw)
 {
     channel.Write(new ServerBW(clientBw.Bandwidth));
 }
Exemple #4
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="clientBW"></param>
 protected abstract void OnClientBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ClientBW clientBW);
Exemple #5
0
 protected override void OnClientBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ClientBW clientBW)
 {
 }
		static ByteBuffer EncodeClientBW(RtmpContext context, ClientBW clientBW) {
			ByteBuffer output = ByteBuffer.Allocate(5);
			output.PutInt(clientBW.Bandwidth);
			output.Put(clientBW.Value2);
			return output;
		}
Exemple #7
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="clientBW"></param>
		protected abstract void OnClientBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ClientBW clientBW);
Exemple #8
0
		protected override void OnClientBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ClientBW clientBW) {

		}