Class Index | File Index

Classes


Class Guacamole.AudioChannel


Defined in: audio.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Abstract audio channel which queues and plays arbitrary audio data.
Method Summary
Method Attributes Method Name and Description
<static>  
Guacamole.AudioChannel.getTimestamp()
Returns a base timestamp which can be used for scheduling future audio playback.
 
play(mimetype, duration, data)
Queues up the given data for playing by this channel once all previously queued data has been played.
Class Detail
Guacamole.AudioChannel()
Abstract audio channel which queues and plays arbitrary audio data.
Method Detail
<static> {Number} Guacamole.AudioChannel.getTimestamp()
Returns a base timestamp which can be used for scheduling future audio playback. Scheduling playback for the value returned by this function plus N will cause the associated audio to be played back N milliseconds after the function is called.
Returns:
{Number} An arbitrary channel-relative timestamp, in milliseconds.

play(mimetype, duration, data)
Queues up the given data for playing by this channel once all previously queued data has been played. If no data has been queued, the data will play immediately.
Parameters:
{String} mimetype
The mimetype of the data provided.
{Number} duration
The duration of the data provided, in milliseconds.
{String} data
The base64-encoded data to play.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Mar 28 2014 21:41:23 GMT-0700 (PDT)