Recent

Author Topic: Media Player  (Read 22589 times)

Allie

  • Newbie
  • Posts: 1
Media Player
« on: November 12, 2008, 07:51:59 pm »
Hello everybody,

I have been browsing the forum for over an hour now, and trust me it is a struggle, so slow.
I can't find anything about playing a sound in Lazarus, you know like the mediaplayer in Delphi.

Can anybody give me a hint, or tell me what to look for.

I'm a really new to this so don't mind me asking maybe stupid questions.

Running Lazarus on Ubuntu 8.04LTS, seems to run without any problems up to now.

Thanks,
Alphons

Leledumbo

  • Hero Member
  • *****
  • Posts: 8111
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Media Player
« Reply #1 on: November 13, 2008, 03:30:54 am »

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Media Player
« Reply #2 on: May 20, 2009, 05:44:27 pm »
Is there anything like that for video?
Btw. how could an existing player get embedded in a component? Or how to embed anything else for that matter :)
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Media Player
« Reply #3 on: May 21, 2009, 12:24:10 am »
search the forum for the following keywords: wav, sound, linux.

Hello everybody,

I have been browsing the forum for over an hour now, and trust me it is a struggle, so slow.
I can't find anything about playing a sound in Lazarus, you know like the mediaplayer in Delphi.

Can anybody give me a hint, or tell me what to look for.

I'm a really new to this so don't mind me asking maybe stupid questions.

Running Lazarus on Ubuntu 8.04LTS, seems to run without any problems up to now.

Thanks,
Alphons
Lazarus/FPC on Linux

Leledumbo

  • Hero Member
  • *****
  • Posts: 8111
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Media Player
« Reply #4 on: May 22, 2009, 02:22:36 pm »
Quote
Is there anything like that for video?
AFAIK, not yet. Please create one ;)
Quote
Btw. how could an existing player get embedded in a component? Or how to embed anything else for that matter
I don't think LCL has that capability for now. I found an example on the net (for Windows), but haven't yet understood how to do it (the code is in C# if I'm not mistaken).

Command Prompt Explorer Bar (Embedding cmd.exe in explorer.exe):
http://www.codeproject.com/KB/cs/commandbar.aspx

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Media Player
« Reply #5 on: May 22, 2009, 04:04:24 pm »
I don't think LCL has that capability for now. I found an example on the net (for Windows), but haven't yet understood how to do it (the code is in C# if I'm not mistaken).

Command Prompt Explorer Bar (Embedding cmd.exe in explorer.exe):
http://www.codeproject.com/KB/cs/commandbar.aspx


I guess embedding a console application wouldn't be hard doing as described here: http://wiki.lazarus.freepascal.org/Executing_External_Programs. ;)
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

Leledumbo

  • Hero Member
  • *****
  • Posts: 8111
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Media Player
« Reply #6 on: May 25, 2009, 07:16:07 am »
Quote
I guess embedding a console application wouldn't be hard doing as described here
Well, embedding and simulating is a little bit different. Using TProcess as described in the link is simulating, embedding really takes the application interface (a form, for instance) and put it inside your component.

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: Media Player
« Reply #7 on: May 26, 2009, 02:29:00 pm »
Well, embedding and simulating is a little bit different. Using TProcess as described in the link is simulating, embedding really takes the application interface (a form, for instance) and put it inside your component.
Actually that is why i mentioned console applications - their user interface is actually comprised of standard inputs and outputs. A simple line based program's output could be completely "embedded" in our application's form if needed. Of course, for more complex examples with a TUI you'd need a terminal emulation but in essence that would be it. (Won't talk about DOS console TUI apps though ;) )
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

mica

  • Full Member
  • ***
  • Posts: 192
Re: Media Player
« Reply #8 on: May 27, 2009, 12:47:06 am »