MPlayer

007bond
As I said in the 1 or 2 post nobodies thread, I have written a program called MPlayer that will play music. It is a small app, unlike WMP 7.1 (I run Win 98, which means no v9 or v10). You can find the latest release (but certaintly not the most up-to-date) version at winsite.com by searching for Music Player.

However, I have had a big big problem with the code that sets the currrent position in the code. I'm using the WMP 6.4 (or similar) control that I found on the computer (beats me why I can't find v7.1). Anyway, at first, I just had it use a basic counter, so that there were no minutes, just seconds.

A couple of weeks later I wrote a huge spiel of code, which did the job, except it didn't increment the minutes when it should have. This code used an If/Else Statement that subtracted a certain value depending on what the value was, and a select case statement, one for each number from 0-60 inclusive. It was also now in a timer.

Just tonight, I had my dad look at the code (him having written quite a lot of BASIC programs in the past), and we refined it to about 10 lines. It looks fine, but it just stays at 0:22 no matter what time it is at. It is still in a timer.

I want to publish the sourcecode in the timer here, but I'm not sure, as I'm thinking of one day full on releasing it like Microsoft did with WMP. So, I've decided that anyone who is willing to help me (seriously) will have the code emailed to them. They can then email me back. This is to avoid a public release of this code. Afterall, you're hardly likely to find the sourcecode for WMP 10 lying around on the Internet (legally, of course), now, are you?

Thanks to anyone who can help. I know my email says [email protected], but I'm not sure if all email is actually being delivered there, so if you are going to help, email me @ [email protected]

Farvardin
just for you to know, there is already an other application called mplayer :

http://www.mplayerhq.hu/homepage/design7/screen.html

Cryophile
Is that by any chance the media player for linux, Farvardin?

GameBoy
Farvardin wrote:just for you to know, there is already an other application called mplayer :

http://www.mplayerhq.hu/homepage/design7/screen.html


thats movie player though right?

there is probably something called Media Player anyway. Try something original though.

A-Player (Audio Player)

007bond
that's all well and fine, but it's soon going to have video support in it. There is already code for the video player in it, it's just not accessible in the current version.

GameBoy
007bond wrote:that's all well and fine, but it's soon going to have video support in it. There is already code for the video player in it, it's just not accessible in the current version.


give it the name it came with when you downloaded the sourcecode from sourceforge... :roll:

007bond
I never downloaded it from SourceForge. It is 100% my code. I started it from scratch (and with the help of the WMp 6.4 OCX). Otherwise I've done everything from button images to color schemes to ID3 Tag support (yet to be finished).

007bond
OK, problem fixed (with a lot of thinking and rewriting). But if I need any assistance I'll call again.

I think Im Dead
Ste wrote:give it the name it came with when you downloaded the sourcecode from sourceforge... :roll:


I think that's a "Ste only" move.

GameBoy
I think Im Dead wrote:

"Ste"

give it the name it came with when you downloaded the sourcecode from sourceforge... :roll:



I think that's a "Ste only" move.



Doubt it, i don't code.

Farvardin
yes, it's from Linux, and it's also ported to Solaris, Irix, Mac OS X and several other OS.

If you want to find another name for your own project, I suggest CMPlayer (codingmaster player) ;)

007bond
I'm not looking for another name for my project, I wanted help with code, and fixed it myself after a lot of doing.

On a totally unrelated matter, this is my first post on my new computer, which, after almost 4 1/2 months, is working again with a stable installation of Win XP! Woohoo!

GameBoy
007bond wrote:I'm not looking for another name for my project, I wanted help with code, and fixed it myself after a lot of doing.

On a totally unrelated matter, this is my first post on my new computer, which, after almost 4 1/2 months, is working again with a stable installation of Win XP! Woohoo!


newb :roll:

Cryophile
Windows XP? Stable? Hah. :lol:

GameBoy
S1aY3R wrote:Windows XP? Stable? Hah. :lol:


i second that. i prefer windows 2000 but my new computer doesn't like it for some reason, or atleast the drivers don't.

davidw
I've always found XP to be quite stable. ME crashed on a daily basis but XP seems pretty much okay.

GameBoy
davidw wrote:I've always found XP to be quite stable. ME crashed on a daily basis but XP seems pretty much okay.


well XP doesn't crash, it just seems that i get alot more spyware and trojans than i did with 2000.

I think Im Dead
You can't really compare the two, one was meant for corporate use, the other was meant for home use with an "optional corporate package".

Either way Spyware and Trojans aren't the fault of the operating system but the operator.

007bond
ITID is right. And what I meant by stable is working. THe previous incarnation of it simply was not

GameBoy
How do you mean by the fault of the operator. I have 2 machines, one with the windows 2000 operating system and one with the windows XP operating system. Both with the same internet connections, and more or less the same programs, except my 2000 machine has an installation of VB Studio 6. It seems to be more of a problem with Microsoft internet explorer. Since i started using MyIE2, i haven't had as many popups and random program downloads as i did with IE.

