Merge pull request #2743 from tironiigor/added-missing-ns-error-initialization-params
Added missing NSError initialization params on seek early return
This commit is contained in:
commit
be0497cc09
@ -5,6 +5,7 @@
|
|||||||
- Fix Exoplayer progress not reported when paused [#2664](https://github.com/react-native-video/react-native-video/pull/2664)
|
- Fix Exoplayer progress not reported when paused [#2664](https://github.com/react-native-video/react-native-video/pull/2664)
|
||||||
- Call playbackRateChange onPlay and onPause [#1493](https://github.com/react-native-video/react-native-video/pull/1493)
|
- Call playbackRateChange onPlay and onPause [#1493](https://github.com/react-native-video/react-native-video/pull/1493)
|
||||||
- Fix being unable to disable sideloaded texttracks in the AVPlayer [#2679](https://github.com/react-native-video/react-native-video/pull/2679)
|
- Fix being unable to disable sideloaded texttracks in the AVPlayer [#2679](https://github.com/react-native-video/react-native-video/pull/2679)
|
||||||
|
- Fixed crash when iOS seek method called reject on the promise [#2743](https://github.com/react-native-video/react-native-video/pull/2743)
|
||||||
|
|
||||||
### Version 6.0.0-alpha.1
|
### Version 6.0.0-alpha.1
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ enum RCTPlayerOperations {
|
|||||||
|
|
||||||
return Promise<Bool>(on: .global()) { fulfill, reject in
|
return Promise<Bool>(on: .global()) { fulfill, reject in
|
||||||
guard CMTimeCompare(current, cmSeekTime) != 0 else {
|
guard CMTimeCompare(current, cmSeekTime) != 0 else {
|
||||||
reject(NSError())
|
reject(NSError(domain: "", code: 0, userInfo: nil))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !paused { player.pause() }
|
if !paused { player.pause() }
|
||||||
|
Loading…
Reference in New Issue
Block a user