Exemple #1
0
 protected override void OnServerBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ServerBW serverBW)
 {
 }
 /// <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;
 }
 /// <summary>
 /// This method supports the Fluorine 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);