Recent

Author Topic: tmplayercontrol  (Read 3900 times)

user5

  • Sr. Member
  • ****
  • Posts: 357
tmplayercontrol
« on: July 05, 2015, 10:17:45 pm »
Can anyone tell me a simple way to play multiple videos on a form? I've been trying to figure out how to use tmplayercontrol but it's all very confusing. I downloaded a tmplayercontrol .lpk from sourceforge but it hung up during installation. Is mplayer separate from tmplayercontrol? Thanks.

user5

  • Sr. Member
  • ****
  • Posts: 357
Re: tmplayercontrol
« Reply #1 on: July 05, 2015, 11:54:19 pm »
Well, I successfully downloaded and installed the TMPlayerControl component package. I just realized that mplayer is similar or the same as Windows Media Player. I have Windows Media Player Classic and Windows Media Player9 and I'm downloading mplayer.exe now. Is the code below correct?

[procedure TForm1.Button1Click(Sender: TObject);
begin
 MPlayerControl1.MPlayerPath:='c:\temp38\mplayer.exe';
 MPlayerControl1.Filename:= 'c:\temp15\bin\filecopy.avi';
 MPlayerControl1.Play;
end; ]

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: tmplayercontrol
« Reply #2 on: July 06, 2015, 01:03:02 am »
Well, I successfully downloaded and installed the TMPlayerControl component package. I just realized that mplayer is similar or the same as Windows Media Player. I have Windows Media Player Classic and Windows Media Player9 and I'm downloading mplayer.exe now. Is the code below correct?
similar yes, same no:
Read the wiki:
http://wiki.lazarus.freepascal.org/TMPlayerControl

The code looks quite ok.
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

 

TinyPortal © 2005-2018