Active X in VC++.net

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
nadz
Blank Cone
Blank Cone
Posts: 17
Joined: 11 Apr 2006 15:09

Active X in VC++.net

Postby nadz » 06 Jul 2006 17:15

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

JMS
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jul 2005 11:30
Location: Königswinter-Thomasberg
Contact:

Postby JMS » 09 Jul 2006 00:00

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.

nadz
Blank Cone
Blank Cone
Posts: 17
Joined: 11 Apr 2006 15:09

Postby nadz » 10 Jul 2006 10:25

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 12 guests