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

Laggy video on iPhone 8 #9

Closed
MohsenKhosravinia opened this issue Mar 30, 2021 · 2 comments
Closed

Laggy video on iPhone 8 #9

MohsenKhosravinia opened this issue Mar 30, 2021 · 2 comments

Comments

@MohsenKhosravinia
Copy link

MohsenKhosravinia commented Mar 30, 2021

There is some lags in iPhone 8 (iOS 14.2) when a video plays for the first time. I think you should set the 'automaticallyWaitsToMinimizeStalling' if it is not. The caching process is helping me so much so if you help me on this issue too that would be wonderful.

@FoksWang
Copy link
Owner

FoksWang commented Apr 3, 2021

Hi, the initialization of the player includes:
if (@available(iOS 10.0, *)) { _playerItem.preferredForwardBufferDuration = 5; _player.automaticallyWaitsToMinimizeStalling = NO; }

@MohsenKhosravinia
Copy link
Author

MohsenKhosravinia commented Apr 5, 2021

I should call playerManager.playerItem.preferredForwardBufferDuration and playerManager.player.automaticallyWaitsToMinimizeStalling because those properties (playerItem and player) are not exposed by the framework.

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