Configure Media Application
You can configure the Media application by using a custom config.json file.
Set the com.hpe.media.api.config.path system property to an absolute path to the location of your config.json file. For example, you can do this by using JBoss CLI:
./<JBoss dir>/jboss-cli.sh -c "/system-property=com.hpe.media.api.config.path:add(value=/path/to/your.json)"
If you use JBoss CLI to set a system property, you do not need to restart JBoss.
NOTE: The contents of the config.json file must match the JSON specification. The JSON specification does not allow comments, and strings must be enclosed with double quotation marks, not single quotation marks.
The JSON included can contain the following properties (not all properties need to exist). The following example code shows the default values if they are not set:
{
"version": "11.3.0",
"app": {
"name": "IDOL Find",
"url": "http://demo.havendemo.com/bifhi/"
},
"search": {
"url": "http://demo.havendemo.com/bifhi/public/search/query/{{query | encodeURI}}"
},
"player": {
"src": "../player/plugins/mediaElement.nmf"
},
"mmap": {
"api": "../vms/api/v1"
}
}
where:
versionis the version number of the application. This is currently unused.app.nameis the application name, which is displayed in the bar at the top of the Media application.app.urlis the URL you are redirected to if you click on the hyperlink in the top bar, specified byapp.name.-
search.urlis the URL you are redirected to when you press Enter in the search box at the top of the Media application.-
{{query |encodeURI}}denotes the point at which the query that you entered will be inserted into the URL. The query will be URI-escaped using thewindow.encodeURIJavaScript function. -
You can use
{{query |encodeURIComponent}}if the query that you entered needs to be inserted as a URL parameter. The query will be URI-escaped using thewindow.encodeURIComponentJavaScript function. For example:http://mysearchapplication/mywebpage?query={{query | encodeURIComponent}}
-
-
player.srcis the URL where the Media Player Chrome plugin is located. -
mmap.apiis the URL of the MMAP API.