Fixed bug with dupe subtitle names for transcoded content

This commit is contained in:
Alex Kim
2024-11-25 15:35:05 +11:00
parent d218d0b1c2
commit 0054095b20
5 changed files with 113 additions and 66 deletions

View File

@@ -580,10 +580,8 @@ extension VlcPlayerView: VLCMediaPlayerDelegate {
"duration": player.media?.length.intValue ?? 0,
"error": false,
]
// Playing and not transcoding, we can let it in no HLS issue.
// We should also mark it as playing when the media is ready.
// Fix HLS issue.
if player.isPlaying && self.isMediaReady {
if player.isPlaying {
stateInfo["isPlaying"] = true
stateInfo["isBuffering"] = false
stateInfo["state"] = "Playing"