Add() public méthode

Add a base tag
public Add ( FlvBaseTag value ) : FlvBaseTag
value FlvBaseTag base tag to add
Résultat FlvBaseTag
Exemple #1
0
        /// <summary>
        /// Reads the FLV.
        /// </summary>
        /// <returns></returns>
        public Flv ReadFlv()
        {
            FlvHeader header = new FlvHeader();
            header.ReadData(br);
            this.version = header.Version;
            br.ReadUInt32();

            FlvBaseTagCollection tags = new FlvBaseTagCollection();

            while (br.BaseStream.Position < br.BaseStream.Length)
            {
                FlvBaseTag tag = ReadTag();
                if (tag != null)
                    tags.Add(tag);
            }

            return new Flv(header, tags);
        }