X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fvideo-watch.component.ts;fp=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fvideo-watch.component.ts;h=e09e448093c902c72acfdddf3907f3e731ba73e9;hb=c469c05b0f19c8ba6a7383ed89ce30b577146ebe;hp=9973fad0d88cfbf1e8ac1c8278586aa51d989d20;hpb=fb2d44087686eca992d15c7a0f6e69361475c669;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index 9973fad0d..e09e44809 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -32,7 +32,7 @@ import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist. import { Video } from '@app/shared/video/video.model' import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' -import { getStoredTheater } from '../../../assets/player/peertube-player-local-storage' +import { getStoredP2PEnabled, getStoredTheater } from '../../../assets/player/peertube-player-local-storage' import { HooksService } from '@app/core/plugins/hooks.service' import { PlatformLocation } from '@angular/common' import { RecommendedVideosComponent } from '../recommendations/recommended-videos.component' @@ -128,6 +128,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { if ( isWebRTCDisabled() || this.serverConfig.tracker.enabled === false || + getStoredP2PEnabled() === false || peertubeLocalStorage.getItem(VideoWatchComponent.LOCAL_STORAGE_PRIVACY_CONCERN_KEY) === 'true' ) { this.hasAlreadyAcceptedPrivacyConcern = true