rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: zeropt on February 19, 2006, 12:31:28 PM

Title: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: zeropt on February 19, 2006, 12:31:28 PM
I have developed a small *client* browser (mp3link) using the basic components in BCB 2006. In this program, you are able to click on a mp3 and it will start playing while downloading in background. All the events are handled therefore the mediaplayer won’t appear to bother you. The next song will also be automatically started after the current one completed. Besides these, I’ve tried to make a .wpl file editor for those who want to listen their favorite songs. Note that the playlist file is compatible with Windows Mediaplayer 9.0 or latter.

Now, I’d like to share the binary and source for those who enjoy HFS (nice project). If you are interested in my work, please visit http://140.112.23.26 with username/password : “mp3link”. I have a few .mp3 files in two folders for testing and one folder for mp3link binary/source. In the binary file pack (mp3link15.zip), URL.txt can be replaced by the address of your site. Please feel free to share the experience to us and modify it for your own purposes. However, there are still some limitations in this initial version. For example, only .mp3 files are supported. I’ve tested it on Windows XP with HFS 2.0 Beta 35, but it seems have some problems in win98. I’m glad if you can help me to test it and give me some ideas in this work. If you have any good idea, I’m glad if we can discuss the techniques in the code or you can upload your modifications to my site (folder mp3link is able to upload). Maybe it's possible to add more features in the future versions.

Function Summary:
1. Streaming .mp3 files (background play and downloading simultaneously)
2. It can create/load/save the Microsoft Windows Media Player supported "Playlist" file (.wpl)
3. It supports most of the http file servers. Needless to say, HFS is the best choice :D

mp3link 1.6alpha02 is now available from http://140.112.23.26/mp3link%20project/mp3link16alpha02.zip (http://140.112.23.26/mp3link%20project/mp3link16alpha02.zip)

/Sincerely,
Zeropt (zeropt0816@yahoo.com.tw)


Title: My work for streaming .mp3 files
Post by: ANTS on February 19, 2006, 01:18:54 PM
Hi.

Great idea! However, when I click an mp3 file, nothing happens.

I have Windows XP.
Title: My work for streaming .mp3 files
Post by: zeropt on February 19, 2006, 02:06:45 PM
Thank you!
My server has only 128MB of ram, so it's a little slow..
When you click on any .mp3, it will start playing in few seconds, meanwhile, a bubble hint will show the song name in the tray icon.
Title: My work for streaming .mp3 files
Post by: maverick on February 19, 2006, 03:02:07 PM
Well done zeropt!  Good Start!  Seems to work very well from your site.

I'm running Win XP Pro SP2.  I found that after a mp3 file is played, it is stored in the Temporary Internet File Folder and quickly deleted once mp3link is closed.  It would be much better if these files could be saved in a better folder of your choice -> that is if the person listening to them would like to save them as new mp3's for his collection.  If, however, they just want to listen to streaming music, the temporary internet file folder would be best.  What I'm saying is that a person should have a choice of saving or not.

I tried your mp3link on my site.  The pages show up properly *but* the Background mode in your VIP Browser and your Playlist Editor don't seem to recognize any mp3 files that are in my mp3 folders as nothing shows up.  Therefore, nothing is selectable and nothing plays.  I can manually click on the mp3's shown in the file listing, but all I get is the normal open/save dialog.  Any ideas?? (Media Player isn't my default player but that shouldn't matter as it is available when called).
Title: My work for streaming .mp3 files
Post by: zeropt on February 20, 2006, 01:30:04 AM
Thanks maverick, I got it!
The column field "Filename" in the template must be replaced as "description"
Because I use this tag to identify whether a folder contains mp3 or not.
In fact, I find that is not necessary at all.
Title: My work for streaming .mp3 files
Post by: maverick on February 20, 2006, 03:08:55 AM
You must be referring to the template entry <a href="%encoded-folder%?sort=n"><span class=column>Filename</span> right?  You are saying to replace the word "Filename" with "Description".  Why didn't you just leave it as Filename to avoid this problem?  That particular template entry has to do with "Sort column by Filename".  Changing the column name to "Description" makes no sense for the function that it does. (to test I made a temporary name change to "Description" and it works as stated but suggest to just leave the name as "Filename" to avoid this problem with others).

Does mp3link detect and play .wpl files produced by your editor?
Title: My work for streaming .mp3 files
Post by: Anonymous on February 20, 2006, 04:34:41 AM
Quote from: "zeropt"
Thank you!
My server has only 128MB of ram, so it's a little slow..
When you click on any .mp3, it will start playing in few seconds, meanwhile, a bubble hint will show the song name in the tray icon.

Hi, I was talking about my own server which has 1024mb ram. I'll try it again.
Title: My work for streaming .mp3 files
Post by: Anonymous on February 20, 2006, 10:24:04 AM
zeropt
 
Your mp3link site "stopped" working.  No music is played.
Title: My work for streaming .mp3 files
Post by: Anonymous on February 20, 2006, 06:44:47 PM
zeropt

