LEADTOOLS Multimedia (Leadtools.Multimedia assembly)

LoadSettingsFromFile Method (RTSPServer)

Show in webframe



0-based index of the source folder whose default compression settings should be set. Use -1 to set the default compression settings for the RTSP server.
The source file containing the compression settings.
Flags indicating which compression settings were saved in the file. For a list of possible values, refer to ConvertSettings.
Sets the default compression settings used for recompressing files whose compression is not compatible with the RTSP Server.
Syntax
'Declaration
 
Public Sub LoadSettingsFromFile( _
   ByVal index As Integer, _
   ByVal sourcefile As String, _
   ByVal flags As Integer _
) 
'Usage
 
Dim instance As RTSPServer
Dim index As Integer
Dim sourcefile As String
Dim flags As Integer
 
instance.LoadSettingsFromFile(index, sourcefile, flags)
public void LoadSettingsFromFile( 
   int index,
   string sourcefile,
   int flags
)
public:
void LoadSettingsFromFile( 
   int index,
   String^ sourcefile,
   int flags
) 

Parameters

index
0-based index of the source folder whose default compression settings should be set. Use -1 to set the default compression settings for the RTSP server.
sourcefile
The source file containing the compression settings.
flags
Flags indicating which compression settings were saved in the file. For a list of possible values, refer to ConvertSettings.
Remarks

The RTSP server will automatically recompress the audio or video stream in a file whose compression is not compatible with the RTSP server. See LEAD RTSP Sink for the list of compressions supported by the RTSP server.

The sourcefile and flags parameters are similar to the ones with same name in ConvertCtrl.LoadSettingsFromFile, except the compression settings for the video and audio compressor are loaded from the file. So, when necessary, the RTSP Server will call LoadSettingsFromFile(sourceFile, flags & (ConvertSettings.AudioCompressors | ConvertSettings.VideoCompressors)) on the convert object doing the recompression.

While the server can recompress files on the fly, it is more efficient to make sure all the files have compatible compression settings to begin with to reduce the server load.

If index is between 0 and SourceCount - 1 (where SourceCount is the number of folders in the list, as indicated by SourceCount), this method sets the compression settings for the source with the index equal to index.

If index is set to -1, this function sets the default compression settings for the RTSP server. All the current folders are set to these compression settings. Also, all future folders added with SetSourceFolder will use the default compression settings.

These are the default compressors currently used:

You can also load the settings from a stream using LoadSettingsFromStream. Note that this method cancels the compression settings set previously for the same index using LoadSettingsFromStream.

Requirements

Target Platforms

See Also

Reference

RTSPServer Class
RTSPServer Members

 

 


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