TrackFragmentBox.cs 863 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. namespace MatrixIO.IO.Bmff.Boxes
  7. {
  8. /// <summary>
  9. /// Track Fragment Box ("traf")
  10. /// </summary>
  11. [Box("traf", "Track Fragment Box")]
  12. public class TrackFragmentBox : Box, ISuperBox
  13. {
  14. public TrackFragmentBox() : base() { }
  15. public TrackFragmentBox(Stream stream) : base(stream) { }
  16. private IList<Box> _Children = Portability.CreateList<Box>();
  17. public IList<Box> Children
  18. {
  19. get { return _Children; }
  20. }
  21. public IEnumerator<Box> GetEnumerator()
  22. {
  23. return Children.GetEnumerator();
  24. }
  25. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
  26. {
  27. return Children.GetEnumerator();
  28. }
  29. }
  30. }