Esempio n. 1
0
        private static ByteBuffer EncodeServerBW(RtmpContext context, ServerBW serverBW)
        {
            ByteBuffer buffer = ByteBuffer.Allocate(4);

            buffer.PutInt(serverBW.Bandwidth);
            return(buffer);
        }
        /// <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);
        }
 protected override void OnServerBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ServerBW serverBw)
 {
 }
Esempio n. 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="serverBW"></param>
 protected abstract void OnServerBW(RtmpConnection connection, RtmpChannel channel, RtmpHeader source, ServerBW serverBW);