RTCPTimeOut财产

总结
获取或设置服务器的服务器超时。
语法
c#
VB
c++
公共intRTCPTimeOut {得到;;}
公共财产RTCPTimeOut作为整数
公共:财产intRTCPTimeOut {intget ();无效集(int);}

属性值

一个值代表的最长时间,以毫秒为单位,等待服务器的服务器连接。

讲话

的默认值是30000。

如果方法失败,一个错误。有关更多信息,请参考错误代码

例子
c#
VB
使用Leadtools;使用Leadtools.MediaStreaming;公共服务器_server =;公共bool_result =;公共无效PrintNetworkPropertiesExample (){试一试{字符串strNetworkProperties =”“;/ /创建一个服务器对象的实例_server =Leadtools.MediaStreaming.Server ();/ /检索网络属性的一个副本NetworkProperties道具= _server.GetNetworkProperties ();/ /打印网络属性字符串strNetworkProperties + =”——网络属性——\ n \ n”;strNetworkProperties + =字符串.Format (“IPAddress = {0} \ n”,props.IPAddress);strNetworkProperties + =字符串.Format (“ActualIPAddress = {0} \ n”,props.ActualIPAddress);strNetworkProperties + =字符串.Format (“港口= {0}\ n”props.Port.ToString ());strNetworkProperties + =字符串.Format (“RTPPort = {0} \ n”props.RTPPort.ToString ());如果(props.OpenWindowsFirewall)strNetworkProperties + =“OpenWindowsFirewall = true \ n”;其他的strNetworkProperties + =“OpenWindowsFirewall = false \ n”;开关(props.Authentication){情况下Authentication.Basic:strNetworkProperties + =“身份验证=基本\ n”;打破;情况下Authentication.Digest:strNetworkProperties + =“身份验证=消化\ n”;打破;默认的:strNetworkProperties + =“身份验证=没有\ n”;打破;}strNetworkProperties + =字符串.Format (“用户名= \”{0}\“\ n”,props.UserName);strNetworkProperties + =字符串.Format (“密码= \”{0}\“\ n”,props.Password);strNetworkProperties + =字符串.Format (“领域= \”{0}\“\ n”,props.Realm);strNetworkProperties + =字符串.Format (“IdleTimeOut = {0} \ n”props.IdleTimeOut.ToString ());strNetworkProperties + =字符串.Format (“RTCPTimeOut = {0} \ n”props.RTCPTimeOut.ToString ());strNetworkProperties + =字符串.Format (“ServerName = \”{0} \“\ n”,props.ServerName);如果(props.RTSPEnable)strNetworkProperties + =“RTSPEnable = true \ n”;其他的strNetworkProperties + =“RTSPEnable = false \ n”;如果(props.RTMPEnable)strNetworkProperties + =“RTMPEnable = true \ n”;其他的strNetworkProperties + =“RTMPEnable = false \ n”;如果(props.HDSEnable)strNetworkProperties + =“HDSEnable = true \ n”;其他的strNetworkProperties + =“HDSEnable = false \ n”;如果(props.SSFEnable)strNetworkProperties + =“SSFEnable = true \ n”;其他的strNetworkProperties + =“SSFEnable = false \ n”;如果(props.DASHEnable)strNetworkProperties + =“DASHEnable = true \ n”;其他的strNetworkProperties + =“DASHEnable = false \ n”;strNetworkProperties + =字符串.Format (“MediaFolder = \”{0} \“\ n”,props.MediaFolder);strNetworkProperties + =字符串.Format (“ResolvedMediaFolder = \”{0} \“\ n”,props.ResolvedMediaFolder);strNetworkProperties + =字符串.Format (“SSLPort = \”{0} \“\ n”props.SSLPort.ToString ());字节[]散列= (字节[])props.SSLCertificateHash;字符串strhash =”“;如果(散列。长度= = 0)strhash =<空>”;(intn = 0;n < hash.Length;n + +){哈希[n] .ToString strhash + = ();}strNetworkProperties + =字符串.Format (“SSLCertificateHash = \”{0} \“\ n”,strhash);strNetworkProperties + =字符串.Format (“SSLCertificateStore = \”{0} \“\ n”,props.SSLCertificateStore);/ /显示一个消息包含网络属性字符串MessageBox.Show (strNetworkProperties“LEADTOOLS流媒体的例子”,MessageBoxButtons。好的,MessageBoxIcon.Information);_result =真正的;}(异常){_result =;}}
进口Leadtools进口Leadtools.MediaStreaming公共_server作为服务器=没有什么公共_result作为布尔=公共PrintNetworkPropertiesExample ()试一试昏暗的strNetworkProperties作为字符串=”““创建服务器对象的一个实例_server =Leadtools.MediaStreaming.Server ()“检索网络属性的一个副本昏暗的道具作为NetworkProperties = _server.GetNetworkProperties ()打印网络属性字符串strNetworkProperties & =“网络属性- - - - - - - - - - - -”& Constants.vbLf+ Constants.vbLfstrNetworkProperties & =字符串.Format (“IPAddress = {0}”& Constants.vbLf, props.IPAddress)strNetworkProperties & =字符串.Format (“ActualIPAddress = {0}”& Constants.vbLf, props.ActualIPAddress)strNetworkProperties & =字符串.Format (“港口= {0}”& Constants.vbLf, props.Port.ToString())strNetworkProperties & =字符串.Format (“RTPPort = {0}”& Constants.vbLf, props.RTPPort.ToString())如果props.OpenWindowsFirewall然后strNetworkProperties & =“OpenWindowsFirewall = true”& Constants.vbLf其他的strNetworkProperties & =“OpenWindowsFirewall = false”& Constants.vbLf结束如果选择情况下props.Authentication情况下Authentication.BasicstrNetworkProperties & =“身份验证=基本”& Constants.vbLf情况下Authentication.DigeststrNetworkProperties & =“身份验证=消化”& Constants.vbLf情况下其他的strNetworkProperties & =“身份验证=没有”& Constants.vbLf结束选择strNetworkProperties & =字符串.Format ("用户名= "“{0}”“”& Constants.vbLf, props.UserName)strNetworkProperties & =字符串.Format (“{0}”“密码=”& Constants.vbLf, props.Password)strNetworkProperties & =字符串.Format (“领域=”“{0}”“& Constants.vbLf, props.Realm)strNetworkProperties & =字符串.Format (“IdleTimeOut = {0}”& Constants.vbLf, props.IdleTimeOut.ToString())strNetworkProperties & =字符串.Format (“RTCPTimeOut = {0}”& Constants.vbLf, props.RTCPTimeOut.ToString())strNetworkProperties & =字符串.Format (“{0}”“ServerName =”& Constants.vbLf, props.ServerName)如果props.RTSPEnable然后strNetworkProperties & =“RTSPEnable = true”& Constants.vbLf其他的strNetworkProperties & =“RTSPEnable = false”& Constants.vbLf结束如果如果props.RTMPEnable然后strNetworkProperties & =“RTMPEnable = true”& Constants.vbLf其他的strNetworkProperties & =“RTMPEnable = false”& Constants.vbLf结束如果如果props.HDSEnable然后strNetworkProperties & =“HDSEnable = true”& Constants.vbLf其他的strNetworkProperties & =“HDSEnable = false”& Constants.vbLf结束如果如果props.SSFEnable然后strNetworkProperties & =“SSFEnable = true”& Constants.vbLf其他的strNetworkProperties & =“SSFEnable = false”& Constants.vbLf结束如果如果props.DASHEnable然后strNetworkProperties & =“DASHEnable = true”& Constants.vbLf其他的strNetworkProperties & =“DASHEnable = false”& Constants.vbLf结束如果strNetworkProperties & =字符串.Format (“{0}”“MediaFolder =”& Constants.vbLf, props.MediaFolder)strNetworkProperties & =字符串.Format (“{0}”“ResolvedMediaFolder =”& Constants.vbLf, props.ResolvedMediaFolder)strNetworkProperties + =字符串.Format (“{0}”“SSLPort =”& Constants.vbLf, props.SSLPort.ToString())昏暗的哈希作为字节()=CType(props.SSLCertificateHash字节())昏暗的strhash作为字符串=”“如果散列。长度= 0然后strhash =<空>”结束如果昏暗的n作为整数= 0n < hash.Length哈希(n) .ToString strhash & = ()n + = 1循环strNetworkProperties + =字符串.Format (“{0}”“SSLCertificateHash =”& Constants.vbLf, strhash)strNetworkProperties + =字符串.Format (“{0}”“SSLCertificateStore =”& Constants.vbLf, props.SSLCertificateStore)显示一条消息包含网络属性字符串MessageBox.Show (strNetworkProperties“LEADTOOLS流媒体的例子”,MessageBoxButtons。好的,MessageBoxIcon.Information)_result =真正的e1作为异常_result =结束试一试结束
需求

目标平台

Leadtools.MediaStreaming作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。