Viz Mosart Media Router Guide
Version 3.8.1 | Published January 22, 2018 ©
Service Configuration Files
The Media Router service has several configuration files which are outlined below:
MMediaRouterService.exe.config
The config file is located in <Program Files>\Mosart Medialab\Mosart Media Router service (unless a different folder was chosen at install). There are some settings in the userSettings section (usually near the bottom of the file):
Name |
Description |
Verbose |
Default = False |
DBConnectionString |
Default = Type=File;Filename=C:\Channeltemplates\MediaRouterDB.xml |
ConfigurationFile |
The name of the main configuration file.Default = MediaRouterServiceConfig.xml |
HeartbeatInterval |
Default = 00:01:00 |
Authentication |
Default = True |
QueryTimeOut |
Default = 1000 |
RESTfulWebServiceBase |
The base URL of the Restful WS used by the MR Admin web application (see below).Default =http://localhost:8094/MosartMediaRouter/RESTfulWebService/The value should end in /If the MR Service and MR Admin web application are to be run on different PCs, this setting MUST be changed by replacing ’localhost’ by the name of the PC running the service. |
MediaRouterServiceConfig.xml
This file (with the name given by the ConfigurationFile setting above) is located in C:\Channeltemplates. It has several sections:
-
Services: This is a listing of the services offered. For the Media Router Administrator web application to work properly, the list MUST include
<Service type="RESTfulMediaRouterWebService" /> -
Database: The type of database (XML file or SQL) used. For the Media Router Administrator web application to work properly, the element MUST be of the form
<Database type="RouterDbSql" name="RouterDbSql" configuration="MediaRouterDbSql.xml"/>
The file name value of the configuration attribute may be different, though
MediaRouterDbSql.xml
This file (with the name given by the configuration attribute above) is located in C:\Channeltemplates. The root element should be MediaRouterDbSqlConfig with two sub-elements:
-
ProviderName. This is the name of the database provider. At the time of writing, one option only is supported:
-
MySql.Data.MySqlClient
-
-
ConnectionString. This is the database connection string. The format is provider specific. However, the format for the MySql.Data.MySqlClient provider is as follows:
server=<hostname>;User Id=<user>;Password=<password>;database=<database>