I am using the VLC activeX plugin in a vb.net project and it basically works just fine, except for: The Length property always returns 0 (NULL, zero). In contrast, Position works fine.
How can I get it to work?
I am trying to capture the current video frame as an image. I wanna use either ffmpeg or vlc command line for that. Neither of both can use percentage positions, which is the output of the activex Position property. If I now had the Length, I could calculate my position in (milli)seconds.
Maybe someone has another tip on how to achieve this?
My code that plays a video:
Code: Select all
Dim MRLstring As String = tab1_dirlistbox.Path + "\" + tab1_filelistbox.SelectedItem
tab1_AxVLCPlugin.addTarget(MRLstring, Nothing, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0)
tab1_AxVLCPlugin.play()
tab1_AxVLCPlugin.Length always returns NULL
Thanks alot for any help!