Trigger events in broadcast

Материал из SmartPlayer
Версия от 14:57, 23 октября 2023; N.Bloshkin (обсуждение | вклад) (Новая страница: «=== '''Event Configuration and Types''' === After adding content to the page, it's necessary to click on the "Page Configuration" icon.. When opening the configuration page, one should move to event creation on the right toolbar. <br> To do this, click on the "+" icon next to the "Event" line and add an event type.<br> thumb|center| Two kinds of parameters for launching a trigger event|300px There are two types of events av...»)

Situation Description

A new feature has been introduced in the SmartPlayer personal cabinet - the creation of trigger events. This functionality broadens the scope of interactions with the platform.

Need for the Feature

This feature allows users to modify the content played on a device using a trigger set in the settings. As soon as the trigger disappears, the event ends, and the original broadcast resumes.

If an "Announcement" is created in the broadcast, it will not be possible to create a trigger event due to potential playback issues.

Operating Principle

Logic of Operation

To create trigger events, one must have specific user rights called "AdminBrandML".
User role for creating a broadcast

If a user plans to create a trigger event, they must:

  • First step - create a broadcast with multiple pages and designated content areas.
  • Then, configure the event operation within the broadcast.
  • Link the created event to transitions to other broadcast pages.
  • First, wait for the activation and completion of triggers for the event.
  • Go back to the beginning and wait for the triggers to activate again.
If a user creates a broadcast with content and doesn't manually set up events, the broadcast will play each page separately, in order.

Creating a Broadcast

Creating a Broadcast

In the personal cabinet, the user needs to find the "Broadcast" section, click on it, and after a pop-up window appears, click on the "Create" line.
After this, the user must select a zone for the broadcast and fill it with content. To be able to work with events in the broadcast, there should be at least two pages.
If there are no events, the broadcast currently defaults to playing by pages, meaning the first page, then the second page, and so on.

The duration of content playback is not adjusted in the event settings but in the playback settings of the broadcast. To adjust the duration, you need to click on the content in the zone and find the "Duration" parameter in the pop-up window. In it, the user sets the desired value.
Location of the Duration option in the content settings.

Event Configuration and Types

After adding content to the page, it's necessary to click on the "Page Configuration" icon.. When opening the configuration page, one should move to event creation on the right toolbar.
To do this, click on the "+" icon next to the "Event" line and add an event type.

Two kinds of parameters for launching a trigger event

There are two types of events available as triggers:

  • RFID tag

It involves two sequentially set parameters: key and value. In the "Key" parameter, a key identifier is selected:

  • By payload
  • By ID

After choosing one of the two identifiers, a value parameter appears.
In the first case, if the data identifier is set "by ID," these are values that can be found in the device description under "RFID device."
In the second case, if the data identifier is set "by payload," it means the encoded textual meaning. Here, the identifier can take any string value.

Determinant of the “By ID” and “By Payload” parameters and their values
  • Face Recognition

This also involves two sequentially set parameters: key and value. In the "Key" parameter, a key identifier is selected. In this case, there's only one - by gender. After choosing the identifier, a value parameter appears. The value has two options - male and female. After all settings, it's essential to click the "Save" button.

Determinant of parameters “By gender” and their meanings
Future versions of the feature plan to add additional triggers.

Choosing a Page to Transition to

The page for the transition is chosen in the event creation menu. This parameter is slightly below and is named "Next Page." Inside this parameter, the user selects which page the broadcast will switch to upon triggering the event. After selecting the page, it's also essential to click the "Save" button

Example of binding an event to a page

Viewing the Display Scheme and Bindings

You can view the event display scheme and binding lines by clicking on a specific icon. Thanks to this scheme, it's easy to understand whether triggers and events are correctly configured.

An example of a diagram and a "Legend" for understanding the diagram.

Дополнительные возможности для применения

Также функционал может взаимодействовать с устройствами, предусматривающими в себе тач решения. Алгоритм действия с тач решением выглядит так:

Расположение привязки действия
  • Первым шагом создаётся трансляция с контентом для проигрывания и контентом для нажатия пользователем. Это могут быть как два разных вида контента, так и один.
  • Далее выбираем контент, к которому хотим привязать "касание" и переходим в настройки контента с помощью клика на нужном пользователю контенте.
  • Нажав на иконку "+" рядом со строкой действия, пользователь открывает настройки.
  • В появившимся окне ему необходимо выбрать действие. В строке "Действие" выставляется "Нажатие по контенту".
  • Следующим шагом появляется еще одна строка "Переход на страницу". В строке выбирает на какую страницу будет осуществлен переход.
  • Нажатие кнопки "Сохранить" и завершение редактирования трансляции.
Пример заполнение строк с действием.

Итоговый результат

Пользователи умеют пользоваться и интегрировать триггерные события в свои трансляции.