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

[Feature]: Buffer Config for iOS. #3632

Open
Michota opened this issue Mar 30, 2024 · 8 comments
Open

[Feature]: Buffer Config for iOS. #3632

Michota opened this issue Mar 30, 2024 · 8 comments

Comments

@Michota
Copy link

Michota commented Mar 30, 2024

Description

Just like in the case of Android, allow users to control buffer related things, like back-buffer, etc. with usage of bufferConfig.

Why it is needed ?

It's very important for those who want to create apps without paying much for bandwith and storage.

Possible implementation

use preferredForwardBufferDuration

Code sample

It seems like there is already a PR that includes that #1353

@Michota Michota changed the title [Feature]: Control buffer for iOS. [Feature]: Buffer Config for iOS. Mar 31, 2024
@DLowHP
Copy link

DLowHP commented Apr 2, 2024

Bumping this. Would also appreciate this added.

@Michota
Copy link
Author

Michota commented Apr 13, 2024

Bump. I need this so badly. I would even move from Expo-AV and donate some cash if iOS buffer config will be working as intended.

@KrzysztofMoch
Copy link
Member

@Michota it seams that AVPlayer (iOS) is very limited in this area compared to android - do you have any specific parameter that you would have ?

@Michota
Copy link
Author

Michota commented Apr 15, 2024

@KrzysztofMoch: preferredForwardBufferDuration is a way to go I think.

This property defines the preferred forward buffer duration in seconds. If set to 0, the player will choose an appropriate level of buffering for most use cases. Setting this property to a low value will increase the chance that playback will stall and re-buffer, while setting it to a high value will increase demand on system resources.

@KrzysztofMoch
Copy link
Member

@Michota there is already preferredForwardBufferDuration prop for you - does it not work for you?

@Michota
Copy link
Author

Michota commented May 10, 2024

Oh, i missed it.
It will work similar to how minBufferMs works for Android, right?

@pecabum
Copy link

pecabum commented Aug 3, 2024

It doesn't work, i have a high resolution video that should play from web and the player doesn't buffer at all on ios. I've tried all possible methods.

@emreer94
Copy link

emreer94 commented Oct 1, 2024

The default is 0, it means let the system decide to buffer. I want it to buffer minimally and set it to 1 but literally nothing changed. Also, I tried this automaticallyWaitsToMinimizeStalling={false}, defaults to true, to shut down the buffering state and immediately start the streaming as indicated in properties section of the documentation but that does not work as well. How to deal with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants