public override void Read(BoxReader reader)
 {
     using (new SizeChecker(this, reader))
     {
       base.Read(reader);
       this.TrackFragmentRandomAccessBoxes = new List<TrackFragmentRandomAccessBox>();
       while (reader.PeekNextBoxType() == BoxTypes.TrackFragmentRandomAccess) {
           TrackFragmentRandomAccessBox item = new TrackFragmentRandomAccessBox();
           item.Read(reader);
           this.TrackFragmentRandomAccessBoxes.Add(item);
       }
       this.MovieFragmentRandomAccessOffsetBox = new MovieFragmentRandomAccessOffsetBox();
       this.MovieFragmentRandomAccessOffsetBox.Read(reader);
     }
 }
Esempio n. 2
0
 public override void Read(BoxReader reader)
 {
     using (new SizeChecker(this, reader))
     {
         base.Read(reader);
         this.TrackFragmentRandomAccessBoxes = new List <TrackFragmentRandomAccessBox>();
         while (reader.PeekNextBoxType() == BoxTypes.TrackFragmentRandomAccess)
         {
             TrackFragmentRandomAccessBox item = new TrackFragmentRandomAccessBox();
             item.Read(reader);
             this.TrackFragmentRandomAccessBoxes.Add(item);
         }
         this.MovieFragmentRandomAccessOffsetBox = new MovieFragmentRandomAccessOffsetBox();
         this.MovieFragmentRandomAccessOffsetBox.Read(reader);
     }
 }