• Trying to make radio
    12 replies, posted
Hey im trying to make a radio system in gmod I want it to play youtube links i was wondering if anyone had any clue if this can be done and if it can please tell me how.
[URL="http://wiki.garrysmod.com/page/sound/PlayURL"]sound.PlayURL[/URL]
[QUOTE=crazyscouter;45660685][URL="http://wiki.garrysmod.com/page/sound/PlayURL"]sound.PlayURL[/URL][/QUOTE] Hi i saw that a while ago if you can give me an example how that works or something that would be nice. ( sorry for me being dumb im new to lua )
If you visit the link, there's an example right there :P
[QUOTE=crazyscouter;45660729]If you visit the link, there's an example right there :P[/QUOTE] I have but im not sure how that would work with a youtube link
You just put your url where it says "URL"
[QUOTE=TehBrettJoker;45660752]I have but im not sure how that would work with a youtube link[/QUOTE] It wont work with youtube links. It needs to be a [url=http://fgthou.se/media/congrats.mp3]direct link[/url] to an audio file. Feel free to look around my [url=https://github.com/mcd1992/fgt_radio]one of my old projects[/url] that uses sound.PlayURL().
Use: [url]http://www.youtube-mp3.org/[/url] Upload the mp3 of the link you chose to somewhere. Link sound.PlayURL() to there.
Ok since you said something about mp3 download can i put that in like myaddonname/sound/(insert mp3 files) and do something like resource.AddFile("sound/"...) type of thing
Yes.
ok thank you ill try this out later
[QUOTE=bluebull107;45663053]Yes.[/QUOTE] No. [QUOTE=TehBrettJoker;45663086]ok thank you ill try this out later[/QUOTE] Maybe you can use this: [URL]http://facepunch.com/showthread.php?t=1383796[/URL] But It can't play YouTupe neither, since they don't direct links to mp3 files/streams. You don't need to download the mp3 file or even resource.AddFile'd it, you just enter the download link as the URL.
Well couldnt my way still work?
Sorry, you need to Log In to post a reply to this thread.