Poll

Was this module useful, and helpful?

Yes :)
92 (94.8%)
No :(
5 (5.2%)

Total Members Voted: 96

Author Topic: URL Playsound Addon :) [2.28v]  (Read 109797 times)

0 Members and 2 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URL Playsound Addon 2.2 :)
« Reply #90 on: December 23, 2014, 03:51:04 PM »
Kinda hard to find an URL that would work, since it doesn't load YouTube....
Oh?
If you don't have your own web server to host sound files on, then, Google turned up some results QUICK for me.
https://archive.org/download/testmp3testfile/mpthreetest.mp3 <- silly-but, just goes to show they're out there and quickly found if you don't have your own hosting site.
Could probably turn a shoutcast.com m3u into a pls too, but I've no idea if PlayURL does "live" streams rather than just files.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon 2.2 :)
« Reply #91 on: December 25, 2014, 11:17:38 PM »
Kinda hard to find an URL that would work, since it doesn't load YouTube....

This addon here is what you're looking for to play Youtube Videos. It has been around for seeminglessly, forever. It will do what you request.
https://steamcommunity.com/sharedfiles/filedetails/?id=106516163
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline jamm0

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URL Playsound Addon 2.2 :)
« Reply #92 on: January 02, 2015, 06:30:51 AM »
Is there a way to make this opt-in instead of opt-out and keep a list of those that opted in, so when a mapchange occurs it won't get reset? Thanks

Offline ChosenOne

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
Re: URL Playsound Addon 2.2 :)
« Reply #93 on: January 02, 2015, 03:04:05 PM »
You could do what I did and create a client side convar and add a place for the player to change that convar (since I'm doing TTT I added it to the F1 menu). Then when the playURL command is run, you create a filter, loop through all the players, add each player that has their convar set to hear the sound to the filter, and finally send the filter to the playURL command. This will make only the people who have opted in to hear the sounds and it will stay over map changes.

Offline richlen99

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Server Developer/Maintainer
    • GOOGLE
Re: URL Playsound Addon 2.2 :)
« Reply #94 on: January 15, 2015, 07:07:44 PM »
it seems that on my server, the sound stops after like ~2/3 mins....possible bug?



Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon 2.2 :)
« Reply #95 on: January 15, 2015, 08:31:11 PM »
it seems that on my server, the sound stops after like ~2/3 mins....possible bug?

If that's a bug, then I can't fix it, it's a Garry's Mod bug. I'll test it out though, can you tell me what link you're using to play music?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon 2.2 :)
« Reply #96 on: February 03, 2015, 11:29:42 PM »
Updated addon to current system!
« Last Edit: February 03, 2015, 11:40:55 PM by Bite That Apple »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Vertey

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URL Playsound Addon :) [2.25v]
« Reply #97 on: February 28, 2015, 10:39:55 AM »
I play music and i don't her it's and on chat is "vertey played .........."

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon :) [2.25v]
« Reply #98 on: February 28, 2015, 06:58:03 PM »
I play music and i don't her it's and on chat is "vertey played .........."

if the url is more than 256 characters long it will not work, if it doesn't have a file extension towards the end of the link it will not work.. though because you didn't really give me any more details, I can't assist you.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Ricoben3

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: URL Playsound Addon :) [2.26v]
« Reply #99 on: March 11, 2015, 11:36:13 AM »
Would it be possible to create some sort of list that saves previously played files so that they are easily referred to, kind of like how slay or kick and stuff has of list of people on the server. Just so that we don't have to type it in every time?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon :) [2.26v]
« Reply #100 on: March 11, 2015, 06:18:01 PM »
Would it be possible to create some sort of list that saves previously played files so that they are easily referred to, kind of like how slay or kick and stuff has of list of people on the server. Just so that we don't have to type it in every time?

As far as I see it, that is not possible within ulx, it would have to be an outside addon, or maybe within xgui, but idk how to use xgui.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon :) [2.26v]
« Reply #101 on: March 12, 2015, 09:22:17 PM »
Something terrible has happened with all my addons, so it's going to take me a few days to get them all fixed, as you may now experience issues due to this:
http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline allofmywutsteam

  • Full Member
  • ***
  • Posts: 136
  • Karma: 3
  • MNWO Owner
    • MNWO Discord
Re: URL Playsound Addon :) [2.27v]
« Reply #102 on: March 21, 2015, 03:33:53 PM »
Finally got it to work. Didn't realize it had to be on a hosted server. Luckily NFo gives you one, for anyone curious. So just upload it to the website and your good. Then run the direct link to bit.ly if needed

Also, I'm trying to bind a key to play a sound, but bind mess up at http:

bind 9 "ulx urlplaysound http://bit.ly/1BjN6Mr" and different variations seem to not work
« Last Edit: March 21, 2015, 04:04:23 PM by allofmywutsteam »
"Then Jesus said to his disciples, 'Whoever wants to be my disciple must deny themselves and take up their cross and follow me.'" - Matthew 16:24



MNWO: Steam | Discord | Website | Join Server

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URL Playsound Addon :) [2.27v]
« Reply #103 on: March 21, 2015, 04:25:37 PM »
Finally got it to work. Didn't realize it had to be on a hosted server.<clip>
bind 9 "ulx urlplaysound h1tp://bit.ly/1BjN6Mr]http://bit.ly/1BjN6Mr" and different variations seem to not work
Not sure why you didn't know it had to be hosted.
put the url in quotes ulx playsound "your:URL" - though, yes, you may have trouble doing that in console if you don't know how to escape them out.
The original post and few conversations later in thread state that you have to link to a internet URL.
Also, the file link has to end in a supported file extension of .mp3, .ogg, .pls,
Whatever you're trying to use doesn't end in one of those. (Though, it does redirect, I'd guess that Gmod http.Fetch won't allow redirects, nothing the author can do to fix that)
« Last Edit: March 21, 2015, 04:27:17 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given