Skip to content

Commit

Permalink
fix auto stop of videos
Browse files Browse the repository at this point in the history
  • Loading branch information
plozinski committed Jul 25, 2024
1 parent 5196072 commit 344d889
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1832,15 +1832,15 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
seekGroup.notify(queue: .main) {
self.seekCompletedFor(seekTime: seekTime ?? 0)
peripheral.seekCompletedFor(seekTime: seekTime ?? 0)
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
self.setManagedPaused(paused: wasPaused)
}
}
_pendingSeek = false
} else {
_pendingSeek = true
_pendingSeekTime = seekTime?.floatValue ?? .zero
}
} else {
_pendingSeek = true
_pendingSeekTime = seekTime?.floatValue ?? .zero
}
}

Expand Down

0 comments on commit 344d889

Please sign in to comment.