using EC.Entity.Video;
using EC.Onvif;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
namespace ECMonitor.UC.Videos
{
public interface IUCPlayer
{
string GetMessage();
string GetName();
int GetPlayerType();
MonitorCamera GetCamera();
OnvifClient GetOnvifClient();
string GetCameraIp();
UserControl GetControl();
///
/// 从0开始
///
///
int GetIndex();
void SetIndex(int index);
//bool GetIsShow();
//void SetIsShow(bool isShow);
///
/// 设置窗体大小
///
///
///
void ReSetSize(double videoWidth, double videoHeight);
///
/// 播放
///
///
/// 正在播放是否重新加载
///
bool Play(MonitorCamera camera, bool replay = false);
void Stop();
void UPDateTime();
/// 判断预警是否接触
///
///
bool IsTimeOut();
///
/// 是否是空的播放器
///
///
bool IsNullPlay();
///
/// 是否正在播放
///
///
bool IsPlaying();
void SetSelected(bool selected);
event EventHandler PlayerMouseDown; //定义一个委托类型的事件
event EventHandler PlayerMouseDoubleClick;//委托一个双击事件
event EventHandler OnFromClose;
//event EventHandler OnFromClose;
///
/// 设置最大化或正常
///
///
///
///
bool SetMaximized(double width, double height);
void ShowMsg(string message);
}
}