public bool SSFEnable { get; set; } Public Property SSFEnable As Boolean
true if SSF protocol is enabled; otherwise, false.
The default value is true.
If the method fails, an error is raised. For more information, refer to the Error Codes.
using Leadtools;using Leadtools.MediaStreaming;public Server _server = null;public bool _result = false;public void PrintNetworkPropertiesExample(){try{string strNetworkProperties = "";// create an instance of the server object_server = new Leadtools.MediaStreaming.Server();// retrieve a copy of the Network PropertiesNetworkProperties props = _server.GetNetworkProperties();// print the Network Properties to a stringstrNetworkProperties += "--- Network Properties ---\n\n";strNetworkProperties += string.Format("IPAddress = {0}\n", props.IPAddress);strNetworkProperties += string.Format("ActualIPAddress = {0}\n", props.ActualIPAddress);strNetworkProperties += string.Format("Port = {0}\n", props.Port.ToString());strNetworkProperties += string.Format("RTPPort = {0}\n", props.RTPPort.ToString());if (props.OpenWindowsFirewall)strNetworkProperties += "OpenWindowsFirewall = true\n";elsestrNetworkProperties += "OpenWindowsFirewall = false\n";switch (props.Authentication){case Authentication.Basic:strNetworkProperties += "Authentication = Basic\n";break;case Authentication.Digest:strNetworkProperties += "Authentication = Digest\n";break;default:strNetworkProperties += "Authentication = None\n";break;}strNetworkProperties += string.Format("UserName = \"{0}\"\n", props.UserName);strNetworkProperties += string.Format("Password = \"{0}\"\n", props.Password);strNetworkProperties += string.Format("Realm = \"{0}\"\n", props.Realm);strNetworkProperties += string.Format("IdleTimeOut = {0}\n", props.IdleTimeOut.ToString());strNetworkProperties += string.Format("RTCPTimeOut = {0}\n", props.RTCPTimeOut.ToString());strNetworkProperties += string.Format("ServerName = \"{0}\"\n", props.ServerName);if (props.RTSPEnable)strNetworkProperties += "RTSPEnable = true\n";elsestrNetworkProperties += "RTSPEnable = false\n";if (props.RTMPEnable)strNetworkProperties += "RTMPEnable = true\n";elsestrNetworkProperties += "RTMPEnable = false\n";if (props.HDSEnable)strNetworkProperties += "HDSEnable = true\n";elsestrNetworkProperties += "HDSEnable = false\n";if (props.SSFEnable)strNetworkProperties += "SSFEnable = true\n";elsestrNetworkProperties += "SSFEnable = false\n";if (props.DASHEnable)strNetworkProperties += "DASHEnable = true\n";elsestrNetworkProperties += "DASHEnable = false\n";strNetworkProperties += string.Format("MediaFolder = \"{0}\"\n", props.MediaFolder);strNetworkProperties += string.Format("ResolvedMediaFolder = \"{0}\"\n", props.ResolvedMediaFolder);strNetworkProperties += string.Format("SSLPort = \"{0}\"\n", props.SSLPort.ToString());byte[] hash = (byte[])props.SSLCertificateHash;string strhash = "";if (hash.Length == 0)strhash = "<empty>";for (int n = 0; n < hash.Length; n++){strhash += hash[n].ToString();}strNetworkProperties += string.Format("SSLCertificateHash = \"{0}\"\n", strhash);strNetworkProperties += string.Format("SSLCertificateStore = \"{0}\"\n", props.SSLCertificateStore);// display a message contains the Network Properties stringMessageBox.Show(strNetworkProperties, "LEADTOOLS Media Streaming Examples", MessageBoxButtons.OK, MessageBoxIcon.Information);_result = true;}catch (Exception){_result = false;}}
Imports LeadtoolsImports Leadtools.MediaStreamingPublic _server As Server = NothingPublic _result As Boolean = FalsePublic Sub PrintNetworkPropertiesExample()TryDim strNetworkProperties As String = ""' create an instance of the server object_server = New Leadtools.MediaStreaming.Server()' retrieve a copy of the Network PropertiesDim props As NetworkProperties = _server.GetNetworkProperties()' print the Network Properties to a stringstrNetworkProperties &= "--- Network Properties ---" & Constants.vbLf + Constants.vbLfstrNetworkProperties &= String.Format("IPAddress = {0}" & Constants.vbLf, props.IPAddress)strNetworkProperties &= String.Format("ActualIPAddress = {0}" & Constants.vbLf, props.ActualIPAddress)strNetworkProperties &= String.Format("Port = {0}" & Constants.vbLf, props.Port.ToString())strNetworkProperties &= String.Format("RTPPort = {0}" & Constants.vbLf, props.RTPPort.ToString())If props.OpenWindowsFirewall ThenstrNetworkProperties &= "OpenWindowsFirewall = true" & Constants.vbLfElsestrNetworkProperties &= "OpenWindowsFirewall = false" & Constants.vbLfEnd IfSelect Case props.AuthenticationCase Authentication.BasicstrNetworkProperties &= "Authentication = Basic" & Constants.vbLfCase Authentication.DigeststrNetworkProperties &= "Authentication = Digest" & Constants.vbLfCase ElsestrNetworkProperties &= "Authentication = None" & Constants.vbLfEnd SelectstrNetworkProperties &= String.Format("UserName = ""{0}""" & Constants.vbLf, props.UserName)strNetworkProperties &= String.Format("Password = ""{0}""" & Constants.vbLf, props.Password)strNetworkProperties &= String.Format("Realm = ""{0}""" & Constants.vbLf, props.Realm)strNetworkProperties &= String.Format("IdleTimeOut = {0}" & Constants.vbLf, props.IdleTimeOut.ToString())strNetworkProperties &= String.Format("RTCPTimeOut = {0}" & Constants.vbLf, props.RTCPTimeOut.ToString())strNetworkProperties &= String.Format("ServerName = ""{0}""" & Constants.vbLf, props.ServerName)If props.RTSPEnable ThenstrNetworkProperties &= "RTSPEnable = true" & Constants.vbLfElsestrNetworkProperties &= "RTSPEnable = false" & Constants.vbLfEnd IfIf props.RTMPEnable ThenstrNetworkProperties &= "RTMPEnable = true" & Constants.vbLfElsestrNetworkProperties &= "RTMPEnable = false" & Constants.vbLfEnd IfIf props.HDSEnable ThenstrNetworkProperties &= "HDSEnable = true" & Constants.vbLfElsestrNetworkProperties &= "HDSEnable = false" & Constants.vbLfEnd IfIf props.SSFEnable ThenstrNetworkProperties &= "SSFEnable = true" & Constants.vbLfElsestrNetworkProperties &= "SSFEnable = false" & Constants.vbLfEnd IfIf props.DASHEnable ThenstrNetworkProperties &= "DASHEnable = true" & Constants.vbLfElsestrNetworkProperties &= "DASHEnable = false" & Constants.vbLfEnd IfstrNetworkProperties &= String.Format("MediaFolder = ""{0}""" & Constants.vbLf, props.MediaFolder)strNetworkProperties &= String.Format("ResolvedMediaFolder = ""{0}""" & Constants.vbLf, props.ResolvedMediaFolder)strNetworkProperties += String.Format("SSLPort = ""{0}""" & Constants.vbLf, props.SSLPort.ToString())Dim hash As Byte() = CType(props.SSLCertificateHash, Byte())Dim strhash As String = ""If hash.Length = 0 Thenstrhash = "<empty>"End IfDim n As Integer = 0Do While n < hash.Lengthstrhash &= hash(n).ToString()n += 1LoopstrNetworkProperties += String.Format("SSLCertificateHash = ""{0}""" & Constants.vbLf, strhash)strNetworkProperties += String.Format("SSLCertificateStore = ""{0}""" & Constants.vbLf, props.SSLCertificateStore)' display a message contains the Network Properties stringMessageBox.Show(strNetworkProperties, "LEADTOOLS Media Streaming Examples", MessageBoxButtons.OK, MessageBoxIcon.Information)_result = TrueCatch e1 As Exception_result = FalseEnd TryEnd Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
