예제 #1
0
 public void DecodeHeader()
 {
     this._header = new FlvHeader();
     byte[] buffer = this._reader.ReadBytes(3);
     this._header.Version = this._reader.ReadByte();
     this._header.SetTypeFlags(this._reader.ReadByte());
     this._header.DataOffset = this._reader.ReadInt32();
     if (log.get_IsDebugEnabled())
     {
         log.Debug("Flv header: " + this._header.ToString());
     }
 }
예제 #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
        }
예제 #3
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
        }