|
Ok the first thing I want to say is wav files are usually smaller than the mp3 Music files you probably have on your computer right now. Meaning in free sites like angelfire you can upload a lot more music in wav format than you can in mp3. I am not going to teach conversion of files in this tutorial, we will save that for another tutorial. We will look at d/l already converted stuff. So without further adieu lets go to one of my fav wav sites. Click Here For Piano Lady Nancy's Wav Site. Now lets click on Aaron Tippin, up comes all the song wavs for Aaron Tippon, now RIGHT click on the blue button next to a song and then click "Save Target As." Make sure you are saving the file as a "Wave Sound". Now save it to a folder you can find it in again. Now lets find the file and rename it. Lets call it "testsong". Now you need to upload it to a page, you can use an already existing account if you want, now comes the choice...depending on whether you want just one song on the page or a playlist. Lets go with a playlist for now because by this time you should have the first player figured out addy wise lol. Now because we uploaded the song file directly to the webshell we can use a simple little trick that makes things much easier. Our addy will be easy. For example if you go back and look at this addy in the play list player streams[streams.length] = new makeStream("https://www.angelfire.com/goth/newvex/Evanescene-MyImmortal.wav","1.My Immortal"); You can see that the code has been uploaded into the https://www.angelfire.com/goth/newvex/ webshell meaning I am taking it from that website source. Now If that song had been uploaded directly into the webshell I want it to be played from I could code the addy like this streams[streams.length] = new makeStream("Evanescene-MyImmortal.wav","1.My Immortal"); because that song file is in the webshell I want it to be played from...if it wasn't I would have to write the full addy code of where the song file is located. Now its easy to add the song addy to the player code on the previous player code. What I want you to do is download the zip file below..it contains both player codes. Unzip the files and we will use Player2 for now. Now Open up Player 2 and look at the code. After You Have Uploaded Your "testsong" file to the webshell we are going to insert the addy into the player. Then at the bottom for a default we are going to put the Netwavz low band addy in, but first your testsong code. When added properly it will look like this: streams[streams.length] = new makeStream("testsong.wav","1.Test Song"); Now lets do our default at the bottom: http://www.netwavzradio.com/lowlisten.asx Put this addy in,it should look like this: value="http://www.netwavzradio.com/lowlisten.asx">
Ok so our songs have been added to our players so now how do we get the entire player into our page html and where the hell do we put it LOL. For this we are going to place the player at the bottom of our pages, its easier when your just learning. So lets copy and paste people LOL. Copy the Entire Code and lets go into our page html and we are going to paste the code into the html RIGHT at the bottom ABOVE the </body> </html> at the end of our page html. Now lets save that. If all has gone well you have now added music to your page so go to your page and make sure your speakers are on. To add songs to the PLAYLIST you do it the same way as you did your "testsong". You don't have to rename your song files but I do because some files have very long names and underscores and stuff so its easier to just rename them. REMEMBER when adding songs the name of the file has to be EXACTLY the same as in the addy. Changing the default is done the same way, for now though I would leave the default as Netwavz until you learn to add songs easily to the top playlist. Remember to always check your formats,if you upload a wav then the end of the addy will be .wav if its mp3 then the addy end is .mp3 DO NOT FORGET THAT! Good Luck & Happy Coding!
|
|