LEADTOOLS Multimedia (Leadtools.Multimedia assembly)

RTSPServer Class

Show in webframe
Example 



Members 
Provides high level functions to implement a RTSP Server.
Object Model
Syntax
'Declaration
 
Public Class RTSPServer 
   Implements System.IDisposable 
'Usage
 
Dim instance As RTSPServer
public class RTSPServer : System.IDisposable  
public ref class RTSPServer : public System.IDisposable  
Remarks

The RTSPServer object provides high level functions for using the LEAD RTSP Sink filter to implement a RTSP server.

The RTSPServer class keeps an internal list of folders containing the media files to be streamed. The files can be in more than one root source folders. Additionally, any files present in subfolders of the root folder are accessible. The source folders are added with SetSourceFolder.

DVR buffers are treated as live streams while they are being updated. When a user attempts to stream one of these live streams, the server will stream from the live position with a latency set using SetLiveLatency.

The server can be protected by limiting access to a certain users using SetSecurity. The security settings can be the same for all folders or each folder can have different access settings.

Files with compression settings that don't match the compressions supported by the RTSP Sink are dynamically recompressed. Use LoadSettingsFromFile and LoadSettingsFromStream to override the compression settings used by the encoders.

Once the settings have been set, specify the IP address on which the server will listen using TargetAddress.

When everything is set, start the server and specify on which port to listen using StartServer.

Example
Copy Code  
Imports Leadtools
Imports Leadtools.Multimedia
Imports LeadtoolsMultimediaExamples.Fixtures

Dim _server As RTSPServer = Nothing
Public Sub StartServer()
   ' create the server instance
   _server = New RTSPServer()
   ' specify c:\MyFiles as the source folder
   _server.SetSourceFolder(0, "c:\MyFiles")
   ' will listen on 127.0.0.1
   _server.TargetAddress = "127.0.0.1"
   ' start listening on port 554
   _server.StartServer(554)
   ' set the latency
   _server.SetLiveLatency(-1, 0.7)
End Sub
Public Sub StopServer()
   _server.StopServer(554)
   _server.Dispose()
   _server = Nothing
End Sub
using Leadtools;
using Leadtools.Multimedia;
using LeadtoolsMultimediaExamples.Fixtures;

RTSPServer _server = null;
public void StartServer()
{
   // create the server instance
   _server = new RTSPServer();
   // specify c:\MyFiles as the source folder
   _server.SetSourceFolder(0, @"c:\MyFiles");
   // will listen on 127.0.0.1
   _server.TargetAddress = "127.0.0.1";
   // start listening on port 554
   _server.StartServer(554);
   // set the latency
   _server.SetLiveLatency(-1, 0.7);
}
public void StopServer()
{
   _server.StopServer(554);
   _server.Dispose();
   _server = null;
}
Requirements

Target Platforms

See Also

Reference

RTSPServer Members
Leadtools.Multimedia Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Multimedia requires a Multimedia or Multimedia Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features