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

need a simple way to stay in the 1st Frame #285

Open
yangbocheng opened this issue Apr 23, 2019 · 2 comments
Open

need a simple way to stay in the 1st Frame #285

yangbocheng opened this issue Apr 23, 2019 · 2 comments

Comments

@yangbocheng
Copy link

i have tried to use media.play() and media.pause() to get it. But sometime, it won't work as what it should be, it just show nothing on the panel. Although i have even used those events like StateChanged, VideoSourceChanged.

Could it provide a simple way to stay in the 1st Frame whenever programe want?

@devkanro
Copy link
Owner

devkanro commented Apr 24, 2019

As I knew, when you call the play method, VLC needs some time to decode frames to buffer.
It always to get a transparent image before the buffer is ready to play. I think you can use another lib to get the frame snapshot.
Maybe you can try to set time to not zero value, perhaps it works...

@yangbocheng
Copy link
Author

I have test playing after the Event ContentRendered, and only doing pause() after the StateChanged(media.state==playing)
but here is also nothing on the panel.
&thanks

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