VLC ActiveX plugin v2

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
werner
New Cone
New Cone
Posts: 3
Joined: 07 Jan 2009 04:06

VLC ActiveX plugin v2

Postby werner » 07 Jan 2009 04:19

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC ActiveX plugin v2

Postby VLC_help » 07 Jan 2009 17:22

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.

werner
New Cone
New Cone
Posts: 3
Joined: 07 Jan 2009 04:06

Re: VLC ActiveX plugin v2

Postby werner » 08 Jan 2009 15:45

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC ActiveX plugin v2

Postby VLC_help » 08 Jan 2009 17:41


Chuen
Blank Cone
Blank Cone
Posts: 49
Joined: 19 Sep 2008 04:40
Contact:

Re: VLC ActiveX plugin v2

Postby Chuen » 09 Jan 2009 15:54

For ActiveX v2
use

Code: Select all

m_pvlcV21->playlist.add(mrl)
Regards
Chuen

werner
New Cone
New Cone
Posts: 3
Joined: 07 Jan 2009 04:06

Re: VLC ActiveX plugiaylistn v2

Postby werner » 10 Jan 2009 06:23

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

ramsiva
Blank Cone
Blank Cone
Posts: 31
Joined: 14 Jan 2012 00:19

Re: VLC ActiveX plugin v2

Postby ramsiva » 24 May 2012 02:05

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??

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC ActiveX plugin v2

Postby Jean-Baptiste Kempf » 24 May 2012 18:38

0.8.6h is too old.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 42 guests