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()); } }
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 }