]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts
Handle network issues in video player (#5138)
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Wed, 28 Sep 2022 09:52:23 +0000 (11:52 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2022 09:52:23 +0000 (11:52 +0200)
commitf2a16d93b476aff16d5353e4d44350298ec7e01c
tree36c43eb3299c4a1137ca38dd1a564701a5a27236
parent43972ee466740e91b16c08fe106551657969e669
Handle network issues in video player (#5138)

* feat(client/player): handle network offline

* feat(client/player): human friendly err msg

* feat(client/player): handle broken resolutions

When an error occurs for a resolution, remove the resolution and try
with another resolution.

* fix(client/player): prevent err handl when offline

* fix(client/player): localize offline text
client/src/assets/player/peertube-player-manager.ts
client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts
client/src/assets/player/shared/peertube/peertube-plugin.ts
client/src/assets/player/shared/resolutions/peertube-resolutions-plugin.ts
client/src/assets/player/shared/settings/resolution-menu-button.ts
client/src/assets/player/shared/settings/resolution-menu-item.ts
client/src/sass/player/index.scss
client/src/sass/player/offline-notification.scss [new file with mode: 0644]
client/src/sass/player/peertube-skin.scss