Media Player lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- Allie · 2008-11-12 18:51 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 · 2008-11-13 02:30 http://wiki.lazarus.freepascal.org/ACS ---------------------------------------------------------------------- TurboRascal · 2009-05-20 15:44 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 ---------------------------------------------------------------------- Troodon · 2009-05-20 22:24 search the forum for the following keywords: wav, sound, linux. Quote from: Allie on November 12, 2008, 07:51:59 pmHello 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 · 2009-05-22 12:22 QuoteIs there anything like that for video?AFAIK, not yet. Please create one QuoteBtw. how could an existing player get embedded in a component? Or how to embed anything else for that matterI 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 · 2009-05-22 14:04 Quote from: Leledumbo on May 22, 2009, 02:22:36 pmI 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. ---------------------------------------------------------------------- Leledumbo · 2009-05-25 05:16 QuoteI guess embedding a console application wouldn't be hard doing as described hereWell, 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 · 2009-05-26 12:29 Quote from: Leledumbo on May 25, 2009, 07:16:07 amWell, 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 ) ---------------------------------------------------------------------- mica · 2009-05-26 22:47 http://forum.lazarus.freepascal.org/index.php/topic,5182.0.html Mplayer