Audio stream problem
#1

Hello guys, I'm using FuNkYTheGreat's method for converting ******* video, but when I enter an ******* video it just appear:
Quote:

Audio stream: http://

Here is the code:
PHP код:
forward Request*******2Mp3playeridresponse_codedata[ ] );
public 
Request*******2Mp3playeridresponse_codedata[ ] )
{
    if( 
response_code == 200 )
    {
        new
        
start_pos strfinddata"\"url\":" ) + 9,
        
end_pos strfinddata"\"", .pos start_pos ),
        
mp3_coverted_link[700 ];
        
strmidmp3_coverted_linkdata,start_pos,end_pos );
        
formatmp3_coverted_linksizeofmp3_coverted_link ), "http://%s"mp3_coverted_link );
        
PlayAudioStreamForPlayerplayeridmp3_coverted_link );
    }
    else 
SendClientMessageplayerid, -1"Couldn't play the song!!!" );
    return 
1;
}
stock Play*******Audioplayeridvideo_link[ ] )
{
    new
    
param_v_idx strfindvideo_link"?v=" ) + 3,
    
video_id500 ],
    
payload500 ];
    
strmidvideo_idvideo_linkparam_v_idxstrlenvideo_link ) );
    
formatpayloadsizeofpayload ), "www.yt-mp3.com/fetch?v=%s&apikey=1234567"video_id );
    
HTTPplayeridHTTP_GETpayload"""Request*******2Mp3" );
    return 
1;

And here I'm using it:
PHP код:
for(new 0<= MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    
StopAudioStreamForPlayer(i);
                    
Play*******Audio(i"https://www.youtube.com/watch?v=3QYCqHwlsw4&list=RDMM4NJlUribp3c&index=9");
                }
            } 
Reply


Messages In This Thread
Audio stream problem - by Kraeror - 04.12.2017, 18:46
Re: Audio stream problem - by Kraeror - 04.12.2017, 19:00
Re: Audio stream problem - by jasperschellekens - 04.12.2017, 20:28
Re: Audio stream problem - by Kraeror - 05.12.2017, 12:56
Re: Audio stream problem - by DavidGravelli - 05.12.2017, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)