Creating a Media Server Using the ltmsServer Object
         
         
         Perform the following steps to create a media server using the Media Streaming Server object:  
- 
Set up a folder containing the source media files.
 
- 
Make sure you have applied your license to the library. See Setting a Runtime License for details.
 
- 
Create an instance of the Server Object. All properties are set to default values.
 
- 
(Optional) Set up logging by providing your implementation of an ILogHandler interface.
 
- 
(Optional) Set up the server configuration by calling ImportConfigFile ImportConfigString, or setting the Server properties individually.
 
- 
Call Start to run the server.
 
- 
(Optional) Add Live Server sources. A new live source can be added by using the following steps for each:
- Get the list of current live sources in the server by calling GetLiveStream
 
- Create a new live stream through CreateLiveStream
 
- Get the device configuration for the newly created stream by calling DeviceConfig
 
- Lock the available devices to prevent modifications while setting up the new stream by calling LockDevices
 
- Set the server URL to access the stream via Path
 
- Get the list of audio or video devices through AudioDevices and VideoDevices respectively and set the preferred input.
 
- (Optional) Set additional properties such as the audio type, video size, video frame rate, or whether to use hardware compression. For more information, see LiveStream class.
 
- Add the new configuration to the existing list of streams through AddLiveStream
 
- Update the server configuration with the list of live streams by calling SetLiveStreams
 
- Release the available devices by calling UnlockDevices
 
 
- 
Stream video from the server using browsers or media players.
 
- 
Call Stop when finished.