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(); }
private void AddName(string typeName) { if (Name == null) { Name = typeName; } else { if (Nested == null) { Nested = new List <string>(); } Nested.Add(typeName); } }
internal void AddNested(MetaEntry m) { Nested.Add(m); }