• Global music play command?
    7 replies, posted
I've seen that there are like those commands where you can play a sound from a soundpath which everyone can hear. Now I am wondering how to make the same thing just with youtube links or any other [B]media link[/B]. Everyone should be able to hear it when the command ran means it does a cind of [B]data streaming for everyone[/B] but they should be able to [B]change the volume[/B] and also [B]be able to close it[/B]. Is this possible? How does it work?
I personally use this library, and it works fine for youtube and is flexible. [url]https://github.com/wyozi/gmod-medialib[/url] You can stop the sound, change the volume, start from a certain timestamp ect.
[QUOTE=Skere_;51192855]I personally use this library, and it works fine for youtube and is flexible. [url]https://github.com/wyozi/gmod-medialib[/url] You can stop the sound, change the volume, start from a certain timestamp ect.[/QUOTE] Wait does this add any commands? Edit: As I can see as soon as I put this inside addons I can use the functions from the API to make commands for it and that what I wanted, am I right?
I used the SoundCloud API here: [url]https://facepunch.com/showthread.php?t=1535406[/url] Please don't use my API key if you make your own variation though.
[QUOTE=Potatofactory;51197227]I used the SoundCloud API here: [url]https://facepunch.com/showthread.php?t=1535406[/url] Please don't use my API key if you make your own variation though.[/QUOTE] I have including problems. I put it inside the addons folder as medialib/medialib.lua and I need to include it in one of my gamemode files.
[QUOTE=Potatofactory;51197227]I used the SoundCloud API here: [url]https://facepunch.com/showthread.php?t=1535406[/url] Please don't use my API key if you make your own variation though.[/QUOTE] Then don't publicly share your API key...
[QUOTE=Robotboy655;51197468]Then don't publicly share your API key...[/QUOTE] you maybe know how to include? I get errors
Can you actually include something out of the file?
Sorry, you need to Log In to post a reply to this thread.