mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-27 08:32:32 +00:00
fix(android): preload is never called
This commit is contained in:
-4
@@ -250,10 +250,6 @@ class HybridVideoPlayer() : HybridVideoPlayerSpec() {
|
||||
|
||||
override fun preload(): Promise<Unit> {
|
||||
return Promise.async {
|
||||
if (status == VideoPlayerStatus.IDLE) {
|
||||
return@async
|
||||
}
|
||||
|
||||
runOnMainThreadSync {
|
||||
if (player == null) {
|
||||
initializePlayer()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-video",
|
||||
"version": "7.0.0-dev.8",
|
||||
"version": "7.0.0-dev.9",
|
||||
"description": "<Video /> Component for React Native",
|
||||
"source": "./src/index.tsx",
|
||||
"main": "./lib/commonjs/index.js",
|
||||
|
||||
Reference in New Issue
Block a user