12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Drawing;
- namespace AIDiagnosisDemo.Service
- {
- internal interface IPlayer
- {
- /// <summary>
- /// 接收到图像输入的事件
- /// </summary>
- event EventHandler<Bitmap> InputFrameReceived;
- /// <summary>
- /// FPS变更的事件
- /// </summary>
- event EventHandler<int> FPSChanged;
- /// <summary>
- /// 播放
- /// </summary>
- /// <returns>播放成功为True,播放失败为False</returns>
- bool Play();
- /// <summary>
- /// 停止播放
- /// </summary>
- void Stop();
- /// <summary>
- /// 继续播放
- /// </summary>
- void Continue();
- /// <summary>
- /// 暂停播放
- /// </summary>
- void Pause();
- }
- /// <summary>
- /// 播放类型
- /// </summary>
- public enum PlayType
- {
- Picture,
- Video,
- DeviceCapture
- }
- }
|