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

Buffering and sound problem #44

Open
coucoseth opened this issue Sep 5, 2022 · 3 comments
Open

Buffering and sound problem #44

coucoseth opened this issue Sep 5, 2022 · 3 comments

Comments

@coucoseth
Copy link

coucoseth commented Sep 5, 2022

hello, videos from url dont play the sound.
Also on slow internet connections, the player buffers alot, how can i set the player to only play when a certain amount of data is predownloaded and pause if the current data is insufficient (specify buffer size)

@wxxsw
Copy link
Owner

wxxsw commented Sep 6, 2022

Already implemented, preloading is dynamically paused based on the currently playing video buffer.

Preloading will load the beginning of the video. To control the size of the load, use:

VideoPlayer.preloadByteCount = 1024 * 1024 // = 1M

@coucoseth
Copy link
Author

how about for the rest of the video, how can i adjust the buffer size that the player should fetch.
When there is a poor internet conection, the player does not pause after buffer is depleted. my expected behaviour would be to pause and try to fetch, then play when sufficient buffer is available

@wxxsw
Copy link
Owner

wxxsw commented Sep 6, 2022

For the currently playing video, the logic of pausing the video according to buffering is temporarily not supported.

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