From 9fb4db8d8682d519b92383d7ef2437c92b019605 Mon Sep 17 00:00:00 2001 From: vexorian Date: Sat, 7 Aug 2021 11:01:30 -0400 Subject: [PATCH] Fix rewind/fast forward not working correctly in on-demand channels. --- web/directives/channel-config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/directives/channel-config.js b/web/directives/channel-config.js index a731d78..1bdec64 100644 --- a/web/directives/channel-config.js +++ b/web/directives/channel-config.js @@ -49,6 +49,7 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions, get scope.episodeMemory = { saved : false, }; + scope.fixedOnDemand = false; if (typeof scope.channel === 'undefined' || scope.channel == null) { scope.channel = {} scope.channel.programs = [] @@ -182,7 +183,11 @@ module.exports = function ($timeout, $location, dizquetv, resolutionOptions, get (scope.channel.onDemand.isOnDemand === true) && (scope.channel.onDemand.paused === true) + && + ! scope.fixedOnDemand ) { + //this should only happen once per channel + scope.fixedOnDemand = true; originalStart = new Date().getTime(); originalStart -= scope.channel.onDemand.playedOffset; let m = scope.channel.onDemand.firstProgramModulo;