Radios HELP
#1

So, i made it when you join my server it plays music automatically, and its working.
I upload it into kiwi6 and then as it goes.

But,

how do i make it with the radio? cause when i join the sites that are playing the radio that i want to add on my server, they are in the actual site..

If you dont know what i mean, it automatically plays when i join the site:

Here is the site of the music that i made when you join my server:

https://*******/2HhBdoB (bitly

Photo:

http://prntscr.com/n1lofy

But when i want to add my radio, it needs me to click the play button not automatically launches.

photo of the radio:

http://prntscr.com/n1louv



If you didnt understood me.

For example: If i want to add ******* video, i cant just write PlayAudioStreamForPlayer and add the ******* link, it wont work as you know.I need to download it and upload it on kiwi6 then add the link from the kiwi6.

In this case, i want my radio to launch but i cant. Help?
Reply
#2

I don't see what's the problem since it's normal.

You can't autoplay a YT video (fortunately), but you can download it and convert to MP3 and play it.

For the radios, just use their .pls link, audio should start normally. If doesn't work, probably some radios have their embedding disabled to external sources.
Reply
#3

How do i get the .pls link.

I found one radio that when i clicked it, it got me to this site:
http://prntscr.com/n1lofy and its playing live, automatically, im using it to my server.
But for the others, they doesnt get me to site like this.
Reply
#4

Try Radio Sure app.

You can browse through all internet radios and get your link by clicking "details" on it.

http://www.radiosure.com/ - idk if this site is official, you can search it by yourself if its not.
Reply
#5

Okay, found the way, but there is problem..

Im making the command. Dialog style list.
To select a radio and then play it.

But when i type the command, it doesnt show that the command is unknown, it means that this command exists, but cannot execute it somehow.

Here is the code:
Code:
CMD:radio(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Radio:", "NJOY \n More cooming soon", "Choose", "Exit");
	return 1;
}
And OnDialogResponse:

Code:
if(dialogid == DIALOG_RADIO)
	{
	   if(response)
	   {
			if(listitem == 0)
			{
				PlayAudioStreamForPlayer(playerid, "http://46.10.150.243/njoy.mp3");
				SendClientMessage(playerid, COLOR_YELLOW, "you are listening to RADIO NJOY!");
			}
			if(listitem == 1)
			{
				SendClientMessage(playerid, COLOR_YELLOW, "more cooming soon!");
				return 1;
			}
	    }
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)