Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello World sample slow on android #140

Closed
Fulanko opened this issue Jun 20, 2017 · 2 comments
Closed

Hello World sample slow on android #140

Fulanko opened this issue Jun 20, 2017 · 2 comments

Comments

@Fulanko
Copy link
Contributor

Fulanko commented Jun 20, 2017

When running the 'Hello World' sample on Android phones, it takes around 5 seconds to load the second panel (with the video and svg animation). During that time the app is frozen in the main panel.

Tested on One Plus 3t and Nexus 4

On iOS and Web, the second panel opens instantly after pressing the button.

@erictraut
Copy link
Contributor

Yes, this appears to be due to the video player component. The sample app uses the "reactxp-video" plugin, which relies in turn on the open-source "react-native-video" module for iOS and Android. The Android implementation of react-native-video appears to have a long loading time for some videos. If you remove the RXVideo component from the second panel, you'll notice that the problem disappears. If you require video for your Android app and this problem proves to be a blocker, I recommend that you reach out to the authors of "react-native-video" or dig into that code yourself to see if you can diagnose it.

@Fulanko
Copy link
Contributor Author

Fulanko commented Jun 21, 2017

Thanks,

Here is a quick fix to prevent the app from freezing while the video is loading:
TheWidlarzGroup/react-native-video#577

@Fulanko Fulanko closed this as completed Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants