Updated comments

This commit is contained in:
Alex Kim
2024-11-22 04:52:10 +11:00
parent 2a52499a75
commit a7dd74e7ab
2 changed files with 2 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ class VlcPlayerView(context: Context, appContext: AppContext) : ExpoView(context
val durationMs = player.media?.duration?.toInt() ?: 0
if (currentTimeMs >= 0 && currentTimeMs < durationMs) {
// Determine if the media has finished loading
// Handle when VLC starts at cloest earliest segment skip to the start time, for transcoded streams.
if (player.isPlaying && !isMediaReady) {
isMediaReady = true
if (isTranscodedStream) {

View File

@@ -626,7 +626,7 @@ extension VlcPlayerView: VLCMediaPlayerDelegate {
let durationMs = player.media?.length.intValue ?? 0
if currentTimeMs >= 0 && currentTimeMs < durationMs {
// Handle when VLC starts at cloest earliest segment skip to the start time.
// Handle when VLC starts at cloest earliest segment skip to the start time, for transcoded streams.
if player.isPlaying && !self.isMediaReady {
self.isMediaReady = true
if self.isTranscodedStream {