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

Blinking video player after play method call #817

Open
machinescream opened this issue Sep 27, 2024 · 1 comment
Open

Blinking video player after play method call #817

machinescream opened this issue Sep 27, 2024 · 1 comment

Comments

@machinescream
Copy link

machinescream commented Sep 27, 2024

Hello! Huge thanks for the library.
I found strange behavior that VideoPlayerView blinks after play method called second time
My workaround for now looks like this:
playerView.playerLayer.player?.play()
I can try to fix it by myself, if you have some thoughts, considerations or additional information let me know, cheers!

@sureshjoshi
Copy link

Is it that the player "blinks"? Or is it because the playerView.play() will reload the asset and basically restarts the whole pipeline?

I noticed this, and I maintain a "first-run" part where the video player gets the asset, and all subsequent calls are to the player.play (as you have done).

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