Difference between revisions of "Command:Splay"

From Mibbit Wiki
Jump to: navigation, search
(Created page with "= Play sounds from the chat line = Mibbit can instruct your browser to play sounds right from the chat line using the command /splay. == Usage == Use the command /splay b...")
 
(Command template.)
Line 1: Line 1:
 +
<onlyinclude>{{Command
 +
|name=splay
 +
|parameters=sound-url
 +
|desc=If the ''sound-url'' is a sound format your browser can play, it plays the sound file.  Otherwise, it fails silently.
 +
|client=mw
 +
|type=External Reference
 +
|output=None (audio)
 +
}}</onlyinclude>
 +
 
= Play sounds from the chat line =
 
= Play sounds from the chat line =
  

Revision as of 10:56, 25 March 2011

{{#set:Client=Main}} {{#set:Client=Widget}}{{#set:Type=External Reference}}/splay sound-url

If the sound-url is a sound format your browser can play, it plays the sound file. Otherwise, it fails silently.
Output: None (audio)

Play sounds from the chat line

Mibbit can instruct your browser to play sounds right from the chat line using the command /splay.

Usage

Use the command

/splay 

by typing it into the chat line in either the Main Client or the Widget

the command accepts one parameter which needs to be a valid reference to an audio file.

Example

/splay http://static.mibbit.com/sounds/ribbit.wav

The example above will play the Mibbit PM message audio file (ribbit.wav) located at http://static.mibbit.com/sounds/

Browser support

Not all web-browsers work the same. Most support playback of wav files, even IE7 and IE8. Newer browsers support all or a mix of mp3, ogg or m4a formats too (e.g. Chrome, Opera, Firefox, IE9)