Class Guacamole.AudioChannel
Defined in: audio.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Abstract audio channel which queues and plays arbitrary audio data.
|
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.