AddFrame() public method

Add a frame to this trun
public AddFrame ( GenericMediaFrame f ) : void
f GenericMediaFrame
return void
Exemplo 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);
 }
Exemplo 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);
 }