My mistake.  It is working fine.  Forgot to log in with your mp3link browser. :#)
Title: My work for streaming .mp3 files
Post by: maverick on February 20, 2006, 09:53:39 PM
Further testing mp3link on my site shows that every mp3 in a folder is loaded 3 times in the browser background mode and in the playlist editor.  For a while there I couldn't figure out why the same song kept repeating itself over and over again.  Switched mp3 folders, reloaded mp3link, but the results were the same.

Looks like a bug.
Title: My work for streaming .mp3 files
Post by: Anonymous on February 21, 2006, 02:02:42 AM
In the program, I use a function CppWebBrowser1BeforeNavigate2 to intercept the event occured by clicking on any url link. If the extension filename is ".mp3", the default action (opening media player or a corresponding application) is suppressed and I use my internal procedure to play the music in real time. However, the message with the suppressed action was being transfered to the server. Although there are two or three loading actions, the mp3link download the full file only one time.
Title: My work for streaming .mp3 files
Post by: maverick on February 21, 2006, 06:57:09 AM
Quote from: "Anonymous"
In the program, I use a function CppWebBrowser1BeforeNavigate2 to intercept the event occured by clicking on any url link. If the extension filename is ".mp3", the default action (opening media player or a corresponding application) is suppressed and I use my internal procedure to play the music in real time. However, the message with the suppressed action was being transfered to the server. Although there are two or three loading actions, the mp3link download the full file only one time.
I'm assuming that the above post is from zeropt.

Yes, even though there are 3 loading actions in your browser background mode and playlist editor, the mp3 file is only downloaded 1 time *but* played and repeated 3 times before the next new mp3 in the queue is played.  That shouldn't happen.  Therefore a bug and should be fixed.

Why from your site, the mp3 is loaded only 1 time in background mode and playlist editor and a new mp3 starts right after the previous mp3 is played only once?  You are missing to tell us something on how you made it to work properly.
Title: My work for streaming .mp3 files
Post by: zeropt on February 21, 2006, 08:36:39 AM
Hi, maverick, Can you give me a testing account on your site? The HFS working on my site is 2.0 alpha20 *Chinese* version. I think the environment might be different with yours. Maybe I can find the bug If I can test my code with your server. My email is zeropt0816@yahoo.com.tw
Title: My work for streaming .mp3 files
Post by: maverick on February 21, 2006, 10:46:53 AM
Hi zeropt.  Check your PM for instructions.

You are using a very, very OLD version of HFS.  Maybe that has something to do with the problem.  The current version is v2.0 BETA 37.  The alpha versions were finished about a year ago.
Title: My work for streaming .mp3 files
Post by: zeropt on February 22, 2006, 04:51:05 AM
The mp3link has been updated to 1.6alpha01. Thanks maverick for his great help. Hope the new version will resolve most of the problems encountered. :D
Title: My work for streaming .mp3 files
Post by: maverick on February 22, 2006, 07:24:16 AM
It's looking good. :)

Check your PM.
Title: My work for streaming .mp3 files
Post by: moondog on February 23, 2006, 05:55:03 PM
doesnt work in fire fox :) just letting u know
Title: My work for streaming .mp3 files
Post by: maverick on February 23, 2006, 07:17:44 PM
Quote from: "moondog"
doesnt work in fire fox :) just letting u know
Firefox?  It wasn't meant to work in firefox.  The mp3link executible opens an Internet Explorer browser window.
Title: Re: My work for streaming .mp3 files
Post by: anonym2467 on December 02, 2006, 04:59:08 PM
Firefox is just a buggy browser for newbies.. :(
everytime you do a little sophisticated scripting, you can be sure Firefox is going crazy LOL.. Firefox = crap for newbies ^
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: zeropt on December 21, 2006, 03:20:54 PM
(*NEW VERSION 2.01*)
The new version v2.01 is available on http://140.112.23.26:6897/mp3link.exe (http://140.112.23.26:6897/mp3link.exe)
The testing page is http://140.112.23.26:6897 (http://140.112.23.26:6897). You can try it on your own HFS.

New Features:
1. Compatibility is extended to Windows 98/ME/2000/XP (have not tested on Vista), but DIRECTX 9.0 must be installed
2. It is able to Play & Pause at ‘any’ time now
3. New option : 'Lock on the playing page', the default mode is ‘on’. In this mode, change the directory won't bother you (especially you are editing the playlist)
   (Note: Lock on mode will be automatically enabled when double click the PlayList Box on the right side)
4. New option:  Let Messenger show the file I’m listening
5. Enhanced PlayList editor: Inverse Selection, Duplicated Selection and support simple drag and drop
6. Search the lyrics automatically on website by the title of the song. Show dynamic lyrics if possible, otherwise show the static lyrics or ‘Not Found’ string (Still under development, any good idea?)

Instruction:
 1. Put the mp3link.exe in any folder you like
 2. In the first time, the program will switch to the 'Setup' page. After input the IP data, click the 'Save and Exit' and run the program again.
 3. If the program works properly, you will in the browser now.
 4. Enjoy it  :)
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: maverick on December 21, 2006, 06:37:28 PM
Welcome back zeropt.  Nice to see you are still developing mp3link.  I'll check out your new version...
.
.
Nice Job!  Works Good!  The addition of automatically getting music Lyrics while the music is playing is a nice touch. :)

