123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using System;
- using System.Collections.Generic;
- using Vinno.FIS.TRTCClient.Common.Enum;
- using Vinno.vCloud.FIS.CrossPlatform.Common.LiveVideo;
- namespace Vinno.vCloud.Common.FIS.LiveVideos
- {
- public interface ILiveVideoV2 : IFeatureV2, IDisposable
- {
- /// <summary>
- /// Raised when camera Preview Excute
- /// </summary>
- event EventHandler<byte[]> PreviewCameraCaptured;
- /// <summary>
- /// Raised when Camera Preview Image Size Changed
- /// </summary>
- event EventHandler<ImageSize> CameraPreviewImageSizeChanged;
- /// <summary>
- /// The event to notificate the US to show or hide the live video out put window
- /// </summary>
- event EventHandler<LiveNotificationArgs> LiveNotification;
- /// <summary>
- /// Raised when capture image generated.(only for new server)
- /// </summary>
- event EventHandler<string> CaptureImageGenerated;
- /// <summary>
- /// Raised when record video generated.(only for new server)
- /// </summary>
- event EventHandler<string> RecordVideoGenerated;
- /// <param name="enableCameraLive"></param>
- /// <param name="cameraId"></param>
- /// <param name="micId"></param>
- /// <param name="showPreviewImage"></param>
- /// <param name="enableLiveVideo"></param>
- /// <param name="isMute"></param>
- void ChangeCameraSettings(bool enableCameraLive, string cameraId, string micId, bool showPreviewImage, bool enableLiveVideo, bool isMute);
- /// <summary>
- /// Change Camera Setting
- /// </summary>
- /// <param name="infos"></param>
- void ChangeCameraSettingsForSonopost(bool showPreviewImage, EnumLiveChannelCategory previewLiveChannel, IEnumerable<CPVideoDeviceInfo> infos, string micId, bool isMute, RainbowImageDetectConfig rainbowImageDetectConfig);
- /// <summary>
- /// Change Real Time Capture Setting
- /// </summary>
- /// <param name="isStart"></param>
- void ChangeRealTimeCaptureSetting(bool isStart);
- /// <summary>
- /// Capture current Image
- /// </summary>
- void CaptureCurrentImage();
- /// <summary>
- /// Start Record Video
- /// </summary>
- void StartRecordVideo();
- /// <summary>
- /// Stop Record Video
- /// </summary>
- void StopRecordVideo(bool isTimeOut);
- /// <summary>
- /// 获取品牌列表
- /// </summary>
- /// <returns></returns>
- List<string> GetBrandList();
- /// <summary>
- /// 获取型号列表
- /// </summary>
- /// <param name="brand"></param>
- /// <param name="model"></param>
- /// <returns></returns>
- List<string> GetModelList(string brand);
- /// <summary>
- /// 获取推荐分辨率
- /// </summary>
- /// <param name="brand"></param>
- /// <param name="model"></param>
- /// <returns></returns>
- DeviceRecommandResolution GetRecommandResolution(string brand, string model);
- /// <summary>
- /// Speed live test network and auto select good network to server
- /// </summary>
- /// <returns></returns>
- bool StartSpeedTest();
- /// <summary>
- /// 重新上传剩余未上传的Vid
- /// </summary>
- void ReUploadRestVid();
- }
- }
|