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 109861 times)

0 Members and 1 Guest are viewing this topic.

Offline Stealthycow

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: URL Playsound Addon :) [2.27v]
« Reply #120 on: March 30, 2015, 07:12:09 PM »
Decicus
 If you modify the umsg string value you can get away with jsut using song.mp3 in the bind
If you have a server that you host things off of, just change the line that says:
    umsg.String(urlsound)
 to umsg.String("http://domainname.serverhostname.com/sounddirectory/" .. urlsound)
my example is:
     umsg.String("http://buttontoucher.site.nfoservers.com/server/sound/" .. urlsound)
Then the bind command I gave you will work
If you don't have a server to host the songs/music from then my way will not work.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: URL Playsound Addon :) [2.27v]
« Reply #121 on: March 30, 2015, 07:14:51 PM »
Decicus
 If you modify the umsg string value you can get away with jsut using song.mp3 in the bind
If you have a server that you host things off of, just change the line that says:
    umsg.String(urlsound)
 to umsg.String("http://domainname.serverhostname.com/sounddirectory/" .. urlsound)
my example is:
     umsg.String("http://buttontoucher.site.nfoservers.com/server/sound/" .. urlsound)
Then the bind command I gave you will work
If you don't have a server to host the songs/music from then my way will not work.
The addon is setup so you're supposed to provide the full URL. This way it supports more than one domain (and directory). Surely your method would work, but it's not ideal if he wants to play from different sources as well.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Stealthycow

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: URL Playsound Addon :) [2.27v]
« Reply #122 on: March 30, 2015, 07:49:27 PM »
Agreed, I just wanted to provide you with an opportunity to bind the command to a key

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon :) [2.27v]
« Reply #123 on: March 31, 2015, 04:12:21 PM »
I would have to use like http.post to search the entire directory, and grab all songs from that putting it in a listing.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline tianight

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URL Playsound Addon :) [2.28v]
« Reply #124 on: June 25, 2015, 03:48:24 PM »
I added this to my files and it showed up great , but none of the URL's are working that I choose. Am I doing something wrong or is it just not updated?

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.28v]
« Reply #125 on: June 25, 2015, 07:59:52 PM »
tianight, I think you have to link directly to gmod compatible sounds
http://blah.blah/song.mp3
(but, I'd have to review the past few pages to verify my memory is serving me)

Are you trying URLs like that?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Qwerty-Space

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URL Playsound Addon :) [2.28v]
« Reply #126 on: October 30, 2015, 05:18:49 PM »
Perhaps you should add in the OP that it supports .wav files, because I tested on and it worked.  Also, would it be possible for the plugin to say how long the audio clip is in the chat?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: URL Playsound Addon :) [2.28v]
« Reply #127 on: November 03, 2015, 01:34:17 PM »
Perhaps you should add in the OP that it supports .wav files, because I tested on and it worked.  Also, would it be possible for the plugin to say how long the audio clip is in the chat?

To my knowledge, no, it is not possible.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

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.28v]
« Reply #128 on: November 03, 2015, 08:40:00 PM »
To my knowledge, no, it is not possible.
I don't have a working Gmod instance installed atm, but I wonder if you could use SoundDuration on a URL instead of a local path. (though wiki does say 'wav' only likely)
I'm betting NOT, but, heck, worth a shot. worst that would happen is ...click....*BOOM*
"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.28v]
« Reply #129 on: November 04, 2015, 10:17:01 PM »
I don't have a working Gmod instance installed atm, but I wonder if you could use SoundDuration on a URL instead of a local path. (though wiki does say 'wav' only likely)
I'm betting NOT, but, heck, worth a shot. worst that would happen is ...click....*BOOM*

Sadly, same issue here. I haven't had internet for months now, the only time I have internet is when I come on here and there using my laptop at a friends house, or if I decide to use a hotspot, though typically I just check my email and then get off. I forget to check this every so often, but I realized that sometimes people comment on my stuff...

Anywho, I could try that if I remember to try that whenever I get internet back.. (most likely will forget, and anyone who cares enough can try themselves.)
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Jakebeany500

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URL Playsound Addon :) [2.28v]
« Reply #130 on: April 04, 2016, 08:40:45 AM »
If you have a URL that is too long (as some people have seem to have had), why don't you just use a website like TinyURL.com, i had incredibly long URLs, but i used this and they work fine.

Offline Alemismun

  • Newbie
  • *
  • Posts: 5
  • Karma: -4
Re: URL Playsound Addon :) [2.28v]
« Reply #131 on: April 19, 2016, 06:18:26 AM »
Im new here, how to install?

Offline Adrien3406

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: URL Playsound Addon :) [2.28v]
« Reply #132 on: October 30, 2016, 04:39:03 AM »
I have a problem, the sound stop after 1 or 2 minutes. Why please?

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.28v]
« Reply #133 on: October 30, 2016, 07:01:25 AM »
I have a problem, the sound stop after 1 or 2 minutes. Why please?
Can you play the URL outside of Gmod using a browser or VLC/MediaplayerClassic and it not stop?
My guess is not that this is so much this addon's fault as it is Gmod, or your provider hosting the file losing connection.
"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.28v]
« Reply #134 on: October 30, 2016, 11:25:02 PM »
To my understanding of how outside sourced audio works in gmod, is it loads it to the server first, then plays it for the client. I could be wrong, as I haven't looked too much into it, but I think I remember something like that happening to me every so often on certain songs. I can't remember though, so oh well.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.