View previous topic :: View next topic |
Author |
Message |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Sun Jul 01, 2007 3:57 am Post subject: [Help] Delphi MediaPlayer |
|
|
How can I use the MediaPlayer on Delphi? I have no idea how can I open music\songs, stop them or anything else. What should I do to activate the song to work on the MediaPlayer...?
Thx really much :]
_________________
|
|
Back to top |
|
 |
Simsgy Grandmaster Cheater
Reputation: 0
Joined: 07 May 2007 Posts: 581 Location: My new avatar <3
|
Posted: Sun Jul 01, 2007 4:00 am Post subject: |
|
|
Go to the "System" tab, and make a TMediaPlayer.
Then - on the onbject inspector, choose "File Name...", and enter the file location, then to play you can or press on the Play button on the TMediaPlayer (Which most of the people keep hidden because it is ugly), or the common use of MediaPlayer1.Play;
To pause do MediaPlayer1.Pause;
To rewind to the start of the song do MediaPlayer1.Rewind;
Hope I helped =)
_________________
|
|
Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Sun Jul 01, 2007 4:18 am Post subject: |
|
|
Simsgy wrote: | Go to the "System" tab, and make a TMediaPlayer.
Then - on the onbject inspector, choose "File Name...", and enter the file location, then to play you can or press on the Play button on the TMediaPlayer (Which most of the people keep hidden because it is ugly), or the common use of MediaPlayer1.Play;
To pause do MediaPlayer1.Pause;
To rewind to the start of the song do MediaPlayer1.Rewind;
Hope I helped =) |
The MediaPlayer cannot open mp3 files? :/
_________________
|
|
Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sun Jul 01, 2007 4:23 am Post subject: |
|
|
I use .res files, then your MediaPlayer can open them.
www.google.dk
Resources and Resource Streams.
theres probably more ways, but i use this one.
|
|
Back to top |
|
 |
Simsgy Grandmaster Cheater
Reputation: 0
Joined: 07 May 2007 Posts: 581 Location: My new avatar <3
|
Posted: Sun Jul 01, 2007 5:39 am Post subject: |
|
|
DevilGilad wrote: | Simsgy wrote: | Go to the "System" tab, and make a TMediaPlayer.
Then - on the onbject inspector, choose "File Name...", and enter the file location, then to play you can or press on the Play button on the TMediaPlayer (Which most of the people keep hidden because it is ugly), or the common use of MediaPlayer1.Play;
To pause do MediaPlayer1.Pause;
To rewind to the start of the song do MediaPlayer1.Rewind;
Hope I helped =) |
The MediaPlayer cannot open mp3 files? :/ |
Yes it can
Edit:
Kevinnn, I am using that too =)
_________________
|
|
Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sun Jul 01, 2007 5:43 am Post subject: |
|
|
but can you post me your MediaPlayer source here? because i have troubles starting/pausing the music using a script i found on www.delphi.about.com using images, not the media player itself.
or how do you load your files and then being able to play them using images?
|
|
Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sun Jul 01, 2007 7:29 am Post subject: |
|
|
Make an image. Double click on it. And put the code for it. It should look like this.
Code: |
procedure TForm1.Image1Click(Sender: TObject);
begin
end;
|
Rename TForm1 to whatever your form name is. And Change Image1 to whatever your Image name is. And of course put the code.
_________________
8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sun Jul 01, 2007 7:36 am Post subject: |
|
|
oib... i know that!!! im looking for how simsgy can play/pause his music like in his simsac, because it wont let me with the source i got...
|
|
Back to top |
|
 |
WinRAR Grandmaster Cheater
Reputation: 1
Joined: 16 Mar 2007 Posts: 890 Location: skullfucking dead children
|
Posted: Sun Jul 01, 2007 7:50 am Post subject: |
|
|
ok now WTF is delphi?????
|
|
Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
|
Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Sun Jul 01, 2007 11:46 am Post subject: |
|
|
I'm pretty glad that Simsgy and Kevinnn help people with things I taught them. Go delphi. >=]
|
|
Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sun Jul 01, 2007 11:49 am Post subject: |
|
|
yea, thanks alot Renko. could you go msn i need some help
|
|
Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Jul 01, 2007 1:12 pm Post subject: |
|
|
Renkokuken wrote: | I'm pretty glad that Simsgy and Kevinnn help people with things I taught them. Go delphi. >=] |
You are a good person Renko,but 99% of what Simsguy know is 1% of what i know since he leeched my source.
|
|
Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Sun Jul 01, 2007 1:38 pm Post subject: |
|
|
Simsgy wrote: | DevilGilad wrote: | Simsgy wrote: | Go to the "System" tab, and make a TMediaPlayer.
Then - on the onbject inspector, choose "File Name...", and enter the file location, then to play you can or press on the Play button on the TMediaPlayer (Which most of the people keep hidden because it is ugly), or the common use of MediaPlayer1.Play;
To pause do MediaPlayer1.Pause;
To rewind to the start of the song do MediaPlayer1.Rewind;
Hope I helped =) |
The MediaPlayer cannot open mp3 files? :/ |
Yes it can
Edit:
Kevinnn, I am using that too =) |
It tells me that I can open only WAV files with that :/
_________________
|
|
Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sun Jul 01, 2007 1:41 pm Post subject: |
|
|
Kaspersky wrote: | You are a good person Renko,but 99% of what Simsguy know is 1% of what i know since he leeched my source. |
What are you talking about? You don't write code, you just copy it.
|
|
Back to top |
|
 |
|