MediaBox.cs 913 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.IO;
  6. namespace MatrixIO.IO.Bmff.Boxes
  7. {
  8. /// <summary>
  9. /// Media Box ("mdia")
  10. /// A common base structure is used to contain general metadata, called the meta box.
  11. /// </summary>
  12. [Box("mdia", "Media Box")]
  13. public class MediaBox : Box, ISuperBox
  14. {
  15. public MediaBox() : base() { }
  16. public MediaBox(Stream stream) : base(stream) { }
  17. protected IList<Box> _Children = Portability.CreateList<Box>();
  18. public IList<Box> Children
  19. {
  20. get { return _Children; }
  21. }
  22. public IEnumerator<Box> GetEnumerator()
  23. {
  24. return Children.GetEnumerator();
  25. }
  26. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
  27. {
  28. return Children.GetEnumerator();
  29. }
  30. }
  31. }