diff options
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 42 |
1 files changed, 17 insertions, 25 deletions
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 df0c1058c..5b0b34c80 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -1,41 +1,33 @@ | |||
1 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | ||
2 | import { forkJoin, Observable, Subscription } from 'rxjs' | ||
1 | import { catchError } from 'rxjs/operators' | 3 | import { catchError } from 'rxjs/operators' |
4 | import { PlatformLocation } from '@angular/common' | ||
2 | import { ChangeDetectorRef, Component, ElementRef, Inject, LOCALE_ID, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' | 5 | import { ChangeDetectorRef, Component, ElementRef, Inject, LOCALE_ID, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' |
3 | import { ActivatedRoute, Router } from '@angular/router' | 6 | import { ActivatedRoute, Router } from '@angular/router' |
7 | import { AuthService, AuthUser, ConfirmService, MarkdownService, Notifier, RestExtractor, ServerService, UserService } from '@app/core' | ||
8 | import { HooksService } from '@app/core/plugins/hooks.service' | ||
4 | import { RedirectService } from '@app/core/routing/redirect.service' | 9 | import { RedirectService } from '@app/core/routing/redirect.service' |
5 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' | 10 | import { isXPercentInViewport, peertubeLocalStorage, scrollToTop } from '@app/helpers' |
6 | import { VideoSupportComponent } from '@app/videos/+video-watch/modal/video-support.component' | 11 | import { Video, VideoCaptionService, VideoDetails, VideoService } from '@app/shared/shared-main' |
12 | import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription' | ||
13 | import { VideoPlaylist, VideoPlaylistService } from '@app/shared/shared-video-playlist' | ||
7 | import { MetaService } from '@ngx-meta/core' | 14 | import { MetaService } from '@ngx-meta/core' |
8 | import { AuthUser, Notifier, ServerService } from '@app/core' | ||
9 | import { forkJoin, Observable, Subscription } from 'rxjs' | ||
10 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | ||
11 | import { ServerConfig, UserVideoRateType, VideoCaption, VideoPrivacy, VideoState } from '../../../../../shared' | ||
12 | import { AuthService, ConfirmService } from '../../core' | ||
13 | import { RestExtractor, UserService } from '../../shared' | ||
14 | import { VideoDetails } from '../../shared/video/video-details.model' | ||
15 | import { VideoService } from '../../shared/video/video.service' | ||
16 | import { VideoShareComponent } from './modal/video-share.component' | ||
17 | import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' | ||
18 | import { I18n } from '@ngx-translate/i18n-polyfill' | 15 | import { I18n } from '@ngx-translate/i18n-polyfill' |
19 | import { environment } from '../../../environments/environment' | 16 | import { ServerConfig, UserVideoRateType, VideoCaption, VideoPrivacy, VideoState } from '@shared/models' |
20 | import { VideoCaptionService } from '@app/shared/video-caption' | 17 | import { getStoredP2PEnabled, getStoredTheater } from '../../../assets/player/peertube-player-local-storage' |
21 | import { MarkdownService } from '@app/shared/renderer' | ||
22 | import { | 18 | import { |
23 | videojs, | ||
24 | CustomizationOptions, | 19 | CustomizationOptions, |
25 | P2PMediaLoaderOptions, | 20 | P2PMediaLoaderOptions, |
26 | PeertubePlayerManager, | 21 | PeertubePlayerManager, |
27 | PeertubePlayerManagerOptions, | 22 | PeertubePlayerManagerOptions, |
28 | PlayerMode | 23 | PlayerMode, |
24 | videojs | ||
29 | } from '../../../assets/player/peertube-player-manager' | 25 | } from '../../../assets/player/peertube-player-manager' |
30 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' | ||
31 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' | ||
32 | import { Video } from '@app/shared/video/video.model' | ||
33 | import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' | 26 | import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' |
34 | import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' | 27 | import { environment } from '../../../environments/environment' |
35 | import { getStoredP2PEnabled, getStoredTheater } from '../../../assets/player/peertube-player-local-storage' | 28 | import { VideoShareComponent } from './modal/video-share.component' |
36 | import { HooksService } from '@app/core/plugins/hooks.service' | 29 | import { VideoSupportComponent } from './modal/video-support.component' |
37 | import { PlatformLocation } from '@angular/common' | 30 | import { VideoWatchPlaylistComponent } from './video-watch-playlist.component' |
38 | import { scrollToTop, isXPercentInViewport } from '@app/shared/misc/utils' | ||
39 | 31 | ||
40 | @Component({ | 32 | @Component({ |
41 | selector: 'my-video-watch', | 33 | selector: 'my-video-watch', |