Page 1 of 1

Play DVB-T device using ActiveX Control in MFC?

Posted: 03 May 2010 15:51
by lbwtgi
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.

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

Posted: 04 May 2010 00:59
by Jean-Baptiste Kempf
I believe the issue is the program selection...

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

Posted: 04 May 2010 09:07
by lbwtgi
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

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

Posted: 07 Jun 2010 05:24
by mortechsystems
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