AudioStream
#1

Hello! I wanted to create a radio system for my server, but it doesn't work. I show te actual code(everything else is right).
PHP Code:
    if(response)
    {
        if(
listitem == 0)
        {
             
PlayAudioStreamForPlayer(playerid,"http://stream.akaver.com/streamgen.php?stream=powerhit&format=ogg&quality=low");
             
SendClientMessage(playeridCOLOR_YELLOW,"Nььd mдngib raadio Power Hit");
            
APlayerData[playerid][Raadio] = true;
        }
        if(
listitem == 1)
        {
            
PlayAudioStreamForPlayer(playerid,"http://striiming.trio.ee:8008/elmar.mp3");
             
SendClientMessage(playeridCOLOR_YELLOW,"Nььd mдngib raadio Elmar");
               
APlayerData[playerid][Raadio] = true;
        }
        if(
listitem == 2)
        {
            
PlayAudioStreamForPlayer(playerid,"http://streamer.akaver.com/streamgen.php?stream=skyplus&format=mp3&quality=hi");
             
SendClientMessage(playeridCOLOR_YELLOW,"Nььd mдngib raadio Sky Plus");
               
APlayerData[playerid][Raadio] = true;
        }
    }
    return 
1
The code works, because I can see the SendClientMessage, but that Audio Stream: ..... doesn't show up and the music doesn't play too.
Reply
#2

Link on the radio change.
Reply
#3

Code:
ListItem == 0 and ListItem == 2
. Will not due to the way they're linked.

However,
Code:
ListItem == 1
will work.
Reply
#4

Didn't change anything and all 3 works IDK why it didn't work before.
Reply
#5

where i can find online radio's websites?
Reply
#6

You just need file streaming websites, an example of this is kiwi6.com

NOTE: If the music does not play, it can be due to slow internet, making the music buffer more slowly, just like Youtube videos etc.

Googling radio websites is also a good idea, just make sure it's not some boring educational radio stream or something like that -____-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)