public MovieFragmentBox(byte[] boxBytes, int start, int end) : base(ID.moof) { while (start < end) { Box box = Mp4Utils.GetBox(boxBytes, ref start, end); if (box == null) { } else if (box.ID == ID.traf) { this.traf = (box as TrackFragmentBox); } else if (box.ID == ID.mfhd) { this.mfhd = (box as MovieFragmentHeaderBox); } } }