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