From 1772dac236a8f5d5c1708b4025ba648ab633ba56 Mon Sep 17 00:00:00 2001 From: 4gray <4gray@users.noreply.github.com> Date: Sun, 20 Aug 2023 20:55:18 +0200 Subject: [PATCH] refactor: code improvements in video player & channels list component --- .../channel-list-container.component.html | 72 ++++++------ .../channel-list-container.component.scss | 9 ++ .../video-player/video-player.component.html | 104 +++++++++++------- .../video-player/video-player.component.ts | 6 + 4 files changed, 116 insertions(+), 75 deletions(-) diff --git a/src/app/player/components/channel-list-container/channel-list-container.component.html b/src/app/player/components/channel-list-container/channel-list-container.component.html index 2859fa2a6..6cd745e44 100644 --- a/src/app/player/components/channel-list-container/channel-list-container.component.html +++ b/src/app/player/components/channel-list-container/channel-list-container.component.html @@ -6,42 +6,34 @@ {{ 'CHANNELS.ALL_CHANNELS' | translate }} - - - - - +
+ +
- - - - - + @@ -67,7 +59,11 @@ 0; else noFavorites"> - No channels
+ *ngIf="channels$ | async as channels; else noChannels" + [channels]="channels" + /> + No channels
+
- + - - + + + + + + + +
+ +

+ The channel is played in a separate window in the MPV + player. (Installation instructions) +

+
+ + +
- - - - - - -
- -

The channel is played in a separate window in the MPV player. (Installation instructions)

-
-
- - -
diff --git a/src/app/player/components/video-player/video-player.component.ts b/src/app/player/components/video-player/video-player.component.ts index 1447f3df6..cd8b14369 100644 --- a/src/app/player/components/video-player/video-player.component.ts +++ b/src/app/player/components/video-player/video-player.component.ts @@ -142,6 +142,12 @@ export class VideoPlayerComponent implements OnInit, OnDestroy { } : {} ); + + this.store.dispatch( + PlaylistActions.setChannels({ + channels: playlist.playlist.items, + }) + ); return playlist.playlist.items; }) );