Merge pull request #636 from stonerl/captions

fix handling and displaying captions
This commit is contained in:
Arkadiusz Fal
2024-05-16 18:18:49 +02:00
committed by GitHub
5 changed files with 21 additions and 16 deletions

View File

@@ -275,6 +275,10 @@ final class MPVBackend: PlayerBackend {
self.startClientUpdates()
// Captions should only be displayed when selected by the user,
// not when the video starts. So, we remove them.
self.client?.removeSubs()
if !preservingTime,
!upgrading,
let segment = self.model.sponsorBlock.segments.first,