Jump to content

Youtube links


Baseplate

Recommended Posts

Posted

See to that .

local sound = playSound3D ( "http://www.uploadmusic.org/MUSIC/628051381741104.mp3", x, y, z, true ) -- Link the video 
        setSoundMaxDistance ( sound, 100 ) 

Posted

Well , i was searching some time ago for this.

Yes it's possbile , by convert the youtube video to mp3 then play/download it to the client. There are page's like this ("youtube to mp3") , but i don't find any one that could be used with php call on server request. So i started searching for project's / php's that could be used , well that was a dead end to , bk all i found it was some pay'd stuff's .So i give'd up on this.

Posted

You can download any sound you want from YouTube, but Should change the formula to MP3 and use it in this way

sound = playSound("yoursound.mp3",true)  

And in meta .

"theFile/yoursound.mp3"/> 

Just this -_-"

Posted

You can download any sound you want from YouTube, but Should change the formula to MP3 and use it in this way

sound = playSound("yoursound.mp3",true)  

And in meta .

"theFile/yoursound.mp3"/> 

Just this -_-"

Gonna ignore this.

@bandi94, I've seen a server once which can play sound from youtube links, so it is possible of course, gonna look in it anyways..

Posted

@NssoR please realy stop posting more crap , bk i will end dead from laughing.

Youtube it's not using .mp3 format how dafu*** you wanna change the "formula" of this video "https://www.youtube.com/watch?v=eaTawbEn_d4" to mp3 "formula" and play it on the server. ?

We area speaking about real time youtube converter , i enter a song name on the server then : server->php->youtube->mp3 converter -> php -> server -> client -> playSound. And not about download some song from youtube and put it in the server.

Posted
Use an Online Converter.

callRemote,fetchRemote

Well yah , that's the point , but i was unable to find any Online Converter , that could be used with calling it from other php.

There are only "paste the link and press the download button" well maybe it's possbile to do it i am prity noob at php/html .

BTW : yes i think he wanna enter the youtube : link , then MTA would play the song (atleast i wanted to do this)

Posted

I tried it, but all it does is output "Direct access denied.".

function myCallback ( responseData, errno ) 
    if ( errno == 0 ) then 
        outputDebugString ( responseData ) 
    end 
end 
  
fetchRemote ( "http://youtubeinmp3.com/fetch/?video=https://www.youtube.com/watch?v=i62Zjga8JOM", myCallback, "", false ) 

Posted
Yes it doesn't seems to be support direct access, it will need some html or php.

owww. any ideas how to make it? is there a way to add referrer or so?

Posted

Guys, you're missing a heavy part here, you can actually download this, but you will need to do it client-sided wich is literally impossible, becouse either it would be using server's network to download the music wich it aint good..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...