BrightSign players support the MPCDI specification for warping and edge blending. This page outlines how to display media—including images, video, and HTML—using MPCDI. Note that some knowledge of BrightScript is required to develop MPCDI applications on BrightSign players.

note

 The API described below requires firmware version 7.0 or later.

 The API described below requires firmware version 7.0 or later.

Support Overview

Player Models, MPCDI Levels, and MPCDI Version

Series 4 (XTx44, XDx34, HDx24) and Series 3 (XTx43, XDx33, HDx23, HO523) players support all levels of the MPCDI 2D Media profile.

The 4Kx42 players also support MPCDI, but at Level 1 and Level 2 only. We recommend Series 3 or 4 players for optimal rendering speeds.

MPCDI Version 1a is implemented on Series 3 and 4 players. It’s not supported on Series 5 players.

Media Types

MPCDI is supported with graphics objects such as roImageWidget, roHtmlWidget, and roTextWidget. It does not support the roVideoPlayer object; to apply MPCDI to a video, display the video as part of an HTML page.

BrightScript API for MPCDI

The BrightScript API is designed such that information corresponding to a particular region must be extracted from the .mpcdi file and then passed to the roVideoMode.SetMpcdi() method. Once the configuration information for a region is passed into the player, MPCDI is enabled, and media displayed in HTML, image, and text widgets will be warped according to the configuration.

Since the MPCDI configuration file might contain more than one region, the autorun script on the player will need to select a particular region from the .mpcdi file and parse the data for that region before using it to configure the player. Note that each player can display one MPCDI region only.

If you wish to bypass writing a script to parse MPCDI data and configure the player, you can use the template script attached to this page (see the MPCDI Template Script section below for more details).

Enabling MPCDI

To enable MPCDI, call the roVideoMode.SetMpcdi() method:

SetMpcdi(parameters As roAssociativeArray) As Boolean

Enables MPCDI using an associative array of parameters. This method returns true if MPCDI has been enabled and false if it could not be enabled. The associative array must contain the following parameters:

Disabling MPCDI

To disable MPCDI, pass Invalid to the SetMpcdi() method.

Example
vm = CreateObject("roVideoMode")
mpcdi_params = invalid
vm.SetMpcdi(mpcdi_params)

MPCDI Template Script

The .brs script attached to this page will extract all relevant data from an .mpcdi file and use it to configure MPCDI on the player. It then displays up to three HTML widgets: One widget can be used to display a video or image as a simple HTML page, while the other two display HTML pages from the web.

The Main() function accepts an array of parameters:

[mpcdi_enabled, widget_count, filename.mpcdi, mode, ip_media_filename]

To modify the HTML pages displayed by the second and third widgets, change the SetUrl() strings in the ShowUserWidgets() function.

Setting MPCDI Regions

If you are using the template script attached to this page, you will need to assign each player to an MPCDI region before running the script. This is done by writing the region assignment to the player registry. The template script will retrieve the value from the registry and use it to extract the correct region data from the .mpcdi file.

You can write region assignments to the registry using the BrightSign Shell, or you can use BrightScript.

BrightSign Shell

Perform the following steps on each BrightSign player that is part of the MPCDI display:

  1. Connect the player to a PC using a serial cable or Telnet/SSH.

  2. Power off the player and remove the microSD card or other storage.

  3. Power on the player.

  4. Wait until the BrightSign splash screen appears on the display.

  5. Depress the SVC button on the player. This will result in entry into the BrightSign> shell.

  6. Type "registry write brightscript mpcdi_region [region id]", where [region id] refers to the id attribute in the mpcdi.xml file associated with the region you wish to assign the player. Press Enter when finished.

  7. Type "reboot" and press Enter.

If you later need to retrieve the region ID stored in the player registry, you can enter the following command into the shell: "registry read brightscript mpcdi_region"

BrightScript

Include the following in your autorun, plugin, or standalone script:

reg = CreateObject("roRegistrySection", "brightscript")
reg.write("mpcdi_region","region id")

The "region id" refers to the id attribute in the mpcdi.xml file associated with the region you wish to assign the player. If this code is part of an autorun, you will need to develop a mechanism to differentiate among players and assign the correct region ID automatically.

You will also need to reboot the player at some point (for example, by calling RebootSystem()) before displaying MPCDI so that the registry write goes into effect.

If you later need to retrieve the region ID stored in the player registry, you can call the roRegistrySection.Read() method.