IPreviewManagerV2.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using Vinno.FIS.TRTCClient.Common.Enum;
  4. using Vinno.vCloud.FIS.CrossPlatform.Common.LiveVideo;
  5. namespace Vinno.vCloud.Common.FIS.LiveVideos
  6. {
  7. internal interface IPreviewManager : IDisposable
  8. {
  9. /// <summary>
  10. /// 是否正在预览
  11. /// </summary>
  12. bool IsPreviewing { get; }
  13. /// <summary>
  14. /// 预览画面回调
  15. /// </summary>
  16. event EventHandler<ImageFrameData> PreviewImageReceived;
  17. void SetIsPaused(bool isPaused);
  18. /// <summary>
  19. /// 开始预览
  20. /// </summary>
  21. /// <param name="deviceId"></param>
  22. /// <param name="width"></param>
  23. /// <param name="height"></param>
  24. /// <param name="frameRate"></param>
  25. /// <param name="category"></param>
  26. void StartPreview(string deviceId, int width, int height, int frameRate, EnumLiveChannelCategory category);
  27. /// <summary>
  28. /// 结束预览
  29. /// </summary>
  30. void StopPreview(bool setPreviewCacheFalse);
  31. void UpdateCurrentVideoDeviceInfoList(List<CPVideoDeviceInfo> cPVideoDeviceInfos);
  32. }
  33. }