Streaming ******* audio (?)
#1

Hi, i wanted a webpage with streaming for ******* audio. I had one but nowadays is offline.
Reply
#2

Is this what you are looking for?
Reply
#3

I used it but nowadays is offline http://www.*******inmp3.com/fetch/?video= URL *******

It's the same URL of this include...
Reply
#4

Quote:
Originally Posted by Romero837
Посмотреть сообщение
I used it but nowadays is offline http://www.*******inmp3.com/fetch/?video= URL *******

It's the same URL of this include...
It's not offline, it's up and working.
Reply
#5

Quote:
Originally Posted by Meller
Посмотреть сообщение
It's not offline, it's up and working.
First check everything then say please, Don't post if you don't know anything !
It's not converting now, It's closed, It redirects you to the ConvertMP3 website, Which can't be worked on SA-MP streaming.
Reply
#6

You can get it working with some HTTP and JSON stuff, use their API.
Reply
#7

Try this one.
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_link500 ];
        
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
}  
Play*******Audioplayeridvideo_link[ ] )
{
    
    new 
        
param_v_idx strfindvideo_link"?v=" ) + 3,
        
video_id15 ],
        
payload55 ];
    
strmidvideo_idvideo_linkparam_v_idxstrlenvideo_link ) );
    
formatpayloadsizeofpayload ), "www.yt-mp3.com/fetch?v=%s&apikey=1234567"video_id );
    
HTTPplayeridHTTP_GETpayload"""Request*******2Mp3" ); 
    
    return 
1;

Call this function like this:

Код:
 
Play*******Audio( playerid, video_link_here );
for example
PHP код:
public OnPlayerCommandTextplayeridcmdtext[ ] ) 

    if( !
strcmp"/test"cmdtexttrue ) ) 
    { 
        
Play*******Audioplayerid"https://www.youtube.com/watch?v=67ZoXo9dN6Q" );
        return 
1
    } 
    return 
0

Reply
#8

Quote:
Originally Posted by SyS
Посмотреть сообщение
Try this one.
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_link500 ];
        
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
}  
Play*******Audioplayeridvideo_link[ ] )
{
    
    new 
        
param_v_idx strfindvideo_link"?v=" ) + 3,
        
video_id15 ],
        
payload55 ];
    
strmidvideo_idvideo_linkparam_v_idxstrlenvideo_link ) );
    
formatpayloadsizeofpayload ), "www.yt-mp3.com/fetch?v=%s&apikey=1234567"video_id );
    
HTTPplayeridHTTP_GETpayload"""Request*******2Mp3" ); 
    
    return 
1;

Call this function like this:

Код:
 
Play*******Audio( playerid, video_link_here );
for example
PHP код:
public OnPlayerCommandTextplayeridcmdtext[ ] ) 

    if( !
strcmp"/test"cmdtexttrue ) ) 
    { 
        
Play*******Audioplayerid"https://www.youtube.com/watch?v=67ZoXo9dN6Q" );
        return 
1
    } 
    return 
0

Wow thank you so much for this. +3 rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)