Пример #1
0
        public void DecodeHeader()
        {
            // SIGNATURE, lets just skip
            _header = new FlvHeader();
            byte[] signature = _reader.ReadBytes(3);//FLV
            _header.Version = _reader.ReadByte();
            _header.SetTypeFlags(_reader.ReadByte());
            _header.DataOffset = _reader.ReadInt32();
#if !SILVERLIGHT
            if (log.IsDebugEnabled)
            {
                log.Debug("Flv header: " + _header.ToString());
            }
#endif
        }
Пример #2
0
        public void DecodeHeader()
        {
		    // SIGNATURE, lets just skip
		    _header = new FlvHeader();
            byte[] signature = _reader.ReadBytes(3);//FLV
            _header.Version = _reader.ReadByte();
            _header.SetTypeFlags(_reader.ReadByte());
            _header.DataOffset = _reader.ReadInt32();
#if !SILVERLIGHT
		    if (log.IsDebugEnabled) 
            {
			    log.Debug("Flv header: " + _header.ToString());
		    }
#endif
        }