Tweets from pichat
| Two songs from the year I created my first web sites. http://t.co/8eHrOA9K + http://t.co/AuWb2etI #video #retro About 23 hours, 59 mins ago from pichat (Mark Seuffert) |
Tweets from 600infos
| I HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat About 1 week, 5 days ago from 600infos (Wolf) |
Trace: » FR1001 - Pichat as Windows-Service Server » FR1020 - Authorization Plugin » FR1111 - new default Icons » FR1003 - Copy&Paste Code-Text » FR1012 - Private-Chat-Box » FR2012 - Webchat Sounds
You are here: Pichat Wiki (en) » Featurerequests » FR2012 - Webchat Sounds
FR2012 - Webchat Sounds
WORKAROUND — Adminwolf 2010/04/04
get the pichat_webchat_templates.zip and install the 2 files (script_pichat.js and frame_browser_dynamic.html) to your ~/pichat/webserver/chat-Directory
if you want, copy your sound_chat_ping.wav and sound_chat_pong.wav to ~/pichat/webserver/chatmedia
modify script_pichat.js with
- script_pichat.soundmod.js
var pichat = { /* modify function */ onChatSoundEffect: function(action, data) { if(mChatOK) { pichat.control.sendClientInterface("CHAT_ACTION_CUSTOM", "SoundEffect", action, data); pichat.output.playSound(action, data); } }, } pichat.output = { /* add function */ playSound: function(action, data) { if ( action=="CHAT_PING" ) { var sound="/chatmedia/sound_chat_ping.wav"; } else if ( action=="CHAT_PONG" ) { var sound="/chatmedia/sound_chat_pong.wav"; } else { var sound=""; } if(!sound=="") { document.getElementById("sound").innerHTML="<embed src='"+sound+"' hidden=true autostart=true loop=false>"; } } }
modify frame_browser_dynamic.html with