Example #1
0
        public MP4File(Stream stream)
        {
            long startIndex = 0;

            Stream = stream;
            do
            {
                var box = Box.CreateBox(stream, startIndex);
                startIndex += box.Size;
                Nested.Add(box);
            } while (startIndex < stream.Length);
            FTYP = Nested.Where(x => x.Type == "ftyp").Cast <BoxFTYP>().Single();
            MOOV = Nested.Where(x => x.Type == "moov").Cast <BoxMOOV>().Single();
        }
Example #2
0
 private void AddName(string typeName)
 {
     if (Name == null)
     {
         Name = typeName;
     }
     else
     {
         if (Nested == null)
         {
             Nested = new List <string>();
         }
         Nested.Add(typeName);
     }
 }
Example #3
0
 internal void AddNested(MetaEntry m)
 {
     Nested.Add(m);
 }