Author Topic: mp3 streamer  (Read 43054 times)

0 Members and 1 Guest are viewing this topic.

Offline TCube

  • Tireless poster
  • ****
  • Posts: 445
    • View Profile
Re: mp3 streamer
« Reply #30 on: October 15, 2006, 03:56:50 AM »
Works perfectly ledufe ! (just have to hide the mp3player.swf at the root)

Make it idiot-proof and I will make a better idiot

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
Re: mp3 streamer
« Reply #31 on: October 15, 2006, 08:02:08 AM »

Yes, the mp3player seems to work ok.  I first started to play around with it after rejetto mentioned it.  It's a good way to preview songs.  I still prefer the playlist for uninterrupted music.  But I guess it's good to have both options available for different needs. 

The mp3player can increase CPU load though.  I also noticed that the mp3 page that includes the player loads quick in Opera and IE but a little sluggish with Firefox.  Firefox is a good browser but I find it kind of slow.  Does anyone know how to speed up Firefox?

But overall, the player might be a nice permanent addition.  Thanks for mentioning it rejetto. :)  And ledufe it looks like you are getting yourself involved in some interesting projects.  Good job. ;)
maverick

Offline ~GeeS~

  • Tireless poster
  • ****
  • Posts: 270
  • "The web was made for sharing..."
    • View Profile
Re: mp3 streamer
« Reply #32 on: October 15, 2006, 07:07:46 PM »
Thank you Ledufe!
Looks good and simple.  :)
~GeeS~

SNyB

  • Guest
Re: mp3 streamer
« Reply #33 on: October 15, 2006, 10:17:01 PM »
Thanks ledufe,

but this method don't works with IE6  ??? The track not playing when I press play bouton...

Change this line :

Code: [Select]
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" id="mp3player"
by
Code: [Select]
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="20" id="mp3player"
;)

SNyB

  • Guest
Re: mp3 streamer
« Reply #34 on: October 15, 2006, 11:31:53 PM »
for playing with IE6 :

Change :

Quote
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="20" id="mp3player"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
  <param name="movie" value="http://%host%/mp3player.swf" />
<param name="flashvars" value="file=%item-url%" />

