Translations:Подключения и интеграция в SmartPlayer c использованием серверных событий/1/en

Материал из SmartPlayer

Situation Description

This page allows potential partners to connect and integrate into the SmartPlayer platform, as well as configure the ability to manage content using external events for broadcasts. By utilizing this functionality, the user can create more interactive and engaging broadcasts tailored to their needs.

Action Algorithm

Integration with the Server Application

Server Application Preparation:

  • Create a personal account on the required server application. When creating the account, set the role to "admin" with video analytics enabled.
  • Manually create a broadcast in the personal account and set up transitions for the necessary content and event values (actions for the events).

Programmatic Part:

  • When implementing the programmatic part, use "socket.io v.2." This solution is available at this link.

Personal Account:

  • Interaction with the personal account occurs via the protocols: http(s) and webSocket. Information about "socket.io v.2" is provided above.

Protocol Information:

  • restApi – used in most cases for authentication and file operations.
  • Socket.io – used by most methods for interacting with the personal account.

Authorization:

  • Information about obtaining the necessary tokens is available at this link.
  • Information on proper configuration for "join" is available at this link.

Fetching a Broadcast:

  • Using a specific event, you can retrieve a list of broadcasts. Information on retrieving the event is available at this link.

After receiving the data, you will need to select the desired event. From this object, take the ID, which will be used in the event described below.
Sending a Response Event:

  • The next step is to send another event, available at this link, with the necessary parameters.
    An event with the correct parameters should switch pages in the broadcast schedule.