pcman Posted November 9, 2007 Share Posted November 9, 2007 how it's work? i want to build a mp3 player for my website in the style of you tube(the user upload the music files) how can i do it? ??? Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/ Share on other sites More sharing options...
kellz Posted November 13, 2007 Share Posted November 13, 2007 lol for some reason this kinda reminds me of my friend recording me in dance class and putting it on youtube without telling me hate is a strong word but i really really really really didn't like her for that lol.. Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/#findComment-390536 Share on other sites More sharing options...
kerunai Posted November 16, 2007 Share Posted November 16, 2007 i do like to add those to my site, http://siti-nurhaliza-best.blogspot.com too so how ? i need a coder if so.. Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/#findComment-392520 Share on other sites More sharing options...
Azu Posted November 20, 2007 Share Posted November 20, 2007 There's really no reason for you to make your own MP3 player. Most browsers nowadays either have functionality for playing MP3s built in, or have plugins that can play them (such as Quicktime, Java, or Flash). No need to reinvent the wheel. Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/#findComment-394825 Share on other sites More sharing options...
teng84 Posted November 20, 2007 Share Posted November 20, 2007 i do like to add those to my site, http://siti-nurhaliza-best.blogspot.com too so how ? i need a coder if so.. all you need to do is read the site and include what you need well hard if you don't know what and where to start bu believe me its easy as 10,20,30 Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/#findComment-394828 Share on other sites More sharing options...
kerunai Posted December 3, 2007 Share Posted December 3, 2007 lol...i try to add to my following that's http://mp3-siti-nurhaliza.blogspot.com ... is there any special plugins that can generate mp3 rendered gallery on it ? i plan to put it on the side bar, and putting small cute icons in there ... Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/#findComment-405126 Share on other sites More sharing options...
Crew-Portal Posted December 3, 2007 Share Posted December 3, 2007 Fine Ill walk ya throught it. You should use XML/SWF/And Html. Most people think its a PHP thing. Ayways here ya go. Radio.xml source <?xml version="1.0" encoding="UTF-8"?> <radio> <station name="Rock"> <song> <title>Ol' 55</title> <composer>Tom Waits</composer> <file>tomwaits_ol55.mp3</file> </song> <song> <title>King Contrary Man</title> <composer>The Cult</composer> <file>thecult_kingcontraryman.mp3</file> </song> <song> <title>Drunken Chorus</title> <composer>The Trashcan Sinatras</composer> <file>trashcansinatras_drunkenchorus.mp3</file> </song> </station> <station name="Rap"> <song> <title>Follow the Leader</title> <composer>Eric B. & Rakim</composer> <file>ericbrakim_followtheleader.mp3</file> </song> <song> <title>My Philosophy</title> <composer>Boogie Down Productions</composer> <file>bdp_myphilosophy.mp3</file> </song> <song> <title>I Pioneered This</title> <composer>M.C. Shan</composer> <file>mcshan_ipioneeredthis.mp3</file> </song> </station> <station name="Country"> <song> <title>Mama Tried</title> <composer>Merle Haggard</composer> <file>merlehaggard_mamatried.mp3</file> </song> <song> <title>A Boy Named Sue</title> <composer>Johnny Cash</composer> <file>johnnycash_aboynamedsue.mp3</file> </song> <song> <title>Big Iron</title> <composer>Marty Robbins</composer> <file>martyrobbins_bigiron.mp3</file> </song> </station> </radio> Radio.html Source <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>XML Radio Example</title> </head> <body> <h2>XML Radio Example</h2> <p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="750" height="375" id="GH_radiov2"> <param name="movie" value="GH_radiov2.swf"> <param name="quality" value="high" /> <param name="bgcolor" value="#666666" /> <embed src="GH_radiov2.swf" quality="high" bgcolor="#666666" width="750" height="375" name="GH_radiov2" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> </object> </p> </body> </html> GH_radiov2.swf Actionscript Source Frame 1 function Song(title, composer, file) { this.title = title; this.composer = composer; this.file = file; } // End of the function function Station(name, arrSongs) { this.name = name; this.arrSongs = arrSongs; } // End of the function function Radio(arrStations) { this.arrStations = arrStations; } // End of the function function traceRadio(objRadio) { for (j = 0; j < objRadio.arrStations.length; j++) { traceStation(objRadio.arrStations[j]); } // end of for } // End of the function function traceStation(objStation) { trace ("-----------------"); trace ("Station Name: " + objStation.name); for (i = 0; i < objStation.arrSongs.length; i++) { traceSong(objStation.arrSongs[i]); } // end of for } // End of the function function traceSong(objSong) { trace ("title: " + objSong.title); trace ("composer: " + objSong.composer); trace ("file: " + objSong.file); trace ("**"); } // End of the function function loadStations() { mcStations.removeAll(); var i = 0; while (i < objRadio.arrStations.length) { mcStations.addItem(objRadio.arrStations[i].name, i); ++i; } // end while } // End of the function function radioPlay() { trace (">>start"); traceSong(objRadio.arrStations[intStation].arrSongs[intSong]); txtTitle = objRadio.arrStations[intStation].arrSongs[intSong].title; txtStation = objRadio.arrStations[intStation].name; txtComposer = objRadio.arrStations[intStation].arrSongs[intSong].composer; if (!s) { s = new Sound(); s.onSoundComplete = function () { _root.radioNext(); }; } // end if var filename = objRadio.arrStations[intStation].arrSongs[intSong].file; s.loadSound(filename, true); s.start(); instStatus.posReset(); instStatus.gotoAndPlay(1); mLoaded.paramTarget = "s"; mLoaded._visible = true; mLoaded.gotoAndPlay(1); } // End of the function function radioStop() { trace (">>stop"); s.stop(); } // End of the function function radioNext() { ++intSong; if (intSong >= objRadio.arrStations[intStation].arrSongs.length) { intSong = 0; } // end if radioPlay(); } // End of the function function radioPrevious() { --intSong; if (intSong < 0) { intSong = objRadio.arrStations[intStation].arrSongs.length - 1; } // end if radioPlay(); } // End of the function function stationNext() { ++intStation; if (intStation >= objRadio.arrStations.length) { intStation = 0; } // end if intSong = 0; radioPlay(); } // End of the function function stationPrevious() { --intStation; if (intStation < 0) { intStation = objRadio.arrStations.length - 1; } // end if intSong = 0; radioPlay(); } // End of the function cxml.url = "radio.xml"; intStation = 0; intSong = 0; _root.newSongArray = new Array(); _root.newStationArray = new Array(); _root.objRadio = new Radio(); stop (); GH_radiov2.swf Actionscript Source Frame 2 intStation = 0; intSong = 0; radioPlay(); stop (); See its not all that hard to do... lol Quote Link to comment https://forums.phpfreaks.com/topic/76664-youtube/#findComment-405343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.