Class | Shout |
In: |
ext/shout.c
|
Parent: | Object |
HTTP | = | INT2FIX(SHOUT_PROTOCOL_HTTP) |
XAUDIOCAST | = | INT2FIX(SHOUT_PROTOCOL_XAUDIOCAST) |
ICY | = | INT2FIX(SHOUT_PROTOCOL_ICY) |
MP3 | = | INT2FIX(SHOUT_FORMAT_MP3) |
OGG | = | INT2FIX(SHOUT_FORMAT_OGG) |
VORBIS | = | INT2FIX(SHOUT_FORMAT_VORBIS) |
Return the proper amount of time, in milliseconds, before more data needs to be sent. This is for use when you would like to do something else in the intervening time period besides sleep.
Set a filename where the server should dump the data from this stream. Only do this if you know what you are doing.
Set MP3 metadata. Create a ShoutMetadata object, add some stuff to it and pass it to this method. If the format of the stream isn’t MP3, and you try to set its metadata, an exception will most likely be raised.
Set the protocol to use when connecting. Default is Shout::HTTP. Possible values are:
Set whether or not this stream should be "public", i.e. advertised to a yp server such as yp.icecast.org. True or false. Nil counts as false.
Sleep the necessary amount of time to play back the audio data sent since the last call to sync. After calling this, it’s time to send more data.