Page 1 of 3

JLC's Media Player v1.0 Beta 1.2

Posted: Tue May 30, 2006 8:37 am
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!

Posted: Tue May 30, 2006 6:25 pm
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.

Posted: Tue May 30, 2006 6:31 pm
by Joakim Christiansen
:)
I might try to make that in a never version, guess I need some drag and drop examples then.

Posted: Tue May 30, 2006 6:37 pm
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.

Posted: Tue May 30, 2006 7:03 pm
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 

Posted: Tue May 30, 2006 7:04 pm
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

Posted: Tue May 30, 2006 7:18 pm
by rsts
Sent a playlist - disregard [/list] at the end - added accidentally :oops: not a part of the playlist.

cheers

Posted: Tue May 30, 2006 7:23 pm
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!

Posted: Tue May 30, 2006 8:00 pm
by rsts
Tried to narrow it down to a particular song, but it fails on any of them :(

cheers

Posted: Tue May 30, 2006 8:09 pm
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

Posted: Tue May 30, 2006 8:33 pm
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.

Posted: Tue May 30, 2006 8:38 pm
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

Posted: Tue May 30, 2006 8:57 pm
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:

Posted: Tue May 30, 2006 9:25 pm
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)

Posted: Tue May 30, 2006 9:50 pm
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 :?