コード例 #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);
         }
     }
 }