06.12.2011, 19:05
(
Last edited by jueix; 06/12/2011 at 07:43 PM.
)
Making an mp3 player/playlist with as a command.
Introduction
well for a while now i have been struggling to find a site with playaudiostreamforplayer witch will work seen as igonitos streamer plugin did'nt work for me.
Starting out.
Ok first we want to make a basic mp3 audio file with a few songs on witch is not in different mp3 files so like a song plays after an other so basicly we don't really need to add timers.
To do this open up any movie editing tool or a music editing tool witch lets you add multiable music files. I will be using windows movie maker.
Once its open go to where you would go in that tool to add music, mine is import audio and music. After that if your using windows movie maker drag your audio files into the video part with out making a video and once all audio is done save the file. It should Look something like this:
![](http://i43.tinypic.com/11vtfgn.png)
Uploading it to the web
The next part is now adding the mp3 to the web so it loads up the site i preview to use is kiwi6.com Once on kiwi6.com go to browse and upload the file you just made. After around 5 - 10 mins depending how large the mp3 file is. Once its uploaded right click the page and go to view source and go down to find a url that looks like this http://k002.kiwi6.com/hotlink/o8gr9q..._song_name.mp3
The coding.
Okay now we are going to make the command to play the song witch will be /mp3
and you are done. if you want to use my song feel free to use it here http://k002.kiwi6.com/hotlink/o8gr9q...ery_breath.mp3 i am currently uploading my mp3 play list link If you found this helpful please rep.
Introduction
well for a while now i have been struggling to find a site with playaudiostreamforplayer witch will work seen as igonitos streamer plugin did'nt work for me.
Starting out.
Ok first we want to make a basic mp3 audio file with a few songs on witch is not in different mp3 files so like a song plays after an other so basicly we don't really need to add timers.
To do this open up any movie editing tool or a music editing tool witch lets you add multiable music files. I will be using windows movie maker.
Once its open go to where you would go in that tool to add music, mine is import audio and music. After that if your using windows movie maker drag your audio files into the video part with out making a video and once all audio is done save the file. It should Look something like this:
![](http://i43.tinypic.com/11vtfgn.png)
Uploading it to the web
The next part is now adding the mp3 to the web so it loads up the site i preview to use is kiwi6.com Once on kiwi6.com go to browse and upload the file you just made. After around 5 - 10 mins depending how large the mp3 file is. Once its uploaded right click the page and go to view source and go down to find a url that looks like this http://k002.kiwi6.com/hotlink/o8gr9q..._song_name.mp3
The coding.
Okay now we are going to make the command to play the song witch will be /mp3
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { //worlds if (strcmp("/mp3", cmdtext, true, 10) == 0)// the mp3 command { PlayAudioStreamForPlayer(playerid, "http://k002.kiwi6.com/hotlink/o8gr9q3g0c/boyce_avenue_every_breath.mp3"); //the mp3 link to music use this if you wish. return 1; } |