Using a "play" button in HTML output.
Basically, i inserted the following command into the tracklist section of teh Advanced webpage look:
<a href="file://e:/My Music/<!--[artist/]--> - (<!--[releasedate/]-->) <!--[title/]-->/<!--[tracknum/]--> - <!--[tracktitle/]-->.mp3">Play</a>
This command inserts a Play link, which when clicked, opens the mp3 file and starts playing it. BUT, this won;t work for all files as OCD puts in "1" as tracknumber, while all my mp3's are named as "01".
My mp3's are named like that so they maintain numerical order, so would it be possible that OCD also uses the double digits all the time? Either that, or if you could implement a way where i could have a placeholder like <---[mp3location]---> which links to where the mp3 is on my harddrive.
Here is an extract of the code where i added in the extra line
<!--[volume]-->
<!--[if(volumename)]-->
&nbsp;<br><!--[volumename/]--> [<!--[volumetime/]-->]
<!--[/if]-->
<table border=0 cellpadding=0>
<!--[track]-->
<tr><td valign=top><!--[tracknum/]-->.&nbsp;&nbsp;</td>
<!--[if($TRACKPAGES)]-->
<!--[if(lyrics)]-->
<td width="100%" valign=top><!--[tracklink]--><!--[tracktitle/]--><!--[/tracklink]--> &nbsp;<!--[tracktime/]--></td></tr>
<!--[else]-->
<td width="100%" valign=top><!--[tracktitle/]--> &nbsp;<i><small><!--[tracktime/]--> <a href="file://e:/My Music/<!--[artist/]--> - (<!--[releasedate/]-->) <!--[title/]-->/<!--[tracknum/]--> - <!--[tracktitle/]-->.mp3">Play</a> </small></i></td></tr>
<!--[/if]-->
<!--[else]-->
<td width="100%" valign=top><!--[tracktitle/]--> &nbsp;<i><small><!--[tracktime/]--></small></i></td></tr>
<!--[/if]-->
<!--[if(trackartist)]-->
<tr><td></td><td valign=top><i><!--[trackartist/]--></i></td></tr>
<!--[/if]-->
<!--[/track]-->
</table>
<!--[/volume]-->
Re: Using a "play" button in HTML output
sorry, i forgot to say...
That setup above works perfectly on all tracks with tracknumber 10 or higher.
Re: Using a "play" button in HTML output
that is a great idea...the info is clearly stored in the database anyway, so a simple tag would be nice to add this. :)
Re: Using a "play" button in HTML output
What are you guys talking about? ???
Re: Using a "play" button in HTML output
basically, all i have done is added in a little HTML link after each song, which when pressed plays the song in your default mp3 player.
After further thought on this, i realised that this setup will only work if you have theexact same folder structure for each Album. e.g. c:\My Mp3's\Artist - (Year) Album\Tracknumber - tracktitle.mp3.
All my mp3's conform to that, and are in that folder, so i can get away with hardcoding in the c:\mp3's\ and then using the placeholders to set in the rest of the path to the mp3.
BUT, if i wanted to play an mp3 in c:\Her Mp3's\... i couldnt, not without changing the coding etc.
So what we really need is a tag like this <---[mp3path]---> and when inserted puts in the actual path to the mp3, e.g. c:\my mp3's\Abba\Greatest Hits\12 - Dancing Queen.mp3
SO if that could be added it'd be great.
Re: Using a "play" button in HTML output
:) I talked to Vivitron 15 about this last night.And now I know what you all are talking about.
Like I told him.There is a Program out that does this for Websites.....its in Perl.I need to switch over to other Drive and grab the Website.
Good job terminator on thinking of this for Orange.Would make it stick out over all other software.....well it already does. ;D
I would need about 500GB for all mine though.But one day
Re: Using a "play" button in HTML output
I added the <!--[trackfilename/]--> tag. You will be able to combine it with <!--[path/]--> to produce the complete path:
Code:
<!--[path/]-->\<!--[trackfilename/]-->
This change is not published yet, but it will be in final build 5.1.
Re: Using a "play" button in HTML output
Thanks a lot, this is a really handy feature, as its faster to navigate a webpage than to search through my folders. (never run winxp on a 700mhz cpu, with 128mb ram).
Also, for parties etc, now theres no risk of my music being deleted, as happened before. People can now customise the playlist etc etc.
Thanks again.
Re: Using a "play" button in HTML output
Can this be done yet?I am trying that Code with the CMI Style Template and it not Working. ???
Maybe I just wait untell all this is added to Orange.I mean does anybody have a Website up and running yet with this Feature? :-/
Re: Using a "play" button in HTML output
i have it working, but i found that a few of my albums don't conform the the naming standard, so i had to re-name those, but yeah, i got it to work using some java and the tags i outlined above. It worked pretty well alright, but as i said, depending on ytour own naming standard, and the place you store your mp3's you would have to alter the command i added here.
THe play button will work MUCH better once the 2 new tags are added in.
Re: Using a "play" button in HTML output
Just got 5.1, and i'm very dissapointed, no <!--[trackfilename/]--> tag :( . Is there any chance it'll come out soon?
Re: Using a "play" button in HTML output
;D Well.....give us your Website and let us test it out.We need to Beta Test this before it can be added to Orange.And also you need to Sign up and stop being a Guest. ;D
Re: Using a "play" button in HTML output
Quote:
Originally Posted by terminator
Just got 5.1, and i'm very dissapointed, no <!--[trackfilename/]--> tag :( . Is there any chance it'll come out soon?
Hi guys,
I am sorry for the confusion, but I had to pull this tag from the final 5.1.0 build because it caused more problems than it solved. I will strive to add this feature to the next beta or even private build. I'll keep this thread informed.
Andrei
Re: Using a "play" button in HTML output
mmm.... registery goodness :)
As for putting it on the web, theres no point, as none of the play links would work once the pages leave my computer. The easiest thing would be if you could change the commandline i made to suit your mp3 (and folder) naming scheme. Then just try it yourself.
Re: Using a "play" button in HTML output
Quote:
Originally Posted by terminator
mmm.... registery goodness :)
As for putting it on the web, theres no point, as none of the play links would work once the pages leave my computer. The easiest thing would be if you could change the commandline i made to suit your mp3 (and folder) naming scheme. Then just try it yourself.
:-/ You mean the only People that can Play the Songs off your Website is the People at your PC?
I was talking about a 24 Hour Jukebox Online where anybody could Play Songs from your Website.Guess I need to go get that Program and show you.
If I am haveing People over they can just use Orange the Program.That is why I Pushed so hard this year for Queueing up Songs and Playing whole Albums. :-/
:) But I guess I see what you are saying.It is easier for People to use a Website.
FC 8)
Re: Using a "play" button in HTML output
AAHhh, what you;re thinking of is a streaming radio type thing, in which people can browse your collection and stream it from your computer. I have a program that does that, but it isn;t as pretty as OrangeCD is. Also, i'll only be using this on my computer, so i onoly need an offline database.
For streaming music over a lan etc, try this program. [url]http://edna.sourceforge.net[/url]
Re: Using a "play" button in HTML output
I've used the same type of href-link and added a few lines of vbs code to fix the lacking 0 in track numbers under 10.
Of course you have to turn your web pages into asp pages. But it works fine. You could of course do the same with javascript/jsp.
Here's an example:
'\ Add 0 to track numbers under 10
If strTrackNum < 10 Then
'\ Max 36 characters in iTunes track file name
strTrackTitle = Trim(Mid("0<!--[tracknum/]--> <!--[tracktitle/]-->",1,36))
Else
'\ Max 36 characters in iTunes track file name
strTrackTitle = Trim(Mid("<!--[tracknum/]--> <!--[tracktitle/]-->",1,36))
End If
iTunes also adds <# in set> to the track file name when the album is part of a CD set, so I've added some more code to be able to handle CD sets.
Re: Using a "play" button in HTML output
Hello
I'm currently using 5.2 but it seems that the
<!--[path/]-->\<!--[trackfilename/]--> tags is still missing, or do i something wrong ???
Re: Using a "play" button in HTML output
Yes, it is still missing. Take a look at the 'Create a Play Button in Html Script' thread, if you're looking for a way to add a play button.
([url]http://www.firetongue.com/boards/yabb/YaBB.pl?board=dax;action=display;num=1087293557;st art=4#4[/url])
Re: Using a "play" button in HTML output
Well my personal solution is, I have all my music folders in the web root then i make winamp playlist of each album as well as each track then i link the main album artwork to the album playlist and link each track to there respective song playlist.
This way I may listen to an entire album or sample a song from the album.
On the main page i link my favorite and genre playlist for jukeboxing.
I use Firefox browser and assign winamp as the default program to open.
In this manner I am able to be mobile with this external hard drive as the music never leaves root.
I also look forward to .APE support ;-)