How to stream music on command
#1

I Want to stream this music: [ame]http://www.youtube.com/watch?v=1nyAThrjdkw[/ame].
Command: /wawmusic


How can I do that? I need to stream music?
Reply
#2

You can use this Include: http://forum.sa-mp.com/showthread.ph...*******+stream

Or upload this Song on a Filehoster and stream it from there.
Reply
#3

Code:
COMMAND:wawmusic(playerid, params[])
{
	PlayAudioStreamForPlayer(playerid, *PUT URL HERE*");
	SendClientMessage(playerid, COLOR_BLUE, "[INFO] You Have turned waw music on!");
	return 1;
}
Hope it worked!
Reply
#4

Sorry for this very-late bump,
but how could i stream a .mp3 file thats on my PC?
Reply
#5

Quote:
Originally Posted by stormchaser206
View Post
Sorry for this very-late bump,
but how could i stream a .mp3 file thats on my PC?
You would have to upload the .mp3 file to a file hosting site of your choice, and then put that URL in the command. You can't stream a song directly from your computer, unless you have experience with port forwarding (if required), and then you would have to put the song in a special folder accessable by the public, and enter your IP as the url, and then point that to the song (ex. ***.***.***.***:PORT/songpath), it's just a big hassle and not worth it to many.
Reply
#6

Can you please explain more on how to upload it to a file hoster
Reply


Forum Jump:


Users browsing this thread: