Showing the controls with ActiveX
Posted: 15 Dec 2005 19:48
by highlysceptical
This might be a naive question, but I am playing with the ActiveX component in Delphi. When I play my video clip, it all works fine, except that I get a frameless display and no controls.
Is it possible to display the controls - the time slider, play, stop, play faster, play slower etc.
Also, is it possible to direct the output to a form or a panel, rather than it just appearing where I place the control on my form?
How did you play it?
Posted: 16 Jan 2006 15:51
by Kyin
I am also trying but cannot even play the video. May I know how diod you play it? Thorugh MRL or playlist?
DO you mind posting the source code for loading and playing a media here?
Thanks
Re: How did you play it?
Posted: 16 Jan 2006 20:29
by highlysceptical
I am also trying but cannot even play the video. May I know how diod you play it? Thorugh MRL or playlist?
DO you mind posting the source code for loading and playing a media here?
Thanks
The following code works fine for me (buTest is a button on my form):-
procedure TfmMain.buTestClick(Sender: TObject);
var
MRL : string;
begin
MRL := 'd:\test.mpg'; // fully qualified path and filename of movie
VLCPlugIn1.addTarget(MRL, null, VLCPlayListReplaceAndGo, 0);
end;
Hope this helps.
Re: How did you play it?
Posted: 17 Jan 2006 08:22
by Guest
THank you for your source code. It works here . Now I am trying my luck to figure out how to get the controls. WIll post here if made any progress. ..
I am also trying but cannot even play the video. May I know how diod you play it? Thorugh MRL or playlist?
DO you mind posting the source code for loading and playing a media here?
Thanks
The following code works fine for me (buTest is a button on my form):-
procedure TfmMain.buTestClick(Sender: TObject);
var
MRL : string;
begin
MRL := 'd:\test.mpg'; // fully qualified path and filename of movie
VLCPlugIn1.addTarget(MRL, null, VLCPlayListReplaceAndGo, 0);
end;
Hope this helps.
Posted: 17 Jan 2006 09:50
by tonsofpcs
The current documentation (I just started, so it is being updated often) for the ActiveX control is this:
http://wiki.videolan.org/index.php/ActiveX
I don't see any apparant way of showing the interface, but that doesn't mean it can't be done. Personally, I made my own buttons. You can also use the position and length properties to make your own slider.
Posted: 17 Jan 2006 14:02
by Guest
I accidently managed to show the control panel when using activeX. What I did was change the defaultskin to skin2 and save. And then, launch your own program. THe control panel will display automatically. Tried in C++ Builder.
The current documentation (I just started, so it is being updated often) for the ActiveX control is this:
http://wiki.videolan.org/index.php/ActiveX
I don't see any apparant way of showing the interface, but that doesn't mean it can't be done. Personally, I made my own buttons. You can also use the position and length properties to make your own slider.