******* streamer help
#1

I have been looking in forums for a ******* streamer, I found a couple of them but they are outdated. So I decided to make my own. However, the website I'm using is giving me this link:
When I visit that link it starts the download right away but since it does not end in .mp3 I can't use it with PlayAudioStreamForPlayer. I tried to trace where that mink redirects to but no luck. So do you have any ideas to make use of that link or do you suggest any other services that would just give me a proper mp3 link?
Reply
#2

Hey you can use it on playaudiostreamforplayer
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=518119
Reply
#4

Fo Exemple:
Код:
PlayAudioStreamForPlayer(playerid,"http://free.mp3songurls.com/1420853.mp3");
Reply
#5

Thanks for helping but after many tests I found out that the API is acting really strange. First of all the link it's giving is too long I guess because it doesn't want to play. So I added the TinyURL API to my script. And then I noticed an other thing. Each time I refresh the page the link changes. When I access it from my computer it starts downloading the MP3 file but when I take the same link and try it on my VPS, it takes me to an other page. I am suspecting that the file will only work for the IP that requested it? Does anyone have any suggestions?

EDIT: I confirmed it. I got a download link then I changed my IP and it stopped working. The link it gives only works for 1 IP. It defeats the purpose of an API. Does anyone have an idea to get around this issue?

EDIT: I got around this problem by making a PHP script that would download the song to my VPS, stream it from there to the client and then delete the song so they don't use up space.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)