SRCDS Steam group


Streaming an MP3 inside of HL2DM's motd.txt?
#1


This used to be possible a few years ago, via including the following tags:

<noembed>
<bgsound src="http://home.comcast.net/~bnf_1979/soundtrack9.mp3">
</noembed>

It used to be that the player's PC would actually kick off an instance of Windows Media Player in the background and start spooling/playing the MP3, but....It doesn't seem to work anymore.

I had a fairly large number of nice/spooky ambient soundtracks that really added to the gameplay experience, and it would be awesome to get them working again. Is there any way to convice the MOTD mechanism in HL2MP to play music in the background the way it used to?

I know it's possible to play a pre-downloaded MP3 upon players joining the server... That's not what i'm looking for. I need a find a way to do it in the motd.

I humbly ask the gods of srcds to hear my plea. Smile

Cheers,
bpoag


Reply
#2
Don't know if this will work, but you can give it a try.
Add this line to your motd.txt:

<embed src="http://home.comcast.net/~bnf_1979/soundtrack9.mp3" autostart="true" loop="false" style="display:none;"/>

If that doesn't work. You should take a look at Mani or Sourcemod:

http://forums.alliedmods.net/showthread.php?p=552491
http://forums.alliedmods.net/showthread.php?p=1581786

Warning Level: 0%
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)