Page 1 of 1

Problem with ActiveX VLC and VB6

Posted: 01 Apr 2015 16:27
by maxlife
Goodmorning to all,
I have a probem on developing program in vb6 with VLC plugin.
First I explain the situation to better understand the problem.

I use VLC version 2.0.5
I load the ActiveX without problem in this way
Set m_axVLC = Controls.Add("VideoLAN.VLCPlugin.2", "m_axVLC")

When i load a remote file via http in this way:
VLCfname="http://151.40.21.12:9999/archive/folder ... file.oggop
m_axVLC.object.Playlist.Add VLCfname, "", ":rtsp-tcp"
I have an error in vlc state m_axVLC.object.input.State

If I open the file directly from VLC in File or Net Tab it is ok.

Can someone help to me to understand the problem?
Thanks in advance.

Max

Re: Problem with ActiveX VLC and VB6

Posted: 01 Apr 2015 17:35
by maxlife
I have found the solution.
For that interested is necessary insert before the add of the file the clear of the playlist
m_axVLC.object.Playlist.Clear

Bye