Translations:Переключение на страницу трансляции при ошибке проигрывания медиапотока/1/en

Материал из SmartPlayer

Description of the Situation

The improved events functionality now continues playback of the broadcast grid (when configured correctly), even if the current stream does not stop. This functionality is configured within a broadcast and helps avoid situations where a broadcast plays without content.

Usage Scenario

This case considers a situation where a user has a broadcast with two pages for playback. The first page continuously plays a stream, while the second page is filled with content in case the stream playback stops.

Logic of Operation

If an error occurs during media stream playback, the player switches to the second page. On this page, a list of videos is continuously played until one of the following restarts occurs:

  • broadcast manually;
  • application;
  • device;
  • broadcast or schedule.

Preliminary Setup

It is recommended that the user prepares content in advance in the personal account for the second page (which will fill the broadcast in case of stream issues). Then create a broadcast according to the previously described logic: the first page — stream, the second page — backup content. It is also necessary to configure events (described below) and set a permanent schedule.

Algorithm of Actions

To correctly configure this functionality, the user must register or log in to the SmartPlayer personal account.
Next, go to the “Broadcasts” section and select the “Create” category.

Example of the “Broadcasts” section and “Create” category

Then create two pages with zones and add the required content:

  • first page — stream;
  • second page — video content for fallback.
Example of a prepared broadcast

Now configure the event model for the first page. To do this, select the first page by clicking on the top rectangle and go to the page settings by clicking the icon.

Example of the icon and the page with settings

First, select the required page in the “Next page” parameter. In this case, it will be “Page 2”, then proceed to configure the event model.

Example of selecting a page for switching

Event configuration

Event configuration starts by clicking the “+” icon in the “Events” row.

Example of the icon

Clicking the icon opens a modal window where the following settings must be selected:

  • event — client application;
  • key — active player;
  • value — playback error.
Example of event settings

After setting the parameters, click the “Save” button at the bottom center of the screen and complete the broadcast setup.
The final step is to set a schedule and select the required device for playback.

Useful Information

This section provides information that will help accelerate onboarding and improve the user experience:

Video instruction

Switching to a broadcast page when a media stream playback error occurs

Additional Information

If this article does not help you use the functionality as intended or if you still have questions after reading it, they can be asked in the “Discussions” section at the top of the page.

Example of the “Discussions” tab on the wiki page

Additional information can be found on the page Как взаимодействовать пользователю с разделом "Обсуждения"