Subtitle.cs 420 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace RenderHeads.Media.AVProVideo
  3. {
  4. public class Subtitle
  5. {
  6. public bool IsBefore(float time)
  7. {
  8. return time > (float)this.timeStartMs && time > (float)this.timeEndMs;
  9. }
  10. public bool IsTime(float time)
  11. {
  12. return time >= (float)this.timeStartMs && time < (float)this.timeEndMs;
  13. }
  14. public int index;
  15. public string text;
  16. public int timeStartMs;
  17. public int timeEndMs;
  18. }
  19. }