SA-MP Forums Archive
Is This Possible Somehow? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Is This Possible Somehow? (/showthread.php?tid=320475)



Is This Possible Somehow? - Chrisspartan - 23.02.2012

I'm trying to play audio from my computer but it doesn't work, is this possible somehow?
Note: I don't want to upload the files, just asking if i can do it this way.

Quote:

PlayAudioStreamForPlayer(playerid, "C:\playlist.pls");

I won't forget to +Rep.


Re: Is This Possible Somehow? - THE_KNOWN - 23.02.2012

not sure but.... try installing wamp and then put the playlist.pls in www folder of wamp. then set PlayAudioStreamForPlayer(playerid, "localhost\playlist.pls");


Re: Is This Possible Somehow? - Niko_boy - 23.02.2012

http://www.shoutcast.com/broadcast-tools
You need to host a radio it will be like IP:PORT/listen.pls


Re: Is This Possible Somehow? - Chrisspartan - 23.02.2012

Don't know if wamp is same as winamp, i tried on winamp using shoutcast, it works but i don't want to run winamp, the audio file will play only for me, i don't want it to play for everyone. Sorry guys. Any ideas?


Re: Is This Possible Somehow? - Mark_Weston - 23.02.2012

Quote:
Originally Posted by Chrisspartan
Посмотреть сообщение
Don't know if wamp is same as winamp, i tried on winamp using shoutcast, it works but i don't want to run winamp, the audio file will play only for me, i don't want it to play for everyone. Sorry guys. Any ideas?
PlayAudioStreamForPlayer(playerid, "radio url or IP\playlist.pls");


Re: Is This Possible Somehow? - JiHost - 23.02.2012

Quote:
Originally Posted by Chrisspartan
Посмотреть сообщение
Don't know if wamp is same as winamp, i tried on winamp using shoutcast, it works but i don't want to run winamp, the audio file will play only for me, i don't want it to play for everyone. Sorry guys. Any ideas?
Wamp is a webserver, while winamp is a media player.


Re: Is This Possible Somehow? - DRIFT_HUNTER - 23.02.2012

You can install wamp server and put your music in www folder (or make another subfolder for ir)
Than just check your ip and do it like

PlayAudioStreamForPlayer(playerid, "http://YOU_IP/songname.mp3");


Re: Is This Possible Somehow? - Chrisspartan - 23.02.2012

Thank you all. I added plus to everyone's reputation.