Forum > Audio and Video

MPlayer seek question


Hello I have this question why the progress bar reacts with a delay , is it due to an error in the MPLayer component ?

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TForm1.VideoBarMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var  Ratio: Real;  Total, videoPos: Integer;begin  if not (ssLeft in Shift) then Exit;  Ratio := X / VideoBar.ClientWidth;  Total := Trunc(VideoBar.MaxValue - VideoBar.MinValue);  videoPos := Trunc((Total * Ratio) + Trunc(VideoBar.MinValue));  VideoBar.Value := videoPos;end; procedure TForm1.VideoBarMouseUp(Sender: TObject; Button: TMouseButton;  Shift: TShiftState; X, Y: Integer);begin  MPlayer.SendMPlayerCommand('seek '+inttostr(VideoBar.Value)+ ' 2');end;  


The MPlayer communicates via Pipes & Strings, which is slow.
If You want something faster, take e.g. the VLC-DLLs.

If You want something really fast & responsive, with outstanding Sound, take my FFmpeg-based AV-Player:,26666.msg428667.html#msg428667

@Metis Thank you :)


[0] Message Index

Go to full version