At the end of the day, my opinion of windows XP is that it is not as good as Windows 2000. And before you say it ITID, yes, my opinion sucks and doesn't count. :roll:

Farvardin

I've always found XP to be quite stable.



the other big problem with windows is it allows every viruses to enter the system. It as so many security holes, even win98 seems to be secure in comparison.

I think Im Dead
I think Im Dead wrote:You can't really compare the two, one was meant for corporate use, the other was meant for home use with an "optional corporate package".

paul_one
Well, 98 still had IE built into the OS for some reason.
Although the problem got worse as it went along.

The true solution IS to get another browser that seperates itself from the OS... Then to slap users that don't see the "spyware" in the programs they download & use.

I think Im Dead
What, a free weather monitor with my KaZaA? SW33Tz0rz1

steve the gaming guy
People are still using Kazaa? Wow... I do hope your joking about the 'free' weather thing. You get a whole lot more 'free' stuff than you really want. If you do or did install Kazaa, feel free to scan your system with Adaware or Spybot and see what comes up. I'm sure you'll find lots of nasty things roaming around on your PC.

Good luck,
steve the safer guy :wink:

007bond
Kazaa are going under. Being in Australia, where Sharman Networks (the creators of Kazaa, for those who didn't know), I have heard a lot of stuff about Kazaa. It is going out of business and is going to be shut down by the courts like Napster. It is only a matter of months now.

By the way, how did we get into this discussion?

I think Im Dead
Ste was flaming you while gloating over his warez.

paul_one
Kazaa being shut down - I don't see it happening - maybe closing down because of lack of revenue - I don't know though.

The courts have tried and haven't succeeded against Kazaa because it doesn't just share music - it shares anything the user wants - meaning they can't fully control what is being transmitted.

I've heard alot about bittorrent lately. Maybe I'll look into it.

GameBoy
I think Im Dead wrote:Ste was flaming you while gloating over his warez.


ub3r 1337 h4x0r w4r35

Cryophile
Right. For the record: Bit Torrent owns all.

007bond

ub3r 1337 h4x0r w4r35


Great. Now Ste is going into jibberesh mode.

GameBoy
i have BT, dunno why....just told me i needed it to extract some crappy program or whatever.

007bond wrote:

ub3r 1337 h4x0r w4r35


Great. Now Ste is going into jibberesh mode.



Better than thinking im 2 people.

I think Im Dead
Ste wrote:i have BT, dunno why....just told me i needed it to extract some crappy program or whatever.


ub3r 1337 h4x0r indeed.

Maybe the reason you have trojans and spyware is because you do whatever your computer "just tells" you to do for whatever reason. Don't install something if you have no idea what it does you tool.

Windows 2000 is sweet huh? Retard.

Cryophile
You were told you needed BT to extract something? :lol:
Right. I am resisting the urge to laugh uncontrollably.

GameBoy
S1aY3R wrote:You were told you needed BT to extract something? :lol:
Right. I am resisting the urge to laugh uncontrollably.


i forget what it was...I got a program from eDonkey and it was a torrent extention. To be perfectly honest nothing is wrong with my computer, nor have i had problems since. 2000 IS good, just because i prefer the operating system doesn't make me a "retard". A retard would be somebody who prefers the many features of windows 3.1.

And i don't just do what my computer tells me to do. The reason why idiots get viruses these days is because they see a security window popup and just click yes because they won't realise what the crap it is. The common download is that Gator crap, and Gain from shareware programs such as Kazaa (which i do NOT use).

The reason i HAD trojens and spyware is because of Kazaa, and internet explorer. Seems the only problem with IE now is that it lets some pop-ups through even if i have a pop-up blocker (from Google) installed. But i can get rid of those when i get chance to.

007bond
Ste's right. The main reason y most people get viruses and spyware these days is because they are not educated in the matter. If people watched what they were clicking on, maybe they would be better off.

And with Kazaa, everyone knows that it has Spyware. You either use Kazaa Lite (which is supposed to be shut down, or at least in Oz), or you use Win MX or BearShare, or another one like that.

paul_one
Hmmm - I might have to give win MX another go... I'm thinking Alex will come across any minute and clear certain posts - maybe even close the thread...

Anyway - Kazaa lite is obtainable still - although the development team have ceased because of a copyright infringement.

And spyware comes through from the cause of the user mainly - viruses vary, but 50%+ of those are user-caused too.

GameBoy
on the subject of MPlayer....

---------------

[suprising comment]

Interesting, i like it. Despite the fact that the graphics don't make it look professional, the features are somewhat useful, and in time i could see the project going far. However, i don't think an MDI form should be used, and the menu should be located on the MP3 player itself :)

[/suprising comment]

-----------------------

[unsuprising comment]

More proof that you're CodingMasters:

I believe CodingMasters name was Matthew G. On YOUR program (MP3 Player), the contact email is as: [email protected]

Case Closed...

[/unsuprising comment]

-----------------------

That said, i'm inspired to make my own MP3 player, perhaps you could guide me on it. Thanks

paul_one
He uses the mplayer 6.4 plugin DLL thingy that's easily available in VB6... It really isn't that hard at all....

