The nsIDOMHTMLAudioElement
interface is used to implement the HTML5 <audio>
element.
Inherits from: nsIDOMHTMLMediaElement
unsigned long long mozCurrentSampleOffset(); |
void mozSetup(in PRUint32 channels, in PRUint32 rate); |
[implicit_jscontext] unsigned long mozWriteAudio(in jsval data); |
Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Returns the current offset of the audio stream, specified as the number of samples that have played since the beginning of the stream.
unsigned long long mozCurrentSampleOffset();
None.
An unsigned 64-bit value indicating how many audio samples have been played since the stream began playing.
Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Sets up the audio stream for writing.
void mozSetup( in PRUint32 channels, in PRUint32 rate );
channels
rate
Writes samples to the audio stream.
unsigned long mozWriteAudio( in jsval data );
data
Array
or as a numeric typed array.The actual number of bytes written to the stream.
NS_ERROR_DOM_INVALID_STATE_ERR
mozSetup()
.NS_ERROR_DOM_TYPE_MISMATCH_ERR
NS_ERROR_DOM_INDEX_SIZE_ERR