コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
ファイル: Mp4.cs プロジェクト: pinglossy/smoothget
 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);
     }
       }
 }