Page 1 of 1

VLC ActiveX plugin v2

Posted: 07 Jan 2009 04:19
by werner
I used VLC 0.9.8a ActiveX plugin v2 under vc2005 MFC
it will work
======================================================
CVLCControl0 *m_pvlcV21=new CVLCControl0;
m_pvlcV21->Create("test",SW_SHOW,CRect(300,100,545,315),this,1234);
m_pvlcV21->ShowWindow(SW_SHOWNORMAL);
VARIANT va;
VariantInit(&va);
m_pvlcV21->addTarget("C:\\test.avi",va,0x002+0x004,-666);
m_pvlcV21->play();
======================================================
but when I use VLC 0.9.8a ActiveX plugin v2 with the same code
m_pvlcV21->addTarget("C:\\test.avi",va,0x002+0x004,-666); will post error message "member not found"
Does anyone know how to solve it
Thanks

Re: VLC ActiveX plugin v2

Posted: 07 Jan 2009 17:22
by VLC_help
m_pvlcV21->addTarget("C:\\test.avi",va,0x002+0x004,-666);
and
m_pvlcV21->addTarget("C:\\test.avi",va,0x002+0x004,-666);

seem identical to me.

Re: VLC ActiveX plugin v2

Posted: 08 Jan 2009 15:45
by werner
I have two vc 2005 project ,
one use VLC ActiveX v1
and the other use VLC ActiveX v2.
I write the same code like above,
v1 work fine but v2 don't

Does anyone know how to use v2 ?
Thanks

Re: VLC ActiveX plugin v2

Posted: 08 Jan 2009 17:41
by VLC_help

Re: VLC ActiveX plugin v2

Posted: 09 Jan 2009 15:54
by Chuen
For ActiveX v2
use

Code: Select all

m_pvlcV21->playlist.add(mrl)

Re: VLC ActiveX plugiaylistn v2

Posted: 10 Jan 2009 06:23
by werner
I think m_pvlcV21->playlist.add(mrl) is the method for html
I did't find playlist function in ActiveX class

1. I add a vc2005 MFC project
2. Add MFC class from ActiveX Control
select VideoLAN VLC ActiveX Plugin v2<1.0>
add interface IVLCControl and IVLCControl2

but it can't work fine
if I change CLSID to { 0xE23FE9C6, 0x778E, 0x49D4, { 0xB5, 0x37, 0x38, 0xFC, 0xDE, 0x48, 0x87, 0xD8 } };
it can work fine
I put my source code on http://www.badongo.com/file/12830771

Thanks

Re: VLC ActiveX plugin v2

Posted: 24 May 2012 02:05
by ramsiva
I faced the same problem, I got " member not found " error. i was using 0.8.6h Janus version.
The original clsID was, { 0x9BE31822, 0xFDAD, 0x461B, { 0xAD, 0x51, 0xBE, 0x1D, 0x1C, 0x15, 0x99, 0x21 }
and I replaced with
{ 0xE23FE9C6, 0x778E, 0x49D4, { 0xB5, 0x37, 0x38, 0xFC, 0xDE, 0x48, 0x87, 0xD8 }

This fixed my problem and I am able to addtarget() and play video.

Do you think my activex plug in was screwed up in first place with wrong clsID??

Re: VLC ActiveX plugin v2

Posted: 24 May 2012 18:38
by Jean-Baptiste Kempf
0.8.6h is too old.