This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Play sound from URL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kin2InuYasha
Member
Join Date: Nov 2010
Old 10-18-2012 , 03:19   Play sound from URL
Reply With Quote #1

Good day,

I'd like to know if you can use sm_play with a URL? Like, sm_play http://www.blah.com/sound.mp3

I'm wondering if there's a mod similar to this, but instead of calling a local sound, could call one directly from a webserver URL.

I'm just wondering if one exists, or if it's even possible. I have specific sounds I'd like to play, but I don't want to force the clients to download them.

Thank you for reading.
Kin2InuYasha is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 10-18-2012 , 03:25   Re: Play sound from URL
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=157953
Sreaper is offline
Kin2InuYasha
Member
Join Date: Nov 2010
Old 10-18-2012 , 04:06   Re: Play sound from URL
Reply With Quote #3

I saw this but I couldn't use it because the clients would need the adobe flash player for other browsers. I've tested it on myself and It brings up the web page in the MOTD, but will not display the flash player.

Thank you for the quick reply though.
Kin2InuYasha is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 10-18-2012 , 12:05   Re: Play sound from URL
Reply With Quote #4

If you are trying to play flash, then clients are going to need it regardless of how the plugin is coded.

Quote:
Originally Posted by Steam
With the latest Steam update, we moved on using an open-source browser called WebKit. Many users will need to install the latest version of Flash for Other Browsers.

Last edited by Sreaper; 10-18-2012 at 12:25.
Sreaper is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-18-2012 , 12:14   Re: Play sound from URL
Reply With Quote #5

As far as I'm aware, you have two options to play sounds:
  1. Force the client to download the sound from your server, then PrecacheSound and EmitSound/EmitSoundToAll.
  2. Open the sound in the MOTD browser. However, to my knowledge opening a sound file directly this way will NOT play it. Meaning you need something like Flash installed on the client.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Kin2InuYasha
Member
Join Date: Nov 2010
Old 10-18-2012 , 14:00   Re: Play sound from URL
Reply With Quote #6

Quote:
Open the sound in the MOTD browser. However, to my knowledge opening a sound file directly this way will NOT play it.
Yeah, I tried that already it doesn't work. I guess my only option is to force a client download then? Since not all clients would have the Flash player for other browsers.

Thanks guys.
Kin2InuYasha is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode