Enhance AirPage and ChannelPlayer components: add error handling for unavailable streams, implement retry functionality, and update translations for offline states. Refactor ChannelPlayer to accept an onUnavailable callback for better error management.

This commit is contained in:
Leonid Pershin
2026-07-24 16:27:22 +03:00
parent a2685fb602
commit 5853009d71
3 changed files with 62 additions and 28 deletions
+6 -4
View File
@@ -63,8 +63,9 @@ const resources = {
ad: 'Реклама',
episode: 'Серия',
noChannels: 'Пока нет доступных каналов. Загляните позже.',
playbackError: 'Не удалось воспроизвести поток',
unsupported: 'Браузер не поддерживает воспроизведение HLS',
offline: 'Канал сейчас не в эфире',
offlineHint: 'Нет расписания или контента. Загляните позже.',
retry: 'Повторить',
},
settings: {
title: 'Настройки аккаунта',
@@ -230,8 +231,9 @@ const resources = {
ad: 'Ad',
episode: 'Episode',
noChannels: 'No channels available yet. Check back later.',
playbackError: 'Failed to play the stream',
unsupported: 'This browser cannot play HLS',
offline: 'This channel is off the air',
offlineHint: 'No schedule or content yet. Check back later.',
retry: 'Retry',
},
settings: {
title: 'Account settings',