The same stream for the video ? :)

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: mp3 streamer
« Reply #35 on: October 16, 2006, 12:14:03 AM »
i found a bug with this flash player, but i guess that will afect only some of us, the filename of the mp3 files must not have any acentuation or special characters.... like (~^`´' " ) some brazilian sogs that i have here simple refuse to play....

just for you to know, and about videos, at least the mpeg or mpg this worked for me

Code: [Select]
[file.mpg]
<tr>
<td>
%new%
<a href="%item-url%">
<img src="/~img_file" />
 %item-name%
</a>
%comment%
<td align=right>
%item-size%
<td align=right>
%item-modified%
<td align=right>
%item-dl-count%
<td align=right>
    <!-- begin embedded WindowsMedia file... -->
      <table border='0' cellpadding='0' align="center">
      <tr><td>
      <OBJECT id='mediaPlayer' width="176" height="189"
      classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
      codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
      standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
      <param name='fileName' value="%item-url%">
      <param name='animationatStart' value='true'>
      <param name='transparentatStart' value='true'>
      <param name='autoStart' value="false">
      <param name='showControls' value="true">
      <param name='loop' value="true">
      <EMBED type='application/x-mplayer2'
        pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
        id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
        bgcolor='darkblue' showcontrols="true" showtracker='-1'
        showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="176" height="189"
        src="%item-url%" autostart="false" designtimesp='5311' loop="true">
      </EMBED>
      </OBJECT>
      </td></tr>
      <!-- ...end embedded WindowsMedia file -->
    <!-- begin link to launch external media player... -->
        <tr><td align='center'>
        <a href="%item-url%" style='font-size: 85%;' target='_blank'>Launch in external player</a>
        <!-- ...end link to launch external media player... -->
        </td></tr>
      </table>

and still trying to help the other friend of this forum with the right script or mod to embed the .flv player on hfs like the mp3 player in flash......

and i've been a little busy with my son and his exams in his school, and still finding some time to learn c#, just wait, im testing a new tool to work with the templates and the hfs ini and a data base inside a raw text to store and select to use the user collection of templates and diff templates , but still trying to make it work like i want it to work...
<<LeDuFe>>

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: mp3 streamer
« Reply #36 on: October 16, 2006, 05:46:21 AM »
i know that so many people in here don´t like javascript for security reasons, but i found this really interesting to share, even if it contain some javascript on it(and we are talking about a little and very comom fuction) that only show a pop-up window modding the default template, i did this to make it easy to just load it (the desired template) so i included the code of the pop-up windows inside the javascript(and not in a external html file as usual), so i tested this 3 sollutions and all seem to work on all browsers, but with a strange effect that i will explain here:

first the templates are atached to this post and i must thank this to rejetto, thanks for let us to put small files atached tho posts, it keep us safe from rapidshare and others......

now let me explain this templates
they all use the pop-up javascript to show a window with a embed player to stream the .m3u list of the current folder that you are browsing but if you use different template you got a different kind and view of the poped-up window

one that load the miniplayer only


one tha load the mini player but with the folder name(the folder that generated the current playlist) and also the cover of the album
(just put the file with the front cover on the same folder with the name "cover.jpg") Cool :-)


and the last template just call the embed player but not call the default music player of the client to embed, but the default mpeg player(mp3 is a mpeg don´t you know?) so on the internet explorer it calls again(usually the same as the other templates used before) the windows media player, but on my machine with the apple quick time installed from firefox it calls the quick time into the embed window...


well this was made just to let us keep browsing the hfs file system(it was moondog first who come with the idea...), but using the streaming in a non stop way, this way, the window that is paying the .m3u file don´t change or close unless you want it.

hope it helps the others...



[attachment deleted by admin]
« Last Edit: October 16, 2006, 05:48:10 AM by ledufe »
<<LeDuFe>>

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: mp3 streamer
« Reply #37 on: October 16, 2006, 05:58:22 AM »
it give me some ideas, about file types especified inside the html code, so we could call more kind of specifc players by only clicking in a link so we could make a link to embed Real player, media player, quick time, and so many other player that could fit this parameters of file types and embed active-x, imagine stream other file types with so many links, like this we could add a special button to every kind of file type that could be played, and this button calls a pop-up player with the "right" kind of player for the clicked file like mpeg, mp4, 3gp, avi, mp3, and many more.....

ideas.....o god, my brain is just begining to warm-up come'on guys, lets try , hfs....so many possibilities....
<<LeDuFe>>

Offline TCube

  • Tireless poster
  • ****
  • Posts: 445
    • View Profile
Re: mp3 streamer
« Reply #38 on: October 16, 2006, 11:10:59 AM »
Firefox is a good browser but I find it kind of slow.  Does anyone know how to speed up Firefox?
"en francais dans le texte"   ;D

http://www.generation-nt.com/astuces/lire/241/accelerer-le-chargement-des-pages-dans-firefox/

Edit : sorry didn't see could send a PM until I was online ... too late by then
« Last Edit: October 16, 2006, 11:14:42 AM by TCube »
Make it idiot-proof and I will make a better idiot

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
Re: mp3 streamer
« Reply #39 on: October 16, 2006, 11:44:46 AM »
Thanks TCube.  I don't understand french so I used a translator. The result was terrible and didn't make much sense.

Edit:
This is actually off-topic in this thread.  I have found a solution.  Anyone interested in how to speed up Firefox should go here -->
http://www.rejetto.com/forum/index.php?topic=3792.msg1018674#new
« Last Edit: October 17, 2006, 04:26:38 AM by maverick »
maverick

Offline TCube

  • Tireless poster
  • ****
  • Posts: 445
    • View Profile
Re: mp3 streamer
« Reply #40 on: October 17, 2006, 08:38:16 AM »
Three-pop-up-mp3-player-streaming-test, my feedback

First : level up the version to HFS 2.1

On FireFox (1.5.0.7):
no chance to open up any playlist generated in either case ... hum !?! ...
Could some one confirm please before I go to Firefox Internal settings ?
(comments : transfert idle - no limit sets on HFS for speed limit)

On IE6 (6.0) : every files templates open correctly but IE as a small strange behavior ...
(comments : I have to use a different User Account each time in order to refresh to the new template)


I like the template with the cover album a lot, the one I would certainly use if - a) it would work on FF - b) if I could get a volume button (PC connected to the hi-fi system) and - c) get the titles of songs. :D



Last sunday went to friends (with a 2048/128 dsl connection) and test the whole bunch of solutions from you guys (*.wpl, audio and video, mp3player.swf, ...) worked "almost" swell ! ("almost" = just have to encode videos the proper way)

à vous for all your tips and ideas !

Could Leduf give me a hand to get the proper code for mp3player.swf that works both with FF and IE, I'm still stuck on my Brooke's template to have it work with I.E (sample below)





Make it idiot-proof and I will make a better idiot

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: mp3 streamer
« Reply #41 on: October 18, 2006, 04:14:46 AM »
well, my friend TCube, i dont know if i understood it right, but as you can see on the atached picture, here is something that may interest you and also some info:

firefox 1.5.0.7
internet explorer 6.0.2900.2180
windows media player 10
hfs2.1 final


-volume control
-firefox and ie compatible and fully functional
song name scrolling and more...

try it and see if it works for you, and if you want, you can always contactme by messenger and private message...

i would be happy if i can help....

OBS.: inside the zip file there is a template with this code

just remember that you must create the "cover.jpg" and let it on the same folder of your album...



[attachment deleted by admin]
<<LeDuFe>>

Offline TCube

  • Tireless poster
  • ****
  • Posts: 445
    • View Profile
Re: mp3 streamer
« Reply #42 on: October 18, 2006, 06:27:28 AM »
Merci beaucoup Ledufe  ;)  ... just 'll have to check a couple of things as i use W2K and Windows MPlayer 9, I'll keep you updated by PM

Edit : works !  (except for M3U playlist in FF, i 'll look into it ...) Funny thing is when you slip a *.wpl within a rep. containing *.mp3 - Popup Player will play them all  ;D
« Last Edit: October 18, 2006, 11:55:45 AM by TCube »
Make it idiot-proof and I will make a better idiot

Offline GothicSuicide

  • Occasional poster
  • *
  • Posts: 9
  • Soon i will have an army
    • View Profile
Re: mp3 streamer
« Reply #43 on: October 18, 2006, 10:34:56 PM »
Wow you are amazing. i could not have put this project together better myself .. "plus it would have takin me forever" great job lets see if this go's well if it get incorperated .. if its small enough and keeps the cpu loadtimes down .. mabie stripping some of the textures off the player and downscale the code "like omiting certin characters from the code.. looks ugly but it works and makes it smaller and the script is still readable by the program" just a suggestion.

keep up the good work.

"currently im working on anouther project using Lua script .. fun language let me tell you.. anyway ill check back from time to time to see how stuff is going and as soon as i get home ill test this out"
« Last Edit: October 18, 2006, 10:42:46 PM by GothicSuicide »

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: mp3 streamer
« Reply #44 on: October 19, 2006, 12:41:25 AM »
works!  (except for M3U playlist in FF, i 'll look into it ...)
it works on my firefox, but i noted one thing important

sometimes it load and start playing the playlist generated with the file "cover.jpg" on the first position of the list, and doing this, the player embeded will start the playlist playing hte file cover.jpg, but this file wont will be show, so i think that the player was not working, but when i press skip to the next track it "now" start playing the playlist as it was supose to be, playing the songs one by one....
so i figure out two simple way to avoid this issue:

-or you put your image in a sub-folder inside the folder of the album like "covers" and change the script on the line that it says " <img src='%encoded-folder%cover.jpg' alt='cover.jpg Missing' width='200' height='200' /> " to " <img src='%encoded-folder%covers/cover.jpg' alt='cover.jpg Missing' width='200' height='200' /> "

-or simple put this on the Files Filter mask(Right-Click over the folder you want to hide the cover from being showed on the file list) of every folder that contains the mp3 :
Code: [Select]
\cover.jpg
Funny thing is when you slip a *.wpl within a rep. containing *.mp3 - Popup Player will play them all  ;D

i could not understand what did you mean when you say these words: slip, rep
but i guess that you want to say that there is something funny happens when you play some wpl list with mp3 inside...
<<LeDuFe>>