I tried it, but even with the instructions on the gmod wiki here, it doesnt work.
(I registered the PLAY_URL_SOUNDS)
I also put a print function in the callback but it didnt print in the chat.
Which is basically what the documentation tells you, it's the same as playFile, and I haven't had it fail on me so far.
Do note, that GMod waits quite some time before it considers a request timed out or failed (depending on what happened) so if the handler does not get called you most likely gave it the wrong URL in the first place.
It would indeed be very helpful of you if you could provide more details on how you used the function than simply
Code:
sound.playURL()
11-04-2017, 03:45 PM, (This post was last modified: 11-04-2017, 03:52 PM by jean730.)
if CLIENT then
permissions.register("PLAY_URL_SOUNDS")
sounds.playURL("http://jean.langmatt.com/stargate.mp3", "3d", function(music, a, b)
_G.print(a)
_G.print(b)
if music:isValid() then
music:play()
end
end)
end
Make sure you've granted the chip the right to play sounds from the internet (the shield icon at the top right of the editor). It's not enabled by default.
if CLIENT then
permissions.register("PLAY_URL_SOUNDS")
sounds.playURL("http://jean.langmatt.com/stargate.mp3", "3d", function(music, a, b)
_G.print(a)
_G.print(b)
if music:isValid() then
music:play()
end
end)
end
Incase you are still doing that, you don't need to run music:player() the sound will start playing once its ready. i also recommend using
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.