I have a few suggestions  (nothing major)

1. Activate the mouse right-click menu (copy, paste, etc.)
2. A save option for Lyrics in text format is needed.  Also, there should be an option to turn-off/on that feature.
3. Wherever you use bold font - a smaller font (at least 1 size smaller) would look better for those with smaller monitors (mines 17") or have an option to adjust font size. 
4. I personally prefer a normal window rather than the maximized default mp3link starts up with.  Also, even though mp3link starts up with a maximized window, when you right-click on the tray icon there is an option to maximize which isn't needed.  (maybe minimize but I don't think that's needed either).
5. Playlist - a horizontal scrollbar should also be added. (left window pane)
6. Some buttons should be re-sized to fit the text properly.  I'll attach examples to show you what I mean.

I tested the above locally.

I went to your site to test.  It's working good.  No problems.

Also, before I forget, here is something important for anyone using or testing mp3link through your own HFS ...

You can not have a [file.mp3] section in your HFS template and, therefore, you can't use the flash mp3player in your site.  IMHO this is the only drawback as you can't use both.

maverick

[attachment deleted by admin]
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: fabnos on December 22, 2006, 06:21:35 AM
Sorry but I don't understand well how it work  ???
Best regards
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: TSG on December 22, 2006, 07:34:11 AM
maverick? i have a [file.mp3] section in my template? i thought u could do it for almost all file types... thats how my flash mp3 player is shown only for .mp3 files... or do u mean a specific section on the template instead of in the file list...

But i don't exactly understand this particular mp3 streaming method much...
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: maverick on December 22, 2006, 09:34:55 AM
maverick? i have a [file.mp3] section in my template? i thought u could do it for almost all file types... thats how my flash mp3 player is shown only for .mp3 files... or do u mean a specific section on the template instead of in the file list...

No, I'm not talking about the file list.  I have a [file.mp3] section in my template too which calls flash mp3player to play mp3 files. 

For mp3link to function correctly and without error, you have to remove that [file.mp3] section from the template if users are coming to your HFS site to stream music with mp3link or if you are accessing your server locally to stream music.

mp3link isn't like flash mp3player which is a server app.  mp3link is a standalone client application that can remotely access a HFS site by IP address or locally with 127.0.0.1.  mp3link opens a IE window for browsing and selecting the music.  In it you see the HFS site the way the owner meant it to be seen.  No difference.  You just browse to the music folder to start things with mp3link. 

But, what mp3link gives you is another way to stream mp3 files, it can create wpl playlists, it automatically gets you the lyrics to the music you are playing and more.  zeropt did a good job creating this application and based on past experiences with him he appears to like perfection.

mp3link would be the perfect solution to anyone who works in an environment where you can listen to music in the background.  You would use mp3link to contact your HFS server at home then you select the music you want to hear - non stop if you prefer, in order or randomly, and without a playlist.

Give it a try.  It doesn't hurt to try out different methods.
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: zeropt on December 22, 2006, 11:44:06 AM
Maverick, thanks to your help in test mp3link. I'll fix these bugs as soon as possible. :)

And, could you tell me where I can find the correct 'mp3player.swf' and a workable [file.mp3] code section? I think it's a good way for me to find the problem.

I hope mp3link is a good optional solution for the music directory for windows clients. However, It will be nice if the build-in [file.mp3] and mp3link can work at the same time.
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: TSG on December 22, 2006, 12:21:44 PM
I understand it a bit more now thanks for that maverick, i went to zeropt server and tested it, nice work... I found one of the pop ups would not close when i was in IE... or was that just me, who knows... i couldn't get much to happen when i went to test it... I tested in IE, and Firefox 2.0.0.1 and Opera... maybe server busy.

I would try this on my server, but my upload is only 128k (16kb\s) so its rather useless unless music is 128k .mp3's, i plan to upgrade later in 2007. But like with my other method, i make things for other users  :D im on holidays from university and i am a little bit bored hehe.
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: maverick on December 22, 2006, 12:27:50 PM
zeropt

I'm attaching the flash mp3player to this post.  I'll PM you with the rest of the info.

maverick

[attachment deleted by admin]
Title: Re: My work for streaming .mp3 files (*NEW VERSION 2.01*)
Post by: The Inspirator on December 22, 2006, 07:08:10 PM
VERY GOOD JOB !!!

I distributed the old version before, but since the latest upgrades of HFS it did not work anymore.

This version rock's again !!

Thank's Zeropt !

Also from my online "customers" who can listen to there "radiostation" again.

We are all very happy users again overhere..... ;D