From 3bc68dfd6183078fb56b53e24e74f889c85c4ae0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 09:09:36 +0100 Subject: Fix audio sync after saving replay hls.js seems to not correctly handle audio gaps with fragmented mp4 (but can with a ts playlist) --- .../shared/shared-video-miniature/video-actions-dropdown.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts index 18b4a2f3c..321f7b09f 100644 --- a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts @@ -93,7 +93,7 @@ export class VideoActionsDropdownComponent implements OnChanges { ngOnChanges () { if (this.loaded) { this.loaded = false - this.playlistAdd.reload() + if (this.playlistAdd) this.playlistAdd.reload() } this.buildActions() @@ -277,7 +277,7 @@ export class VideoActionsDropdownComponent implements OnChanges { { label: $localize`Display live information`, handler: ({ video }) => this.showLiveInfoModal(video), - isDisplayed: () => this.isVideoLiveInfoAvailable(), + isDisplayed: () => this.displayOptions.liveInfo && this.isVideoLiveInfoAvailable(), iconName: 'live' }, { -- cgit v1.2.3