IPlayer.cs 976 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Drawing;
  3. namespace AIDiagnosisDemo.Service
  4. {
  5. internal interface IPlayer
  6. {
  7. /// <summary>
  8. /// 接收到图像输入的事件
  9. /// </summary>
  10. event EventHandler<Bitmap> InputFrameReceived;
  11. /// <summary>
  12. /// FPS变更的事件
  13. /// </summary>
  14. event EventHandler<int> FPSChanged;
  15. /// <summary>
  16. /// 播放
  17. /// </summary>
  18. /// <returns>播放成功为True,播放失败为False</returns>
  19. bool Play();
  20. /// <summary>
  21. /// 停止播放
  22. /// </summary>
  23. void Stop();
  24. /// <summary>
  25. /// 继续播放
  26. /// </summary>
  27. void Continue();
  28. /// <summary>
  29. /// 暂停播放
  30. /// </summary>
  31. void Pause();
  32. }
  33. /// <summary>
  34. /// 播放类型
  35. /// </summary>
  36. public enum PlayType
  37. {
  38. Picture,
  39. Video,
  40. DeviceCapture
  41. }
  42. }