We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6bdb5 commit d11279fCopy full SHA for d11279f
ios/RNVideoProcessing/RNVideoPlayer.swift
@@ -97,7 +97,9 @@ class RNVideoPlayer: RCTView {
97
var currentTime: NSNumber? {
98
set(val) {
99
if val != nil && player != nil {
100
- let floatVal = val as! CGFloat
+ let convertedValue = val as! CGFloat
101
+ let floatVal = convertedValue >= 0 ? convertedValue : self._playerStartTime
102
+ print("CHANGED: currentTime \(floatVal)")
103
if floatVal <= self._playerEndTime && floatVal >= self._playerStartTime {
104
self.player.seek(to: convertToCMTime(val: floatVal))
105
}
0 commit comments