namespace SHH.MjpegPlayer;

/// <summary>
/// Mjpeg 配置
/// </summary>
public class MjpegConfig
{
    /// <summary>Mjpeg 服务 IP 地址</summary>
    public string SvrMjpegIp
        = "0.0.0.0";

    /// <summary>Mjpeg 服务端口开始</summary>
    public int SvrMjpegPortBegin { get; }
        = 25031;

    /// <summary>Mjpeg 服务端口结束</summary>
    public int SvrMjpegPortEnd { get; }
        = 25300;

    /// <summary>帧间隔, 单位毫秒 (值为 125, 每秒 8 帧)</summary>
    public int FrameInterval { get; set; }
        = 125;

    /// <summary>Mjpeg Wcf 接收图片接口</summary>
    public int WcfPushImagePort { get; }
        = 25030;

    /// <summary>接收图片的服务器名称</summary>
    public string SvrNamePushImage { get; set; }
        = "ImageService.svc";

    /// <summary>最大接收数据大小</summary>
    public int SvrPushImageMaxRecMsgSize { get; set; }
        = 2000 * 1024 * 1024;

    /// <summary>Rtmp 服务地址</summary>
    public string RtmpServerDjhUri { get; set; }
        = "http://172.16.41.108:8889/intellect/nvr/getRtmp";

    /// <summary>是否使用 Rtmp 服务</summary>
    public bool UseRtmpServer { get; set; }
        = false;
}