Meta.Vlc icon indicating copy to clipboard operation
Meta.Vlc copied to clipboard

need a simple way to stay in the 1st Frame

Open yangbocheng opened this issue 5 years ago • 2 comments

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?

yangbocheng avatar Apr 23 '19 13:04 yangbocheng

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...

devkanro avatar Apr 24 '19 05:04 devkanro

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

yangbocheng avatar Apr 25 '19 01:04 yangbocheng