JLC's Media Player v1.0 Beta 1.2

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

JLC's Media Player v1.0 Beta 1.2

Post by Joakim Christiansen »

About:
------
JLC's Media Player is a cute little media player with M3U playlist support.
It's designed to be simple and easy to understand and not contain all that stupid features you'll never use.
And that's why it's only 29kb big.

Features:
---------
Play any media format supported by windows multimedia.
Open, edit and save M3U playlists. (the most common playlist format)
Open or add multiple files.
Drag and drop files into the playlist.
Compact and easy interface.
Very small, only 29kb!

Version history:
--------
1.0 Beta 1.1:
Fixed: Displayed length for movie files.

1.0 Beta 1.2:
Added: Support for drag and drop.
Fixed: Bug in the playlist after you added files to it.

Image
Click to download

You can also right click on a media file and select it to be opened in JMP, it works perfectly!
Have fun finding those stupid bugs!
I might release the source after I made a "pro" version of it which will have a "media library" and all that crap!

And btw, on my computer it reports wrong length on my mp3 files, I think this is a problem with MCI, but please check this!
Last edited by Joakim Christiansen on Tue Jun 06, 2006 5:55 am, edited 5 times in total.
I like logic, hence I dislike humans but love computers.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

thank you - i like it because it is small and it works well !
:P
it would cool if drag'n'drop and systray icon were supported.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

:)
I might try to make that in a never version, guess I need some drag and drop examples then.
I like logic, hence I dislike humans but love computers.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Looks nice but crashes on my system when I open an existing winamp playlist :(

this program has encountered an error and needs to close - send error report, etc.

cheers

winxp sp2

The mp3's referenced in the playlist are on a different drive than the program location.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

here is a drag'n'drop ready to use example :

Code: Select all

If OpenWindow(0, 100, 100, 300, 100, "drag'n'drop", #PB_Window_SystemMenu) 
  
  DragAcceptFiles_(WindowID(0), #True) 
  
  Repeat 
    
    Select WaitWindowEvent() 
      
      Case #PB_Event_CloseWindow 
        
        Break
        
      Case #WM_DROPFILES 
        
        *hDrop = EventwParam()
        
        If DragQueryPoint_(*hDrop, @p.POINT)
          
          Debug "Point: " + Str(p\x) + ", " + Str(p\y)
          
          count.l = DragQueryFile_(*hDrop, $FFFFFFFF, #Null$, #Null) 
          
          Debug "Count: " + Str(count)
          
          For i = 0 To count - 1 
            
            nBytes.l = DragQueryFile_(*hDrop, i, #Null, #Null) + SizeOf(Character)
            
            file.s = Space(nBytes)
            
            DragQueryFile_(*hDrop, i, @file, nBytes)
            
            Debug "File " + Str(i) + ": " + file
            
          Next
          
          DragFinish_(*hDrop) 
          
        EndIf
        
    EndSelect 
    
  ForEver
  
EndIf 
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

That's weird rsts, could you pm me the playlist?
Everybody should test if they have the same problem!

Thank you Flype! :D
I like logic, hence I dislike humans but love computers.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Sent a playlist - disregard [/list] at the end - added accidentally :oops: not a part of the playlist.

cheers
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

rsts wrote:Sent a playlist - disregard [/list] at the end - added accidentally :oops: not a part of the playlist.

cheers
Thank you!
It parsed the list without a crash here, it must be when it opens one of the file to check if it exists and read is title tag that something wrong happens!
This must be one of those crasy bugs... :lol: But i'll try to solve it!
I like logic, hence I dislike humans but love computers.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Tried to narrow it down to a particular song, but it fails on any of them :(

cheers
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Created a list with one song from Kukulkan's mp3 download (offtopic forum).

Still fails.

Can you play his songs?

cheers

#EXTM3U
#EXTINF:401,VSchmid - AudioTrack 03
V:\MP3\03-sparetime-vschmid.mp3
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

rsts wrote:Can you play his songs?
Works here, maybe I should make a V partition and try the same folder and such, i'll do it in a moment.

EDIT:
I now made a folder on V called MP3 and put that song in it, and used the exact same playlist and it works.
I like logic, hence I dislike humans but love computers.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Or I could create an mp3 list on another drive and try it.

Any particular drive you would like to see?

c,d,e,f,g,h,i,j,k,m,o,p,r,t,u,v,x?

cheers
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

I don't think it would help, but I might try to use the OnError library to add error checking in the next version and maybe it'll tell us what's wrong!

EDIT:
Looks easy enough, i'll add the "debugger" version in a moment! :wink:
I like logic, hence I dislike humans but love computers.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Ok, the new version is up.
It now has a debugger which will report errors! :D
And I fixed the displayed length for movie files.
Let's see what it reports now rsts! :D

If you encounter an error then try the one not compressed with upx also!
Download
Download (not compressed in upx)
I like logic, hence I dislike humans but love computers.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

No errors, no nothing - just immediately disappears :(

cheers

same thing happens if I attempt to open an mp3 directly

I get an error (nothing really, just programs goes away) even if i put the mp3 and the player in the same directory :?
Post Reply