Page 1 of 1

Active X in VC++.net

Posted: 06 Jul 2006 17:15
by nadz
hi guys.

I am trying to save video stream but not able to. ( I can play it though)
I am working in VC++.net (1.1) and vlc 0.8.5.

String* op = ":sout=#duplicate{dst=display,dst=std{access=file,mux=mp4,
dst='C:\06.07.06\test2.mp4'}}" ;

axVLCPlugin1->addTarget("http://vthr.videolan.org/~dionoea/vlc-p ... w_h264.asf",
(op->ToCharArray()), Interop::AXVLC::VLCPlaylistMode::VLCPlayListAppendAndGo, -666 );

the error is wrong parameter.(options which is op in my code)

if it is not possible with 0.8.5 plz tell me for 0.8.4.

Looking forward
Thanking you all.
nadz

Posted: 09 Jul 2006 00:00
by JMS
As far as I understand the second parameter to addTarget (which is a COM VARIANT) is either Empty / NULL / whatever OR a COM SAFEARRAY of strings, each holding a single option (:OPTION=VALUE). At least from C# this is the way it works.

Posted: 10 Jul 2006 10:25
by nadz
thanx dude,
This is my code
String* op3 [] ={" :sout=#duplicate{dst=display,dst=std{access=file,mux=mp4,dst='C:\\mytest2.mp4'}}"," "};
axVLCPlugin1->addTarget("http://vthr.videolan.org/~dionoea/vlc-p ... 4.asf",op3, Interop::AXVLC::VLCPlaylistMode::VLCPlayListAppendAndGo, -666 );
its working now.
Cheers