Hi guys, this is my first article/tutorial on the forums. We are going to build a FULLY functional mediaplayer, and we are going to do it using Delphi (object pascal code) Some of you might be thinking "oh man this is soo hard" well the fact is that there's no easier programming language than Delphi's. With it you can do everything and no need for lots of lines of coding. OK anyways....let's get into the point. So what are the features of our mediaplayer?
1 - Ability to play audio files (almost any extension)
2 - Save playlists.
3 - Open playlists.
4 - Time displaying and many others.
Uhh...well I was thinking in posting the whole thing here but that will take a lot of space and it will just make it annoying, so instead just go here:
There's the complete article, step by step. Easy as a cake
Just to point out a few more things, I am currently working on new features for the mediaplayer. So we don't have to use winamp or mediaplayer classic anymore. You can use you OWN! mediaplayer, named as you want, it's yours.
Features coming on the next release:
1 - Separate window to play videos
2 - Transparency on the windows (like winamp)
3 - Scale on your windows.
4 - Display filename, more complex and professional way of doing it.
5 - ID3 Tag information (also for .wmv and .asf and .ogg files)
6 - Fully skin supported (it's going to have it's own skin engine)
7 - Live stream support (audio and video)
8 - A small client with it (in case you want to say something to the people watching your stream
9 - And many many more......
Please tell me what do you think of the current tutorial and your ideas to include on the next release. All the feeback will be greetly appreciated. Thanks and have fun with it!.
Sorry for the incorrect link. I posted this a while ago before I changed my coding. All my pages are now in php and that's why the html didn't work.
The application is for beginners, but they should have an idea of how to use Delphi. For those who don't they could join my forums and I can help them there. Right now I am working in a great varietry of tutorials, especially for php and delphi. All will keep you guys updated.
There is the MediaPlayer. I am using the inbuilt TMediaplayer of Delphi, not Mediaplayer on windows. You can use a dll for it as well, there are many components that handle media functions. You can for example use BassDLL
building a media player can be quite complex, depending on how sophisticated you want it to be.
you can check the vlc media player, it's open source so you can download the entire source code, it's written on C and it's daunting, hundreds and hundreds of classes.
Of course you can rely on Windows API, .net has some classes but you will probably have to go into the win32 api and although that's easier than building everything yourself it's not easy, the win32 api is huge and poorly documented.
If you want to build it for linux, you will probably have to go the way vlc has, with a lot of low level coding.
I agree Media Player is not as simple but its a brave effort tostart building the application .
I think that most of teh current players are really sophisticated so the new player should not only be visually appealing but should also have features to enhance the sound quality .. not to mention the ability to play various types of files. Trying to implement the low level coding like C will defiantely help as it will reduce the requiements of system resources.