mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-06-09 21:36:31 +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> {
|
override fun preload(): Promise<Unit> {
|
||||||
return Promise.async {
|
return Promise.async {
|
||||||
if (status == VideoPlayerStatus.IDLE) {
|
|
||||||
return@async
|
|
||||||
}
|
|
||||||
|
|
||||||
runOnMainThreadSync {
|
runOnMainThreadSync {
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
initializePlayer()
|
initializePlayer()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-video",
|
"name": "react-native-video",
|
||||||
"version": "7.0.0-dev.8",
|
"version": "7.0.0-dev.9",
|
||||||
"description": "<Video /> Component for React Native",
|
"description": "<Video /> Component for React Native",
|
||||||
"source": "./src/index.tsx",
|
"source": "./src/index.tsx",
|
||||||
"main": "./lib/commonjs/index.js",
|
"main": "./lib/commonjs/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user