Переключение на страницу трансляции при ошибке проигрывания медиапотока/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...»
 
Строка 1: Строка 1:
<div lang="ru" dir="ltr" class="mw-content-ltr">
== '''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.<br>
Для того чтобы корректно настроить данный функционал пользователю необходимо зарегистрироваться или авторизоваться в личном кабинете SmartPlayer.<br>
Next, go to the “Broadcasts” section and select the “Create” category.
Следующим шагом необходимо перейти в раздел «Трансляции» и выбрать категорию «Создать».
[[File:ПОдготовка_трансляции.png|thumb|center| Example of the “Broadcasts” section and “Create” category|800px]]
[[File:ПОдготовка_трансляции.png|thumb|center| Пример отображения раздела «Трансляции» и категории «Создать»|800px]]
Then create two pages with zones and add the required content:
Далее создать две страницы с зонами и вставить нужный контент:
* first page stream;
* первая страница поток;
* second page video content for fallback.
* вторая страница видеоконтент для замещения.
[[File:Подготовленная_трансляция.png|thumb|center| Example of a prepared broadcast |800px]]
[[File:Подготовленная_трансляция.png|thumb|center| Пример отображения подготовленной трансляции |800px]]
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.
Теперь нужно настроить модель событий для первой страницы. Для этого нужно выбрать первую страницу нажатием по верхнему прямоугольнику и перейти в настройки страницы кликнув по иконке.  
[[File:Страница_с_настройкам.png|thumb|center| Example of the icon and the page with settings|800px]]
[[File:Страница_с_настройкам.png|thumb|center| Пример отображения иконки и страницы с настройками|800px]]
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.
Первоначально выбираем нужную страницу в параметре «Следующая страница». В нашем случае это будет «Страница 2» и переходим к настройке модели события.
[[File:Выбор_страницы.png|thumb|center| Example of selecting a page for switching|800px]]
[[File:Выбор_страницы.png|thumb|center| Пример отображения настройки выбора страницы для переключения|800px]]
== '''Event configuration''' ==
== '''Настройка события''' ==
Event configuration starts by clicking the “+” icon in the “Events” row.
Настройка события начнётся по нажатию на иконку «+» в строке «События».
[[File:Иконка_события.png|thumb|center| Example of the icon|800px]]
[[File:Иконка_события.png|thumb|center| Пример отображения иконки|800px]]
Clicking the icon opens a modal window where the following settings must be selected:
По нажатию на иконку открывается модальное окно, в котором необходимо выбрать следующие настройки:
* event client application;
* событие клиентское приложение;
* key active player;
* ключ активный плеер;
* value playback error.
* значение ошибка воспроизведения.
[[File:Настройки_события.png|thumb|center| Example of event settings |800px]]
[[File:Настройки_события.png|thumb|center| Пример отображения настроек для события |800px]]
After setting the parameters, click the “Save” button at the bottom center of the screen and complete the broadcast setup.<br>
После установки настроек нажимать на кнопку «Сохранить» в нижней части экрана по центру и завершить настройку трансляции. <br>
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:
В этом разделе представлена информация, которая ускорит погружение в платформу и улучшит пользовательский опыт:
* [[Подключения и интеграция в SmartPlayer с использованием серверных событий]]
* [[Подключения и интеграция в SmartPlayer с использованием серверных событий]]
* [[Раздел "Устройства"]]
* [[Раздел "Устройства"]]
Строка 41: Строка 40:
* [[Раздел "Трансляции"]]
* [[Раздел "Трансляции"]]
* [[Раздел "Расписание"]]
* [[Раздел "Расписание"]]
== '''Видеоинструкция''' ==
== '''Video instruction''' ==
[https://vkvideo.ru/video-227547238_456239130 Переключение на страницу трансляции при ошибке проигрывания медиапотока]
[https://vkvideo.ru/video-227547238_456239130 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.
[[File:Обсуждение_переключения.png|thumb|center| Пример отображения вкладки "Обсуждения" на wiki-странице |800px]]
[[File:Обсуждение_переключения.png|thumb|center| Example of the “Discussions” tab on the wiki page |800px]]
Найти дополнительную информацию можно на странице [[Как взаимодействовать пользователю с разделом "Обсуждения"]]
Additional information can be found on the page [[Как взаимодействовать пользователю с разделом "Обсуждения"]]
</div>

Текущая версия от 11:34, 21 апреля 2026

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 Как взаимодействовать пользователю с разделом "Обсуждения"