From 13b69217e9cc1feda4a2aecff3c5d5573c89eb7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20De=CC=81fago?= Date: Fri, 26 Mar 2021 15:46:31 +0100 Subject: [PATCH] Mitigate resume playback issues with RTS streams See https://github.com/SRGSSR/srgletterbox-apple/issues/245 --- Application/Sources/History/History.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Sources/History/History.m b/Application/Sources/History/History.m index 8499bc420..74f96671e 100755 --- a/Application/Sources/History/History.m +++ b/Application/Sources/History/History.m @@ -56,7 +56,9 @@ float HistoryPlaybackProgress(NSTimeInterval playbackPosition, double durationIn return nil; } - return [SRGPosition positionBeforeTime:historyEntry.lastPlaybackTime]; + // TODO: Fix stream issues (see https://github.com/SRGSSR/srgletterbox-apple/issues/245) then restore `positionBeforeTime:` + // which was the initially desired behavior. + return [SRGPosition positionAtTime:historyEntry.lastPlaybackTime]; } BOOL HistoryCanResumePlaybackForMedia(SRGMedia *media)