ILiveVideoV2.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. public interface ILiveVideoV2 : IFeatureV2, IDisposable
  8. {
  9. /// <summary>
  10. /// Raised when camera Preview Excute
  11. /// </summary>
  12. event EventHandler<byte[]> PreviewCameraCaptured;
  13. /// <summary>
  14. /// Raised when Camera Preview Image Size Changed
  15. /// </summary>
  16. event EventHandler<ImageSize> CameraPreviewImageSizeChanged;
  17. /// <summary>
  18. /// The event to notificate the US to show or hide the live video out put window
  19. /// </summary>
  20. event EventHandler<LiveNotificationArgs> LiveNotification;
  21. /// <param name="enableCameraLive"></param>
  22. /// <param name="cameraId"></param>
  23. /// <param name="micId"></param>
  24. /// <param name="showPreviewImage"></param>
  25. /// <param name="enableLiveVideo"></param>
  26. /// <param name="isMute"></param>
  27. void ChangeCameraSettings(bool enableCameraLive, string cameraId, string micId, bool showPreviewImage, bool enableLiveVideo, bool isMute);
  28. /// <summary>
  29. /// Change Camera Setting
  30. /// </summary>
  31. /// <param name="infos"></param>
  32. void ChangeCameraSettingsForSonopost(bool showPreviewImage, EnumLiveChannelCategory previewLiveChannel, IEnumerable<CPVideoDeviceInfo> infos, string micId, bool isMute, RainbowImageDetectConfig rainbowImageDetectConfig);
  33. /// <summary>
  34. /// 获取品牌列表
  35. /// </summary>
  36. /// <returns></returns>
  37. List<string> GetBrandList();
  38. /// <summary>
  39. /// 获取型号列表
  40. /// </summary>
  41. /// <param name="brand"></param>
  42. /// <param name="model"></param>
  43. /// <returns></returns>
  44. List<string> GetModelList(string brand);
  45. /// <summary>
  46. /// 获取推荐分辨率
  47. /// </summary>
  48. /// <param name="brand"></param>
  49. /// <param name="model"></param>
  50. /// <returns></returns>
  51. DeviceRecommandResolution GetRecommandResolution(string brand, string model);
  52. /// <summary>
  53. /// Speed live test network and auto select good network to server
  54. /// </summary>
  55. /// <returns></returns>
  56. bool StartSpeedTest();
  57. }
  58. }