Translations:Инструкция к виджету трансляции событий (Event Broadcast)/3/en

Материал из SmartPlayer

Configuring Buttons for Broadcast Events

Clicking the Add Button or Add Button Group buttons changes the widget interface and displays additional settings specific to each option.

Add Button

After clicking the Add Button button, the widget settings interface changes.

Example of the interface after clicking Add Button

To configure the added button, the user must specify the following parameters:

  • Button Name — specify the button label;
  • Broadcast Identifier — specify the ID of the broadcast associated with the button. The ID can be copied from the browser address bar while viewing an existing broadcast;
Example of a broadcast ID
  • Event Name — a fixed parameter. By default, the event name is label;
  • Event Value — specify the event value configured in the broadcast settings;
  • Button Image — after clicking the Select Image button, the user must select an image for the button from the SmartPlayer personal account. It is recommended to upload the image in advance.
Example of button settings

Add Button Group

After clicking the Add Button Group button, the widget settings interface changes.

Example of the interface after clicking Add Button Group

To configure the newly added button group, the user must specify the following parameters:

  • Group Name — specify the group name;
  • Button Image — after clicking the Select Image button, the user must select an image from the SmartPlayer personal account. It is recommended to upload the image in advance;
  • Add Button — adds the button settings described in the previous section. These settings must be configured. The newly added button will become part of the group.
Example of button group settings

Completing the Widget Configuration

After configuring the widget, the user must click the Apply Settings button in the lower-right corner of the screen.

Example of the Apply Settings button

The widget will then expand to full screen, and the user must click the Save button located at the bottom center of the screen.

Example of the Save button

Importing and Exporting Settings

While working with the widget settings, the user can upload previously saved settings or download the current widget configuration. Each action is performed using a separate icon in the widget interface. These icons are located at the bottom center of the widget.

Example of the icons used for importing and exporting widget settings

Server Logic

When configuring the widget, buttons, or button groups, the user defines the parameters that the SmartPlayer server application responds to. The SmartPlayer server application responds to the following parameters:

  • broadcast identifier;
  • event name;
  • event value.
Example of the parameters used for server interaction
Please note: the user must configure the event using the following path: Add Event in the broadcast or in the event list → select the Server Application event → Key by PayloadValue (the numeric event value).

When the widget is configured correctly, every touch interaction will cause the server application to perform the assigned action, such as switching to another content page.

To configure this correctly, review the documentation listed in the section below. Pay particular attention to the documentation on server events.