public moov(params MediaStream[] Streams) : base("moov") { // Add a basic header: head = new mvhd(); AddChild(head); // Add a track record for each stream (specific to format) foreach (var stream in Streams) { structure = new trak(stream.Width, stream.Height, stream.TrackId); AddChild(structure); } // add extensions to mark as fragmented: mvex extensions = new mvex(Streams); AddChild(extensions); }