Beispiel #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));
        }
Beispiel #2
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);
        }
Beispiel #3
0
 /// <summary>
 /// Creates a new <see cref="Flv"/> instance.
 /// </summary>
 /// <param name="header">Header.</param>
 /// <param name="flvTags">FLV tags.</param>
 public Flv(FlvHeader header, FlvBaseTagCollection flvTags)
 {
     this.header = header;
     this.tags = flvTags;
 }
Beispiel #4
0
 /// <summary>
 /// Creates a new <see cref="Flv"/> instance.
 /// </summary>
 /// <param name="header">Header.</param>
 public Flv(FlvHeader header)
 {
     this.header = header;
 }
Beispiel #5
0
 /// <summary>
 /// Creates a new <see cref="Flv"/> instance.
 /// </summary>
 /// <param name="header">Header.</param>
 /// <param name="flvTags">FLV tags.</param>
 public Flv(FlvHeader header, FlvBaseTagCollection flvTags)
 {
     this.header = header;
     this.tags   = flvTags;
 }
Beispiel #6
0
 /// <summary>
 /// Creates a new <see cref="Flv"/> instance.
 /// </summary>
 /// <param name="header">Header.</param>
 public Flv(FlvHeader header)
 {
     this.header = header;
 }