예제 #1
0
파일: Mp4.cs 프로젝트: pinglossy/smoothget
 public Fragment(byte[] boxBytes, int start, int end)
 {
     while (start < end) {
     Box box = Mp4Utils.GetBox(boxBytes, ref start, end);
     if (box == null) {
     } else if (box.ID == ID.mdat) {
       this.mdat = (box as MediaDataBox);
     } else if (box.ID == ID.moof) {
       this.moof = (box as MovieFragmentBox);
     }
       }
 }
예제 #2
0
 public Fragment(byte[] boxBytes, int start, int end)
 {
     while (start < end)
     {
         Box box = Mp4Utils.GetBox(boxBytes, ref start, end);
         if (box == null)
         {
         }
         else if (box.ID == ID.mdat)
         {
             this.mdat = (box as MediaDataBox);
         }
         else if (box.ID == ID.moof)
         {
             this.moof = (box as MovieFragmentBox);
         }
     }
 }