Audio streaming websites
#1

So I'm trying to create a

Код:
PlayAudioStreamForPlayer
command.

But I want it to be a single track.

Does anyone know any websites that could host it like this, so I could play it?

Help is apprecciated and will get repped.

Thanks in advance.
Reply
#2

PlayAudioStreamForPlayer will not play links if they are not linked to any .mp3 file, which means it can't read the website and detect where the mp3 link is, you need to put a link which is an .mp3.
You can either use shoutcast which hosts radios 24/7 or upload your own media to a website as an .mp3 file.
Here's a simple example taken from SA-MP wiki.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/radio", cmdtext, true) == 0)
    {
        PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");
        return 1;
    }
return 0;
}
Hope this helps you!
Reply
#3

Yes but thats the POINT.
I'm looking for a website I could upload my own media as an mp3 file...

Thanks anyway
Reply
#4

Uhm, I forgot what website it was but I'm pretty sure if you ****** some previous threads, you'll find thousands of people asking for the website they can upload a song to as mp3 and play it..

I'd think wikiupload would work.. Or just search for older threads.
Good luck!
Reply
#5

Do you mean something like this?
pawn Код:
CMD:music( playerid, params[] )
{
    new
        AudioLink[90] //change the string value if the link is more than 90 strings
    ;
    if(sscanf(params, "s[90]", AudioLink))
        return SendClientMessage(playerid, -1, "/music [URL]");
       
    PlayAudioStreamForPlayer( playerid, AudioLink ); return 1;
}
Or something like this?
http://kiwi6.com/
where you can upload .mp3 files and stream it.
Reply
#6

Dropbox.com
Reply
#7

The kiwi6 website was what I was looking for, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)