You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 rivejä
1.0 KiB

  1. using JT1078.FMp4.Interfaces;
  2. using JT1078.FMp4.MessagePack;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace JT1078.FMp4
  7. {
  8. /// <summary>
  9. /// mvex
  10. /// </summary>
  11. public class MovieExtendsBox : Mp4Box, IFMp4MessagePackFormatter
  12. {
  13. /// <summary>
  14. /// mvex
  15. /// </summary>
  16. public MovieExtendsBox() : base("mvex")
  17. {
  18. }
  19. public MovieExtendsHeaderBox MovieExtendsHeaderBox { get; set; }
  20. public List<TrackExtendsBox> TrackExtendsBoxs { get; set; }
  21. public void ToBuffer(ref FMp4MessagePackWriter writer)
  22. {
  23. Start(ref writer);
  24. if (MovieExtendsHeaderBox != null)
  25. {
  26. MovieExtendsHeaderBox.ToBuffer(ref writer);
  27. }
  28. if (TrackExtendsBoxs != null)
  29. {
  30. foreach(var item in TrackExtendsBoxs)
  31. {
  32. item.ToBuffer(ref writer);
  33. }
  34. }
  35. End(ref writer);
  36. }
  37. }
  38. }