Page 1 of 1

Error with new vlc activeX

Posted: 13 Jul 2016 20:24
by GianPiero
Hi guys sorry for my question.

I have develop a application in Delphi using your Activex object and all worked fine.
After a update of VLC the ActiveX is changed and not accept the older function
There is a mode to replicate the same functions with the new ActiveX.

VlcPlugIn.playlistClear;
VlcPlugIn.addTarget('rtsp://' + IpCam + '/p1.mp4', null, VLCPlayListCheckInsert, 0);
VlcPlugIn.Position:= 0;
VlcPlugIn.play;

This 4 code rows have worked very fine.

thanks a lot anyway

Re: Error with new vlc activeX

Posted: 13 Jul 2016 21:10
by da2424
Yes, the old v1 API was removed in v2.2.2.

You can use the v2 API instead, see https://wiki.videolan.org/Documentation:WebPlugin

Re: Error with new vlc activeX

Posted: 14 Jul 2016 09:31
by GianPiero
Thanks a lot
now it's work fine
exist something about options values


var options = new Array(":aspect-ratio=4:3", "--rtsp-tcp");
var id = vlc.playlist.add("rtsp://servername/item/to/play", "fancy name", options);
vlc.playlist.playItem(id);

Re: Error with new vlc activeX

Posted: 14 Jul 2016 11:52
by da2424
Yes, all options are listed here: https://wiki.videolan.org/VLC_command-line_help/
But of course, not all will make sense for the playlist context.

Re: Error with new vlc activeX

Posted: 11 Jun 2017 15:57
by ZOvnat
Hi,

I'm using the v2.2.6 ActiveX in a C/C++ MFC based application.
Previously, in v2.2.1, I used the AddTarget() method.
MFC exposes only two methods that take a URL string as input (put_BaseURL, put_MRL) - and none of them play the video stream...

What use is the ActiveX if no method can play a video stream (such as: "rtsp://192.168.200.15:8557/PSIA/Streaming/channels/2?videoCodecType=H.264")?

Thanks,

Zev

Re: Error with new vlc activeX

Posted: 11 Jun 2017 17:17
by Jean-Baptiste Kempf

Re: Error with new vlc activeX

Posted: 12 Jun 2017 12:02
by ZOvnat
The https://wiki.videolan.org/Documentation:WebPlugin/ link makes no mention of embedding the 2.2.6 ActiveX into an MFC C++ container - which can be done - but no method to load a URL or play that stream is available...

Re: Error with new vlc activeX

Posted: 28 Nov 2017 09:46
by Jean-Baptiste Kempf
Yes, of course, it can.