ActivityPub-federated video streaming platform using P2P directly in your web browser
Remove unused code
Chocobozzz2216ad2179be
diff --git a/client/src/standalone/player/src/shared/p2p-media-loader/hls-plugin.ts b/client/src/standalone/player/src/shared/p2p-media-loader/hls-plugin.tsindex b53cea6227..92b665fe37 100644--- a/client/src/standalone/player/src/shared/p2p-media-loader/hls-plugin.ts+++ b/client/src/standalone/player/src/shared/p2p-media-loader/hls-plugin.ts@@ -125,7 +125,6 @@ export class Html5Hlsjs {private metadata: ManifestParsedData = nullprivate isLive: boolean = null- private liveDvrEnabled = falseprivate dvrDuration: number = nullprivate edgeMargin: number = null@@ -195,11 +194,6 @@ export class Html5Hlsjs {return this.vjs.time.createTimeRanges(0, this.hls.media.duration)}- // if (this.liveDvrEnabled && !isNaN(this.dvrDuration)) {- // const endTime = Math.max(0, Math.round(this.dvrDuration - this.edgeMargin))- // return this.vjs.time.createTimeRanges(0, endTime)- // }-// Video.js doesn't seem to like floating point timerangesconst startTime = Math.round(this.hls.media.duration - this.dvrDuration)const endTime = Math.round(this.hls.media.duration - this.edgeMargin)@@ -430,8 +424,6 @@ export class Html5Hlsjs {this.buildBaseConfig()- this.liveDvrEnabled = this.hlsjsConfig?.liveDvrEnabled === true-if ([ '', 'auto' ].includes(this.videoElement.preload) && !this.videoElement.autoplay && this.hlsjsConfig.autoStartLoad === undefined) {this.hlsjsConfig.autoStartLoad = false}