/// <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); }
/// <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); }