Open topic with navigation

# 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:

- `version` is the version number of the application. This is currently unused.
- `app.name` is the application name, which is displayed in the bar at the top of the Media application.
- `app.url` is the URL you are redirected to if you click on the hyperlink in the top bar, specified by `app.name`.

- `search.url` is 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 the `window.encodeURI` JavaScript 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 the `window.encodeURIComponent` JavaScript function. For example:

    `http://mysearchapplication/mywebpage?query={{query | encodeURIComponent}}`

- `player.src` is the URL where the Media Player Chrome plugin is located.

- `mmap.api` is the URL of the MMAP API.

© 2016-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm