From 15a7eafb892441957ba7dd6fcbf556086fe5b2b3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 26 Jul 2021 15:04:37 +0200 Subject: Refactor video links builders --- client/src/assets/player/webtorrent/webtorrent-plugin.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'client/src/assets/player/webtorrent') diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index b648b29e8..17d369c10 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts @@ -1,9 +1,7 @@ import videojs from 'video.js' import * as WebTorrent from 'webtorrent' -import { renderVideo } from './video-renderer' -import { LoadedQualityData, PlayerNetworkInfo, WebtorrentPluginOptions } from '../peertube-videojs-typings' -import { getRtcConfig, timeToInt, videoFileMaxByResolution, videoFileMinByResolution, isIOS, isSafari } from '../utils' -import { PeertubeChunkStore } from './peertube-chunk-store' +import { timeToInt } from '@shared/core-utils' +import { VideoFile } from '@shared/models' import { getAverageBandwidthInStore, getStoredMute, @@ -11,7 +9,10 @@ import { getStoredVolume, saveAverageBandwidth } from '../peertube-player-local-storage' -import { VideoFile } from '@shared/models' +import { LoadedQualityData, PlayerNetworkInfo, WebtorrentPluginOptions } from '../peertube-videojs-typings' +import { getRtcConfig, isIOS, videoFileMaxByResolution, videoFileMinByResolution } from '../utils' +import { PeertubeChunkStore } from './peertube-chunk-store' +import { renderVideo } from './video-renderer' const CacheChunkStore = require('cache-chunk-store') -- cgit v1.2.3