VideoPrivacy,
VideoState
} from '@shared/models'
-import { cleanupVideoWatch, getStoredTheater, getStoredVideoWatchHistory } from '../../../assets/player/peertube-player-local-storage'
import {
CustomizationOptions,
P2PMediaLoaderOptions,
PeertubePlayerManagerOptions,
PlayerMode,
videojs
-} from '../../../assets/player/peertube-player-manager'
+} from '../../../assets/player'
+import { cleanupVideoWatch, getStoredTheater, getStoredVideoWatchHistory } from '../../../assets/player/peertube-player-local-storage'
import { environment } from '../../../environments/environment'
import { VideoWatchPlaylistComponent } from './shared'
videoCaptions: playerCaptions,
videoShortUUID: video.shortUUID,
- videoUUID: video.uuid
+ videoUUID: video.uuid,
+
+ errorNotifier: (message: string) => this.notifier.error(message)
},
webtorrent: {
private handleLiveStateChange (newState: VideoState) {
if (newState !== VideoState.PUBLISHED) return
- const videoState = this.video.state.id
- if (videoState !== VideoState.WAITING_FOR_LIVE && videoState !== VideoState.LIVE_ENDED) return
-
console.log('Loading video after live update.')
const videoUUID = this.video.uuid