Play DVB-T device using ActiveX Control in MFC?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
lbwtgi
New Cone
New Cone
Posts: 7
Joined: 05 Aug 2009 19:11

Play DVB-T device using ActiveX Control in MFC?

Postby lbwtgi » 03 May 2010 15:51

Hi

Is it possible to play DVB-T device using ActiveX in MFC? In console i can let VLC play DVB-T device through this command

Code: Select all

dvb:// :dvb-adapter=0 :dvb-frequency=593000000 :dvb-srate=8 :dvb-bandwidth=6 :program=501
but while i use ActiveX in MFC, and this command didn't seem to work. Did I miss anything?

Code: Select all

BSTR option = SysAllocString(_T(":dvb-adapter=0 :dvb-frequency=593000000 :dvb-srate=8 :dvb-bandwidth=6 :program=501")); VARIANT va; VariantInit( &va ); va.bstrVal = option; pvlc->addTarget(_T("dvb://"), va, 0, 1); pvlc->play();
I am using vlc 1.0.5, ActiveX v1 under Windows 7.

Can anyone help me with this >< , Thanks.

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: Play DVB-T device using ActiveX Control in MFC?

Postby Jean-Baptiste Kempf » 04 May 2010 00:59

I believe the issue is the program selection...
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.

lbwtgi
New Cone
New Cone
Posts: 7
Joined: 05 Aug 2009 19:11

Re: Play DVB-T device using ActiveX Control in MFC?

Postby lbwtgi » 04 May 2010 09:07

I thought my parameters cause this error. So I've changed my code and this also does not seem to work :( Can anyone help me with this. Thanks.

Code: Select all

COleSafeArray saOptions; saOptions.Clear(); BSTR bsOptions[5]; bsOptions[0]=SysAllocString(L":dvb-adapter=0"); bsOptions[1]=SysAllocString(L":dvb-frequency=593000000"); bsOptions[2]=SysAllocString(L":dvb-srate=8"); bsOptions[3]=SysAllocString(L":dvb-bandwidth=6"); bsOptions[4]=SysAllocString(L":program=501"); saOptions.CreateOneDim(VT_BSTR,5,bsOptions); CString sTarget = L"dvb://"; pvlc->addTarget(sTarget, saOptions, 0, 1); pvlc->play();
Best regards,
Ben 2010/05/04

mortechsystems
Blank Cone
Blank Cone
Posts: 16
Joined: 03 Sep 2009 16:32

Re: Play DVB-T device using ActiveX Control in MFC?

Postby mortechsystems » 07 Jun 2010 05:24

Do I presume that when using activex the "program=xxx" is ignored?

If so I suspected this for a while as a lot of people have similar issues using activx in a webpage and I am having issue with the very same parameters in Delphi with DVB-T application.

Will this be fixed in the new 1.1 version. Eg Has the activex library been updated for this to work?

If not how can I be of help in updating the activex objects for it to work?

Kind Regards
David


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests