You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.2 KiB
79 lines
2.2 KiB
3 years ago
|
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();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 从0开始
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
int GetIndex();
|
||
|
void SetIndex(int index);
|
||
|
|
||
|
//bool GetIsShow();
|
||
|
//void SetIsShow(bool isShow);
|
||
|
/// <summary>
|
||
|
/// 设置窗体大小
|
||
|
/// </summary>
|
||
|
/// <param name="videoWidth"></param>
|
||
|
/// <param name="videoHeight"></param>
|
||
|
void ReSetSize(double videoWidth, double videoHeight);
|
||
|
/// <summary>
|
||
|
/// 播放
|
||
|
/// </summary>
|
||
|
/// <param name="camera"></param>
|
||
|
/// <param name="replay">正在播放是否重新加载</param>
|
||
|
/// <returns></returns>
|
||
|
bool Play(MonitorCamera camera, bool replay = false);
|
||
|
|
||
|
void Stop();
|
||
|
void UPDateTime();
|
||
|
|
||
|
/// 判断预警是否接触
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
bool IsTimeOut();
|
||
|
/// <summary>
|
||
|
/// 是否是空的播放器
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
bool IsNullPlay();
|
||
|
/// <summary>
|
||
|
/// 是否正在播放
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
bool IsPlaying();
|
||
|
void SetSelected(bool selected);
|
||
|
event EventHandler<int> PlayerMouseDown; //定义一个委托类型的事件
|
||
|
event EventHandler<int> PlayerMouseDoubleClick;//委托一个双击事件
|
||
|
event EventHandler<int> OnFromClose;
|
||
|
//event EventHandler OnFromClose;
|
||
|
/// <summary>
|
||
|
/// 设置最大化或正常
|
||
|
/// </summary>
|
||
|
/// <param name="width"></param>
|
||
|
/// <param name="height"></param>
|
||
|
/// <returns></returns>
|
||
|
bool SetMaximized(double width, double height);
|
||
|
|
||
|
void ShowMsg(string message);
|
||
|
|
||
|
}
|
||
|
}
|