Recent

Author Topic: VLC player in Lazarus on UBUNTU  (Read 9031 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 286
VLC player in Lazarus on UBUNTU
« on: September 02, 2015, 12:57:19 pm »
Does anybody know weither it is possible to set VLC player up in a Form on a UBUNTU linux desktop. In replacement of ActiveX. Andybody got source for components?

Greets,
Wouter van Wegen

woutervanwegen@mijnplinq.nl

Thaddy

  • Hero Member
  • *****
  • Posts: 18729
  • To Europe: simply sell USA bonds: dollar collapses
Re: VLC player in Lazarus on UBUNTU
« Reply #1 on: September 02, 2015, 01:29:36 pm »
Freepascal, FPC comes with ./packages/libvlc which is part of the standard distribution. Note the demo's.
I am not very interested in Lazarus components, but maybe there are some leveraging that.

libvlc doesnt use activex, it's the direct interface.
« Last Edit: September 02, 2015, 01:33:59 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

pascalbythree

  • Sr. Member
  • ****
  • Posts: 286
Re: VLC player in Lazarus on UBUNTU
« Reply #2 on: September 02, 2015, 02:09:31 pm »
On:
ftp://ftp.freepascal.org/pub/fpc/snapshot/

fpc-3.1.1.i386-linux.tar.gz

There is a pascal version above 2.6.4 that i need for compiling a component to view VLC player on a Lazarus Form.

Can somebody explain howto install it? Or a link to a tutorial?
The .tar.gz does not include a install.sh. Hwoto install over the latest vesion from www.freepascal.org
 
Greets, Wouter van Wegen

********************************************************

unit reglazvlc;

{$IF FPC_FULLVERSION<20701}
{$ERROR needs at least FPC 2.7.1}
{$ENDIF}

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, vlc, lclvlc, lresources;

Procedure register;                     

Frank

  • Jr. Member
  • **
  • Posts: 70
Re: VLC player in Lazarus on UBUNTU
« Reply #3 on: February 06, 2016, 10:11:49 pm »
@pascalbythree : If this is not too late, I have my own version of vlc.pas that pre-dates the official fpc/lazarus one, that worked with fpc-2.6.x Slackware linux for music, and recently video (only tested on windows). It's not pretty, but it has simple functions to play/pause/stop media ( as well rip & SHOUTcast). If your still interested, let me know.

JD

  • Hero Member
  • *****
  • Posts: 1910
Re: VLC player in Lazarus on UBUNTU
« Reply #4 on: February 27, 2016, 04:21:31 pm »
@pascalbythree : If this is not too late, I have my own version of vlc.pas that pre-dates the official fpc/lazarus one, that worked with fpc-2.6.x Slackware linux for music, and recently video (only tested on windows). It's not pretty, but it has simple functions to play/pause/stop media ( as well rip & SHOUTcast). If your still interested, let me know.

Does your version require that VLC Player be installed or can it just work will the two VLC Player dlls?

Thanks,

JD
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

Frank

  • Jr. Member
  • **
  • Posts: 70
Re: VLC player in Lazarus on UBUNTU
« Reply #5 on: February 28, 2016, 10:02:06 pm »
@ JD   It works with the two dll's (libvlc & libvlccore) AND any plugins
             you put in the plugins folder.
           I have, in the past, simply zipped them from an install & then
             dumped them into my application's folder (plugins must be in sub-folder "plugins").
           I hope this answers your question.

  Frank

  Edit : I suppose you could individually compile them from source,
           if you wish (as I have done for Slackware64 14.1)...
« Last Edit: February 28, 2016, 10:18:43 pm by Frank »

 

TinyPortal © 2005-2018