WIP bug fixing

This commit is contained in:
Alex Kim
2024-10-27 22:29:58 +11:00
parent 0f1ee174a0
commit 30280db810
3 changed files with 29 additions and 12 deletions

View File

@@ -165,13 +165,13 @@ class VlcPlayerView: ExpoView {
self.mediaPlayer?.media = media
if startPosition > 0 {
self.mediaPlayer?.time = VLCTime(int: startPosition)
}
if autoplay {
print("Playing...")
self.play()
if startPosition > 0 {
print("Debug: Starting at position: \(startPosition)")
self.seekTo(startPosition)
}
}
}
}