VLC ActiveX Trackbar Problem

This forum is about all development around libVLC.
johannes3154
New Cone
New Cone
Posts: 1
Joined: 03 Oct 2009 20:52

VLC ActiveX Trackbar Problem

Postby johannes3154 » 03 Oct 2009 20:57

Hello everyone,
i just coded a streamingclient an everything works well, except of this seekbar.

procedure TfrmVLCmain.TrackBar1Change(Sender: TObject);
begin
bar.Enabled:=false;
//vlcplugin21.playlist.togglePause;
vlcplugin21.input.Time:=trackbar1.Position;

label1.Caption:=inttostr(TrackBar1.Position)+' '+inttostr(TrackBar1.Min)+' '+inttostr(round(vlcplugin21.input.Time));
//vlcplugin21.playlist.togglePause;
bar.Enabled:=true;

end;

procedure TfrmVLCmain.barTimer(Sender: TObject);
begin
TrackBar1.OnChange := nil;
trackbar1.Min:=initTime;
trackbar1.Max:=round(vlcplugin21.input.Length);
trackbar1.Position:=round(vlcplugin21.input.time);
label1.Caption:=inttostr(round(vlcplugin21.input.Time));
TrackBar1.OnChange := TrackBar1Change;
end;

when i try to set a position in the stream with my trackbar it jumps to any position in the stream, but not to the time intex the trackbar is set to.
Can anyone please give me a hint?
best regards
Johannes

Jaco
New Cone
New Cone
Posts: 6
Joined: 28 Aug 2010 21:04

Re: VLC ActiveX Trackbar Problem

Postby Jaco » 30 Aug 2010 14:38

Hey,

Can you please send me some example code on how you setup the VLC activeX component in Delphi to stream media content?

Thank you

Regards

Jaco


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests