devkanro / Meta.Vlc

Meta.Vlc is a LibVlc wrapper for WPF.
Do What The F*ck You Want To Public License
275 stars 85 forks source link

Event if properties have been set #254

Closed Symbai closed 5 years ago

Symbai commented 6 years ago

I'm trying to get information about AudioTrackCount immediately after start playing a media like this:

Media.LoadMedia(somefile);
Media.Play();
 for (int i = 0; i < Media.AudioTrackCount; i++)
                {
                   //something
                }

but at this time the AudioTrackCount is always 0. Once the video has actually started the AudioTrackCount is 2 as expected so there is a short delay.

Is there any existing event that occurs once after all properties have been set? Something like Media.VlcMediaPlayer.Opened ?

devkanro commented 6 years ago

Maybe VlcPlayer.StateChanged event