Recent

Author Topic: Using vlc library for capturing video from ip camera.  (Read 5400 times)

delavar

  • Newbie
  • Posts: 2
Using vlc library for capturing video from ip camera.
« on: December 23, 2014, 10:15:39 pm »
Hello, i have some problems with vlc library.

I need to show in me widget video stream from ip camera. The only one guide about operate with this library is here:

http://www.freepascal.org/~michael/articles/lazvlc/lazvlc.pdf

There are said, that TVLCMediaItem This class (a TCollectionItem descendent) represents 1 video or audio file or stream that can be played by the TVLCMediaPlayer class. Its main property is the Path, indicating the file that needs to be played. It has also an URL property or a FileDescriptor property for remote media. This collection item class is a wrapper around the libvlc_media_t type in Libvlc.

I used the example, that attached to this message, where i changed "Fplayer.PlayFile(FEVideo.FileName);" to
procedure TForm1.BplayClick(Sender: TObject);
var M: TVLCMediaItem;
begin
  M.Path:='http://192.168.0.108/video.mjpg?mute';
  FPlayer.SetMedia(M);
  Fplayer.Play(M);
end;         

It compiles, but doesn't show anything. In my opinion, the problem is in the wrong path, but i couldn't find any information about this, could you?
« Last Edit: December 23, 2014, 11:46:27 pm by delavar »
Windows 7x64 | Laz 1.2.6

delavar

  • Newbie
  • Posts: 2
Re: Using vlc library for capturing video from ip camera.
« Reply #1 on: December 23, 2014, 10:22:10 pm »
There are some problems with uploading.
Windows 7x64 | Laz 1.2.6

sadikacar60

  • New Member
  • *
  • Posts: 10
Re: Using vlc library for capturing video from ip camera.
« Reply #2 on: February 05, 2019, 04:24:27 pm »
did you solve the problem?