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

ViroVideo playing videos very slow after some seconds #996

Open
alcristog opened this issue Aug 30, 2023 · 0 comments
Open

ViroVideo playing videos very slow after some seconds #996

alcristog opened this issue Aug 30, 2023 · 0 comments

Comments

@alcristog
Copy link

Environment

Development OS: Windows 11
Device OS & Version: Google Pixel 4a 5G, Android 13
Version: React Native 7.8.0, React Viro: 2.23.0
Device: Google Pixel 4a 5G, Android 13

Description

Hi, I am executing an AR Scene with a ViroVideo component. The video to be played is more than 2 minutes long. I have realized that the video is played fluently, however, when it reaches 30 seconds, the general performance is quite low. The video and the application in general becomes very slow, making it to stop and close suddenly sometimes (and you have to start it again).

I have carried out some tests with different formats (MP4 and WEBM), even decreasing the video quality considerably (no more than 2MB) but the problem persists. It must be an error caused by the lengths of the videos I use (a buffer issue perhaps?).

My solution was to split the video in small videos of 30 secs length, and use different ViroVideo components that become active (paused=false and visible=true) when the previous one has finished. I have noticed a better performance in this case, but it is not a very fluent solution though, and sometimes it also fails and closes the app as before.

Any suggestion / consideration / recommendation when using long length VideoVideo components, please?

Thanks in advance.

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

1 participant