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)); }
/// <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);
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; }