Set of frames, sent here by 'traf'
Inheritance: FullBox
Ejemplo n.º 1
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);
 }
Ejemplo n.º 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);
 }