... But you end up with a product which is basically that - WMP 6.4
I'd rather have Winamp 5.05 myself - fit's really nicely at the bottom of my screen in-place of the task-bar.

007bond
I moved it into MDI to make it easier to manage, but it was only ever going to be temporary. Especially becayse, as you said, the menus appear in the MDI window and not the main window, for reasons unknown. Once I finish v4, it will have a playlist function, button styles, more color schemes, hopefully skin support, CD support, as well as improved lyrics support.

I use the WMP 6.4 control and not the 7.1 or later, because
1) the 7.1 control sucks
2) I can't get WMP 9/10 on my development machine coz it's only Win 98 [urge to call Bill Gates a really bad thing]
So i'm stuck with the 6.4 thing, until I write my own Media Player thingy.

But I will say, that my real goal with this application is to make it as good as WMP, and possibly better. Therefore it will put CodingMasters on the map in the software world and hopefully lead to other useful programs being written.

[EDIT] I can tell you now that Microsoft will certainly not be buying MPlayer off me if and when it does get as good as WMP.

GameBoy
Suggestion:

Streaming video suport and radio support. thats what makes winamp better than WMP.

007bond
I'm currently putting in Video support for MPlayer. There is actually code in the current version for video, but it's only really a few lines. It's more visual then code. I'll look into radio streaming when I finish other things in MPlayer.

paul_one
........
I'm sure they won't be buying it off you too!

And why isn't video automatic? The WMP plugin just needs to load the video/streaming file.

... And what do you mean "when"... It already IS as good as WMP6.4.

GameBoy
lol, i got this far on my MP3 Player....
I gave up though, i don't know enough to make a full MP3 player yet, maybe i'll continue it another time.



Has a custom control which allows me to completely customise a scrollbar (as you can see on the right). All the graphics were done by me :)

007bond
to CW: no it isn't. It has a lot more features.
Especially in the new version which I am writing now (v4). It will have a playlist function, button styles (done by friends), and play speed, and that's just a small list.

To Ste, the download link is not working.

paul_one
Those "additions" aren't difficult, and it already had primary list support (although it DID have to be in the form of an .M3U file).

GameBoy
007bond wrote:to CW: no it isn't. It has a lot more features.
Especially in the new version which I am writing now (v4). It will have a playlist function, button styles (done by friends), and play speed, and that's just a small list.

To Ste, the download link is not working.


What download link?

And are you using Object Explorers for playlist (or something similar). I'm reading and writing some examples of those now, very easy, but repetative.

007bond
Sorry, Zelimos. My home computer which has Firefox didn't load the image, so I didn't know what I was supposed to be looking at. Now that it has, however, I can comment.

The graphics are good, but they are obviously done in something like Photoshop, which I don't have. Just wondering, are you using ur own Mp3 code, or are you using the WMP control?

To CW, play speed isn't difficult, but button styles are, and the playlist thing most defenitely is. You would be suprised.

GameBoy
007Bond. I've put my MP3 Player on hold as i dont quite think i have the experience to code a good MP3 Player. Yes i use photoshop for my graphics work.

I've ordered 3 Visual Basic books through my college library, and 2 of them should arrive today, as they were coming from another campus, and the other one will arrive in a week as it has to be taken from a library outside of the college (as it's lost). These books have the following titles:

Dummies 101: Visual Basic
Sams Visual Basic in 6-21 days
Microsoft Visual Basic 6 Professional

And i already have Sybex Visual Basic 6 Complete.

If you want some good advice (not sure whether you post on VB forums), you can always sign up here:
http://www.xtremevbtalk.com/index.php

007bond
I've tried about 3 times to sign up to vbforums, and it hasn't worked. The books that you quoted I believe are very good, especially the Sams one. Thanks for the website though.

About ur Mp3 Player. I will admit that I am hardly an expert coder. I do however, experiment. You should do that too, you might get somewhere.

paul_one
Yes - very hard 007... Loading a filename from the common dialog and then adding it to an array... A-huh...

Ste - good for you. Read all you can.

007bond
thought i may as well use this thread. after getting over a rather sketchy period at school (damn english teacher), i managed to get back to MPlayer. I added playlist support just fine, apart from one thing. It won't go to the next song when it finishes the first one, it always skips one, and goes two down the list. Plus, if it can't go two down the list, it produces an error. Does anyone have any ideas? I believe the code has to go in the PlayStateChange event of the WMP control, for those of you wondering.

[EDIT] Don't worry, if ound some code on planet source code, and it's now working. so you don't have to go working your bum off :D

GameBoy
007bond wrote:[EDIT] Don't worry, if ound some code on planet source code, and it's now working. so you don't have to go working your bum off :D


*Wipes sweat for forehead* Phew... ;)

Look forward to seeing it, keep up the good work.

007bond
it's almost done. i just have to catch one of my friends on MSN today, and i should be able to release v4 either today or tomorrow.

GameBoy
v4.... what happened to the other 3 versions?

007bond
i released them before I announced MPlayer on these forums.

This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums