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

Sometime it plays without screen.

Open tangible-idea opened this issue 7 years ago • 5 comments

I'm trying to use WPF 4.5 samples. when I play sth, it shows me only sounds without video. sometimes ok, sometimes only audio. I don't even know why it happens.. Player.Stop(); Player.LoadMedia(new Uri("http://...")); Player.Play();

capture_20160914_045446_6

tangible-idea avatar Sep 13 '16 20:09 tangible-idea

No idea with it. Can you provide more information?

devkanro avatar Sep 17 '16 04:09 devkanro

Maybe the situation is hard to duplicate.
But if you make a function like next button to switch to next video. This problem happens very often. Once you click the header, and then click next button it will happen. I think if the vlcplayer is not focused, and clicking next button, it will happen.

But I am not sure if this is a focus problem or not.

kingeaglewang avatar Nov 02 '16 03:11 kingeaglewang

I had the same problem. When I used RebuildPlayer just before LoadMedia it worked properly: Player.Stop(); Player.RebuildPlayer(); Player.LoadMedia(new Uri("http://...")); Player.Play();

mahdi-ataollahi avatar Feb 07 '17 12:02 mahdi-ataollahi

@mahdi-ataollahi RebuildPlayer api is not recommend, most of the time you shouldn't call it, RebuildPlayer is not a good way to reset the Player.

devkanro avatar Feb 07 '17 12:02 devkanro

I had the same problem. The solution was is to Stop and Start video again:

player.Stop();
player.Play();

When video is not displayed, State property of player (and media) is Error sometimes, but it can be also Playing

Sergey-Terekhin avatar Feb 28 '17 11:02 Sergey-Terekhin