ILiveVideoPusherManager.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using Vinno.FIS.TRTCClient.Common.Enum;
  4. using Vinno.vCloud.FIS.CrossPlatform.Common.LiveVideo;
  5. using Vinno.vCloud.FIS.CrossPlatform.Common.LiveVideo.Interface;
  6. using Vinno.vCloud.Protocol.Infrastructures;
  7. namespace Vinno.vCloud.Common.FIS.LiveVideos
  8. {
  9. internal interface ILiveVideoPusherManager : IPreview, IDisposable
  10. {
  11. /// <summary>
  12. /// 推流状态改变事件通知
  13. /// </summary>
  14. event EventHandler<PusherState> PusherStateChanged;
  15. /// <summary>
  16. /// 获取品牌列表
  17. /// </summary>
  18. /// <returns></returns>
  19. List<string> GetBrandList();
  20. /// <summary>
  21. /// 获取型号列表
  22. /// </summary>
  23. /// <param name="brand"></param>
  24. /// <param name="model"></param>
  25. /// <returns></returns>
  26. List<string> GetModelList(string brand);
  27. /// <summary>
  28. /// 获取推荐分辨率
  29. /// </summary>
  30. /// <param name="brand"></param>
  31. /// <param name="model"></param>
  32. /// <returns></returns>
  33. DeviceRecommandResolution GetRecommandResolution(string brand, string model);
  34. /// <summary>
  35. /// 当前的推流模式
  36. /// </summary>
  37. EnumPusherType CurrentPushType { get; }
  38. void UpdateCurrentVideoDeviceInfoList(List<CPVideoDeviceInfo> infos);
  39. /// <summary>
  40. /// 是否正在推流
  41. /// </summary>
  42. bool IsPushing { get; }
  43. /// <summary>
  44. /// 重新推流
  45. /// </summary>
  46. void RestartPusher();
  47. /// <summary>
  48. /// 设置是否暂停
  49. /// </summary>
  50. /// <param name="isPaused"></param>
  51. void SetIsPaused(bool isPaused);
  52. void SetMute(bool isMute);
  53. void PushModeChanged(LiveDataMode pushLiveMode, LiveProtocol liveProtocol);
  54. void LiveStateChanged(LiveEventArgs liveEventArgs);
  55. }
  56. public enum PusherState
  57. {
  58. Preparing,
  59. Prepared
  60. }
  61. }