Esempio n. 1
0
        public object GetOutput(int o, enumOutput k, bool online)
        {
            if (this.Output != null)
            {
                object obj = null;
                Dictionary <string, string> dic = online == true?this.LoadOutputs()["output" + o] : this.Output["output" + o];

                switch (k)
                {
                case enumOutput.aenc_codec:
                case enumOutput.aenc_bitrate:
                case enumOutput.venc_enable:
                case enumOutput.venc_codec:
                case enumOutput.venc_gop:
                case enumOutput.venc_width_height_same_as_input:
                case enumOutput.venc_width:
                case enumOutput.venc_height:
                case enumOutput.venc_framerate:
                case enumOutput.venc_profile:
                case enumOutput.venc_rc_mode:
                case enumOutput.venc_bitrate:
                case enumOutput.http_private_enable:
                case enumOutput.http_private_uri:
                case enumOutput.http_ts_enable:
                case enumOutput.http_ts_uri:
                case enumOutput.http_jpg_enable:
                case enumOutput.http_jpg_uri:
                case enumOutput.http_mjpg_enable:
                case enumOutput.http_mjpg_uri:
                case enumOutput.http_hls_enable:
                case enumOutput.http_hls_uri:
                case enumOutput.http_flv_enable:
                case enumOutput.http_flv_uri:
                case enumOutput.rtsp_enable:
                case enumOutput.rtsp_uri:
                case enumOutput.rtmp_enable:
                case enumOutput.rtmp_uri:
                case enumOutput.rtmp_publish_enable:
                case enumOutput.rtmp_publish_uri:
                case enumOutput.multicast_enable:
                case enumOutput.multicast_ip:
                case enumOutput.multicast_port:
                case enumOutput.unicast_enable:
                case enumOutput.unicast_port:
                    obj = dic[k.ToString()];
                    break;

                default:
                    break;
                }
                return(obj);
            }
            return(null);
        }
Esempio n. 2
0
 public object GetOutput(int o, enumOutput k)
 {
     return(this.GetOutput(o, k, false));
 }