GetChunkSize() public static method

public static GetChunkSize ( uint chunkSize ) : AmfMessage
chunkSize uint
return AmfMessage
Beispiel #1
0
        public void TrySetOutboundChunkSize(uint chunkSize)
        {
            if (_outboundChunkSize >= chunkSize)
            {
                return;
            }
            _outboundChunkSize = chunkSize;
            SendMessage(GenericMessageFactory.GetChunkSize(_outboundChunkSize));
#if PARALLEL
            _streams.Where(x => x != null && x.Type.TagKindOf(StreamTypes.ST_OUT_NET_RTMP)).Cast <BaseOutNetRTMPStream>().AsParallel().ForAll(
                y => y.ChunkSize = _outboundChunkSize);
#else
            foreach (
                var baseStream in
                _streams.Where(x => x != null && x.Type.TagKindOf(ST_OUT_NET_RTMP))
                .Cast <BaseOutNetRTMPStream>())
            {
                baseStream.ChunkSize = _outboundChunkSize;
            }
#endif
        }