Set of frames, sent here by 'traf'
Inheritance: FullBox
コード例 #1
0
ファイル: traf.cs プロジェクト: i-e-b/HLS---Smooth-Encoder
 /// <summary>
 /// Add a frame to this traf
 /// </summary>
 public void AddFrame(GenericMediaFrame frame)
 {
     if (_children.Last() is trun) { // looking at .ismv files in a hex editor, they use multiple frames/trun.
         trun ot = _children.Last() as trun;
         ot.AddFrame(frame);
     } else {
         var t = new trun();
         t.AddFrame(frame);
         AddChild(t);
     }
     Header.AddFrame(frame);
 }
コード例 #2
0
 /// <summary>
 /// Add a frame to this traf
 /// </summary>
 public void AddFrame(GenericMediaFrame frame)
 {
     if (_children.Last() is trun)               // looking at .ismv files in a hex editor, they use multiple frames/trun.
     {
         trun ot = _children.Last() as trun;
         ot.AddFrame(frame);
     }
     else
     {
         var t = new trun();
         t.AddFrame(frame);
         AddChild(t);
     }
     Header.AddFrame(frame);
 }